All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <iwj@xenproject.org>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <iwj@xenproject.org>
Subject: [OSSTEST PATCH 2/7] pdu-snmp: Rename from pdu-msw
Date: Tue, 27 Oct 2020 13:43:49 +0000	[thread overview]
Message-ID: <20201027134354.25561-3-iwj@xenproject.org> (raw)
In-Reply-To: <20201027134354.25561-1-iwj@xenproject.org>

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%)

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



  parent reply	other threads:[~2020-10-27 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 13:43 [OSSTEST PATCH 0/7] Prepare for ServerTech PDUs Ian Jackson
2020-10-27 13:43 ` [OSSTEST PATCH 1/7] README: Fix a typo Ian Jackson
2020-10-27 13:43 ` Ian Jackson [this message]
2020-10-27 13:43 ` [OSSTEST PATCH 3/7] pdu-snmp: Centralise base OIDs Ian Jackson
2020-10-27 13:43 ` [OSSTEST PATCH 4/7] pdu-snmp: Refactor model handling Ian Jackson
2020-10-27 13:43 ` [OSSTEST PATCH 5/7] pdu-snmp: Support ServerTech PDUs "Pro 1/2" aka "Sentry4" Ian Jackson
2020-10-27 13:43 ` [OSSTEST PATCH 6/7] PDU::snmp, PDU::msw: Rename from msw to snmp Ian Jackson
2020-10-27 13:43 ` [OSSTEST PATCH 7/7] pdu-snmp: Fix sleeping Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201027134354.25561-3-iwj@xenproject.org \
    --to=iwj@xenproject.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.