Skip to main content

snmp command

Use this command to display and configure SNMP interface information.

Running the snmp command with no options displays all SNMP interface information. The following table shows the arguments for the options.

Table 1. snmp command.

The following table is a multi-row three column table consisting of the options, option descriptions, and associated values for the 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.
-t1SNMPv1 trapson, off
-t2SNMPv2 trapson, off
-tSNMPv3 trapson, off
-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 "".
-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 "".
-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 "".
-ciSNMP community IP address/host nameValid 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.
-ctiSNMPv2 trap community IP address/hostnameValid 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)
Syntax:
snmp [options]
option:
-a3 state
-t state
-l location
-cn contact_name
-t1 state
-c community name
-ci community IP address/hostname
-t2 state
-ct community name
-cti community IP address/hostname
-eid engine id
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>