nhSnmpTool -v3 <targetIP> -u <v3UserName> -l <nAnp_or_AnP_or_AP> -xt <MD5_or_SHA> -xa <v3_Auth_password> -xp <v3_Priv_password> -p <port> -old
Options:
-h Brief usage (this screen). List all basic options to get MIB dump.
-hh Extra usage, with debug option information and arguments fornew walk tool only.
-p <port> ...SNMP port to use. Default is 161.
-r <retries> ...Retries for SNMP requests. Default is 4.
-t <seconds> ...Timeout in seconds. Default is 20.
-c <community> ...SNMP community string. Default is 'public'.
-v1 ...use ONLY SNMPv1. Default is to use v2c if possible and to fall back on v1 if v2c is not supported.
-v2c ...use ONLY SNMPv2c. Default is to use v2c if possible and to fall back on v1 if v2c is not supported.
-v3 ...use -hh to see SNMPv3 Key arguments.
or setup environment variable NH_SNMP_PROXY_ADDRESS to <address>:<port>
and specify '-c <SNMPv3 key>' and '-old'.
-f <file> ...Store data in a file named <file>.
Default filename is $NH_HOME/tmp/Mibdump-<IP>.walk
Default filename for -old is $NH_HOME/tmp/Mibdump-<IP>.mdr
-o <OID> ...Target the specified MIB object or OID instead of the default targets.
Can be used more than once to specify multiple OIDs, i.e.:
-o 1.3.6.1.4.1.9.1 -o 1.3.6.1.4.1.9.2 -o sysName.0
-old ...Use old MIB walk tool if '-old' passed in.
Example1: nhSnmpTool -c myComm 10.1.17.12
...will create the mib dump $NH_HOME/tmp/Mibdump-10.1.17.12.walk
Example2: nhSnmpTool -c myComm 10.1.17.12 -old
...will create the mib dump $NH_HOME/tmp/Mibdump-10.1.17.12.mdr
Example3: nhSnmpTool -v3 138.42.96.5 -u level3 -l AP -xt MD5 -xa password -xp
privpassword
nhSnmpTool -old -v3 -c 138.42.96.5:161/3P:MD5^authKey:3DES^privKey/
level3 138.42.96.5
..will create the mib dump from SNMPv3 agent.
Extra options for MIB walk tool:
-u ...Username for v3
-l ...Seclevel (nAnP/.AnP/AP) for v3
-xt ...Auth type (MD5/SHA) for v3
-xa ...Auth password for v3
-xp ...Priv password for v3
-xn ...Ctxtname for v3
-xi ...Ctxtid for v3 (will discover if not specified)
-e ...Engineid for v3 (will discover if not specified)
-cmp ...Compare (y/n). If y/Y, walk specific MIB branch only. If n/N, walk whole MIB trees.
-sbr ...Sleep_bet_req(msec). Default value is 0.
-m ...Maxlexerrors. Default value is 80,000
-z ...Samples:delay for ratecomputation of counter variables.
Default value is 0:0. If samples specified, delay is 500 msecs.
-mv ...Max num of variables to learn. Deafult is not restricted. All variables are learnt.
-xf ...Filename containing oids to be excluded(one per line)
-xr ...Max row count. Default is not restricted. All rows are learnt.
-xs ...Source ip. Default is first local IP. Used for multihomed box where IP of manager is
important.
-xe ...Source port. Default is first available port. Used when a specific port is required
Extra Debug options:
-n ...Interactive mode; display data to screen.
Default is to store data in a file.
-f <file> ...Store data in a file named <file>.
Default filename for -old is $NH_HOME/tmp/Mibdump-<IP>.mdr
Default filename for new walk tool is $NH_HOME/tmp/Mibdump-<IP>.walk
-a ...Display all OctetStrings in readable ASCII output format.
Default is to display decimal encoded form.
-i ...Target MIB-2 interfaces table and display to screen.
-POLL ...Toggle continuous polling of OID area specified with -o,
&n.bsp; displaying counter deltas. Off by default.
-POLLnd ...Toggle continuous polling of OID area specified with -o,
displaying only negative counter deltas. Off by default.
-POLLsa ...Toggle continuous polling of OID area specified with -o,
displaying all data. Off by default.
-s <seconds> ...The interstage timeout, if in non-interactive mode. The
interpoll timeout if using any -POLL option. Defaults
are 0 seconds and 1 second, respectively.
-v ...Toggle verbose mode (provide more detailed information).