From 0ce4364cf8e986af96376bc107c20492e0de1df8 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 31 Mar 2008 17:18:12 +0000 Subject: [PATCH] added usage for rspconfig command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/blade.pm | 4 ++-- xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index c63b343fd..dc399f9b5 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -41,7 +41,8 @@ my %usage = ( "reventlog" => "Usage: reventlog [all|clear|]", "rinv" => "Usage: rinv [all|model|serial|vpd|mprom|deviceid|uuid]", "rbootseq" => "Usage: rbootseq [hd0|hd1|hd2|hd3|net|iscsi|usbflash|floppy|none],...", - "rscan" => "Usage: rscan [-w][-x|-z]" + "rscan" => "Usage: rscan [-w][-x|-z]", + "rspconfig" => "Usage: rspconfig [snmpdest[=]|alert[=on|off|en|dis|enable|disable]|community[=]]" ); my %macmap; #Store responses from rinv for discovery my $macmaptimestamp; #reflect freshness of cache @@ -1146,7 +1147,6 @@ sub process_request { my $noderange = $request->{node}; my $command = $request->{command}->[0]; my @exargs; - unless ($noderange or $command eq "findme") { if ($usage{$command}) { $callback->({data=>$usage{$command}}); diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index c980c8322..d79b9a135 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -34,7 +34,8 @@ my %usage = ( "rvitals" => "Usage: rvitals [all|temp|wattage|voltage|fanspeed|power|leds]", "reventlog" => "Usage: reventlog [all|clear|]", "rinv" => "Usage: rinv [all|model|serial|vpd|mprom|deviceid|uuid]", - "rsetboot" => "Usage: rsetboot [net|hd|cd|def|stat]" + "rsetboot" => "Usage: rsetboot [net|hd|cd|def|stat]", + "rspconfig" => "Usage: rspconfig [snmpdest[=]|alert[=on|off|en|dis|enable|disable]|community[=]|garp[=]]" );