Skip to main content

snmp command

Use this command to display and configure SNMP interface information.

Syntax:
snmp [-options]
Table 1. snmp options
OptionDescriptionValues
-a3SNMPv3 agenton, off
Note
To enable the SNMPv3 agent, the following criteria must be met:
  • IMM contact specified using the -cn command option.
  • IMM location specified using the -l command option.
-tSNMPv3 trapson, off
-tnSNMPv3 trap user nameValid user name
-tauthSNMPv3 trap authentication protocolnone, HMAC-SHA
-tapwSNMPv3 trap authentication passwordValid password
-tprivSNMPv3 trap privacy protocolnone, CBC-DES, AES
-tppwSNMPv3 trap privacy passwordValid password
-tixCommunity IP address or host name xValid IP address or hostname (limited to 63 characters, x can range 1 to 3).
Note
  • An IP address or host name can only contain dots, underscores, minus signs, letters and digits. No embedded spaces or consecutive periods are allowed.
  • Clear an community IP address or host name by specifying no argument.
-lIMM locationString (limited to 47 characters).
Note
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • Clear the IMM location by specifying no argument or by specifying an empty string as the argument, such as "".
-cnIMM contact nameString (limited to 47 characters).
Note
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • Clear the IMM contact name by specifying no argument or by specifying an empty string as the argument, such as "".
-t1SNMPv1 trapson, off
-cSNMP community nameString (limited to 15 characters).
Note
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • Clear an SNMP community name by specifying no argument or by specifying an empty string as the argument, such as "".
-ciCommunity IP address/host name 1Valid IP address or hostname (limited to 63 characters).
Note
  • An IP address or host name can only contain dots, underscores, minus signs, letters and digits. No embedded spaces or consecutive periods are allowed.
  • Clear an community IP address or host name by specifying no argument.
-c1iyCommunity IP address/host name yValid IP address or hostname (limited to 63 characters, y can range 2 or 3).
Note
  • An IP address or host name can only contain dots, underscores, minus signs, letters and digits. No embedded spaces or consecutive periods are allowed.
  • Clear an community IP address or host name by specifying no argument.
-t2SNMPv2 trapson, off
-ctSNMPv2 trap community nameString (limited to 15 characters).
Note
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • Clear the IMM contact name by specifying no argument or by specifying an empty string as the argument, such as "".
-ctiSNMPv2 trap community IP address/hostname 1Valid IP address or hostname (limited to 63 characters).
Note
  • An IP address or host name can only contain dots, underscores, minus signs, letters and digits. No embedded spaces or consecutive periods are allowed.
  • Clear an SNMP community IP address or host name by specifying no argument.
-eidSNMP engine idString (limited 1 to 27 characters)
-sendSend a test trap information 
Example:
system> snmp
-t enabled
-a3 enabled
-l ZhangjiangMansion
-cn Kelvin
-t1 enabled
-c community1
-ci host1
-t2 enabled
-ct community2
-cti host2
-eid XCC-7Z70-DSYM09X
system>