[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 2/7] pdu-snmp: Rename from pdu-msw
We are going to make this script control PDUs other than APC ones. No overall functional change for internal callers. Anyone out-of-tree using this script will need to change the name of the program they run. Signed-off-by: Ian Jackson <iwj@xxxxxxxxxxxxxx> --- Osstest/PDU/msw.pm | 2 +- README | 2 +- pdu-msw => pdu-snmp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename pdu-msw => pdu-snmp (95%) diff --git a/Osstest/PDU/msw.pm b/Osstest/PDU/msw.pm index 19d9f56b..614216d4 100644 --- a/Osstest/PDU/msw.pm +++ b/Osstest/PDU/msw.pm @@ -33,7 +33,7 @@ sub new { sub pdu_power_state { my ($mo, $on) = @_; my $onoff= $on ? "on" : "off"; - system_checked("./pdu-msw @{ $mo->{Args} } $onoff"); + system_checked("./pdu-snmp @{ $mo->{Args} } $onoff"); } 1; diff --git a/README b/README index ef6c4e60..70f8ae73 100644 --- a/README +++ b/README @@ -656,7 +656,7 @@ HostProp_<host>_PowerILOM msw [--apc6] <pdu> <port-name-regexp|port-num> Control an APC masterswitch via SNMP. The SNMP - community is `private'. See the `pdu-msw' script. + community is `private'. See the `pdu-snmp' script. ipmi <mgmt> [<user> [<pass> [<ipmitool options...>]]] Use IPMI by (by running ipmitool). <mgmt> is the name or diff --git a/pdu-msw b/pdu-snmp similarity index 95% rename from pdu-msw rename to pdu-snmp index c57f9f7c..581a60b0 100755 --- a/pdu-msw +++ b/pdu-snmp @@ -19,7 +19,7 @@ my $usagemsg= <<END; usage: - pdu-msw SWITCH-DNS-NAME PORT-NAME-REGEXP|PORT [[delayed-]on|off|0|1|reboot] + pdu-snmp SWITCH-DNS-NAME PORT-NAME-REGEXP|PORT [[delayed-]on|off|0|1|reboot] END use strict qw(refs vars); @@ -89,7 +89,7 @@ if ($outlet =~ m/^\d+$/) { ($t->[2] ? '*' : ''), $t->[0], $t->[1]); } - die "pdu-msw $dnsname: ". + die "pdu-snmp $dnsname: ". (@found ? "multiple ports match" : "no ports match"). "\n"; } @@ -119,7 +119,7 @@ sub get () { sub show () { my $mean = get(); - printf "pdu-msw $dnsname: #%s \"%s\" = %s\n", $useport, $usename, $mean; + printf "pdu-snmp $dnsname: #%s \"%s\" = %s\n", $useport, $usename, $mean; return $mean; } -- 2.20.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |