From 81f434f8381551701736d7277311cb3997ccd586 Mon Sep 17 00:00:00 2001 From: George Kraft Date: Tue, 12 Mar 2013 11:58:28 -0500 Subject: CXMAN-159: Add a -i/--ids command line option to display node IDs For commands that normally don't display node IDs (power status, sensor, etc), this option will display node IDs alongside their IP addresses in the output. We'll stick to the old behavior by default though. --- scripts/cxmanage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/cxmanage b/scripts/cxmanage index 469bf32..2a09272 100755 --- a/scripts/cxmanage +++ b/scripts/cxmanage @@ -79,6 +79,8 @@ def build_parser(): default=None) parser.add_argument('-n', '--nodes', metavar='COUNT', type=int, help='Expected number of nodes') + parser.add_argument('-i', '--ids', action='store_true', + help='Display node IDs in addition to IP addresses') verbosity = parser.add_mutually_exclusive_group() verbosity.add_argument('-v', '--verbose', action='store_true', help='Verbose output') @@ -258,7 +260,7 @@ def build_parser(): help='Server-side Linux password') ipdiscover.add_argument('-6', '--ipv6', action='store_true', help='Discover IPv6 addresses') - ipdiscover.add_argument('-i', '--interface', type=str, default=None, + ipdiscover.add_argument('-I', '--interface', type=str, default=None, help='Network interface to check') ipdiscover.set_defaults(func=ipdiscover_command) -- cgit v1.2.1