@@ -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;
@@ -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
similarity index 95%
rename from pdu-msw
rename to 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;
}
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@xenproject.org> --- 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%)