diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-03-12 11:58:28 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-03-12 11:58:28 -0500 |
commit | 81f434f8381551701736d7277311cb3997ccd586 (patch) | |
tree | e379ba10215372c0a16b8e360c3ad58531e99100 /scripts | |
parent | ba491b5d339a6a319b024561fe4cfbc75c299070 (diff) | |
download | cxmanage-81f434f8381551701736d7277311cb3997ccd586.tar.gz |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cxmanage | 4 |
1 files changed, 3 insertions, 1 deletions
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) |