Skip to main content

snmp command

Use this command to enable or disable SNMPv1, SNMPv2, or SNMPv3 agent.

Syntax:
snmp [-options]
Table 1. snmp options
OptionDescriptionValues
-a3SNMPv3 agenton, off
-lBMC 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 BMC location by specifying no argument or by specifying an empty string as the argument, such as "".
-cnBMC 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 BMC 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/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 community IP address or host name by specifying no argument.
-c1iyCommunity IP address/hostname 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 BMC 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.
-ct1iyCommunity IP address/hostname 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.
-eidSNMP engine idString (limited 1 to 27 characters)
-sendSend a test trap information 
-tSNMPv3 trapson, off
-t3u Manage SNMPv3 trap userID is range 1 to 3
-tnSNMPv3 trap user nameValid user name
-tauth SNMPv3 trap authentication protocolnone, HMAC-SHA, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, HMAC-SHA512
Note
Default value is HMAC-SHA.
-tapwSNMPv3 trap authentication passwordValid password
-tprivSNMPv3 trap privacy protocolnone, CBC-DES, AES, AES192, AES256, AES192C, AES256C
Note
Default value is 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.
-del Delete SNMPv3 trap userID is range 1 to 3
Example:
system> snmp
-a3 disabled
-t disabled
-l location
-cn contact
-t1 disabled
-c
-ci
-c1i2
-c1i3
-t2 disabled
-ct
-cti
-ct1i2
-ct1i3
-eid XCC-7DG8-1234567890