From dbefcc9f95c8a3ec79bd1cc0548206be991437b7 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Mon, 25 Sep 2017 15:55:57 -0400 Subject: [PATCH] Modified switchdiscover man page --- .../admin-guides/references/man1/switchdiscover.1.rst | 10 ++++++++-- xCAT-client/pods/man1/switchdiscover.1.pod | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst b/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst index e84f3e74d..e219a5ea8 100644 --- a/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst +++ b/docs/source/guides/admin-guides/references/man1/switchdiscover.1.rst @@ -15,7 +15,7 @@ SYNOPSIS \ **switchdiscover [-v| -**\ **-version]**\ -\ **switchdiscover**\ [\ *noderange*\ | \ **-**\ **-range**\ \ *ip_ranges*\ ] \ **[-V] [-w][-r|-x|-z][-s**\ \ *scan_methods*\ \ **-**\ **-setup**\ ] +\ **switchdiscover**\ [\ *noderange*\ | \ **-**\ **-range**\ \ *ip_ranges*\ ] \ **[-V] [-w][-r|-x|-z][-s**\ \ *scan_methods*\ ] [\ **-**\ **-setup**\ ] [\ **-c**\ \ *community*\ ] *********** @@ -31,7 +31,7 @@ To view all the switches defined in the xCAT database use \ **lsdef -w "nodetype For lldp method, make sure that lldpd package is installed and lldpd is running on the xCAT management node. lldpd comes from xcat-dep package or you can get it from http://vincentbernat.github.io/lldpd/installation.html. -For snmp method, make sure that snmpwalk command is installed and snmp is enabled for switches. To install snmpwalk, "yum install net-snmp-utils" for redhat and sles, "apt-get install snmp" for Ubuntu. +For snmp method, make sure that snmpwalk command is installed and snmp is enabled for switches. To install snmpwalk, "yum install net-snmp-utils" for redhat and sles, "apt-get install snmp" for Ubuntu. The switchdiscover command only check the switches with default community string, if user already configured switch with other commmunity string, need to pass in with \ **-c**\ option for switchdiscover command to be able to discover. ******* @@ -118,6 +118,12 @@ OPTIONS +\ **-c**\ + + User defined community string for snmp scan. + + + ************ RETURN VALUE diff --git a/xCAT-client/pods/man1/switchdiscover.1.pod b/xCAT-client/pods/man1/switchdiscover.1.pod index ec16fcaad..20f8e56e1 100755 --- a/xCAT-client/pods/man1/switchdiscover.1.pod +++ b/xCAT-client/pods/man1/switchdiscover.1.pod @@ -10,7 +10,7 @@ B B -B [I | B<--range> I] B<[-V] [-w][-r|-x|-z][-s> I B<--setup>] +B [I | B<--range> I] B<[-V] [-w][-r|-x|-z][-s> I] [B<--setup>] [B<-c> I] @@ -24,7 +24,7 @@ To view all the switches defined in the xCAT database use B option for switchdiscover command to be able to discover. =head1 OPTIONS @@ -87,6 +87,10 @@ Stanza formatted output. Process switch-based switch discovery. Update discovered switch's ip address, hostname and enable snmpv3 configuration based on the predefined switch. +=item B<-c> + +User defined community string for snmp scan. + =back =head1 RETURN VALUE