snmp command

This command configures and displays the CMM SNMP settings.

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or snmp command errors for a list of error messages that are specific to the snmp command.

Table 1. snmp command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

Function What it does Command Target (see paths in Command targets)
Display SNMP configuration of CMM Displays the current SNMP configuration of the CMM. snmp
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMPv1 agent - enable/disable Enables or disables the CMM SNMPv1 agent.
Note:
  • Before you can enable the SNMPv1 agent, the following must be specified (see config command):
    • CMM contact name
    • CMM location
    • at least one community name
    • at least one valid IP address for that community
  • SNMPv1 can not be enabled if the CMM chassis security level is set to secure with the security command.
snmp -a -state

where state is on or off .

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMPv3 agent - enable/disable Enables or disables the CMM SNMPv3 agent.
Note: Before you can enable the SNMPv3 agent, the following must be specified:
  • CMM contact name
  • CMM location
(see config command)
snmp -a3 -state

where state is on or off .

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP traps - enable/disable Enables or disables the CMM SNMP traps.
Note: SNMPv1 ports will not be available if the CMM chassis security level is set to secure with the security command.
snmp -t -state

where state is on or off .

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.

SNMP community 1 name - set

Sets the name of community 1. snmp -c1 name

where name is a descriptive name of community 1.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 1 first host name or IP address - set Checks syntax and sets the first host name or IP address of community 1. snmp -c1i1 hostname/ip_address

where hostname/ip_address is the first host name or IP address of community 1.

  • The first IP address of the first community can be set to 0.0.0.0 if the community access type is set to GET (for all CMM types) or SET.
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP Community 1, first host name - set access to SET (wildcard) Sets the access type for community 1 to SET. snmp –ca1 set -c1i1 0.0.0.0
  • With the access type of SET, anyone can query the management information base (MIB) and set MIB values. Using 0.0.0.0 IP address with SET access allows open access to the CMM for write (SET) operations. A 0.0.0.0 address cannot be a trap receiver.
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP Community 1, first host name or IP address - set access to GET (wildcard) Sets the access type for community 1 to GET. snmp –ca1 get -c1i1 0.0.0.0
  • With the access type of GET, anyone can query the MIB. Using 0.0.0.0 IP address with GET access allows open access to the CMM for read (GET). A 0.0.0.0 address cannot be a trap receiver.
  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 1 second host name or IP address - set Checks syntax and sets the second host name or IP address of community 1. snmp -c1i2 hostname/ip_address

where hostname/ip_address is the second host name or IP address of community 1.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 1 third host name or IP address - set Checks syntax and sets the third host name or IP address of community 1. snmp -c1i3 hostname/ip_address

where hostname/ip_address is the third host name or IP address of community 1.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMPv3 community 1 view type - set Sets the SNMPv3 view type for community 1. snmp -ca1 type
where type is
  • get
  • set
  • trap
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 2 name - set Sets the name of community 2. snmp -c2 name

where name is a descriptive name of community 2.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 2 first host name or IP address - set Checks syntax and sets the first host name or IP address of community 2. snmp -c2i1 hostname/ip_address

where hostname/ip_address is the first host name or IP address of community 2.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 2 second host name or IP address - set Checks syntax and sets the second host name or IP address of community 2. snmp -c2i2 hostname/ip_address

where hostname/ip_address is the second host name or IP address of community 2.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 2 third host name or IP address - set Checks syntax and sets the third host name or IP address of community 2. snmp -c2i3 hostname/ip_address

where hostname/ip_address is the third host name or IP address of community 2.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMPv3 community 2 view type - set Sets the SNMPv3 view type for community 2. snmp -ca2 type
where type is
  • get
  • set
  • trap
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 3 name - set Sets the name of community 3. snmp -c3 name

where name is a descriptive name of community 3.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 3 first host name or IP address - set Checks syntax and sets the first host name or IP address of community 3. snmp -c3i1 hostname/ip_address

where hostname/ip_address is the first host name or IP address of community 3.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 3 second host name or IP address - set Checks syntax and sets the second host name or IP address of community 3. snmp -c3i2 hostname/ip_address

where hostname/ip_address is the second host name or IP address of community 3.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP community 3 third host name or IP address - set Checks syntax and sets the third host name or IP address of community 3. snmp -c3i3 hostname/ip_address

where hostname/ip_address is the third host name or IP address of community 3.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMPv3 community 3 view type - set Sets the SNMPv3 view type for community 3. snmp -ca3 type
where type is
  • get
  • set
  • trap
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP contact name - set Sets the contact name. snmp -cn contact_name

where contact_name is the name of the party to be contacted when SNMP traps an event.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
SNMP location - set Sets the location. snmp -l hostname/ip_address

where hostname/ip_address identifies the website supporting SNMP for this CMM.

  • Arguments containing spaces must be enclosed in quotation marks. No leading or trailing spaces are allowed in arguments.
  • If this argument is not specified, the snmp command clears this option.
  • You can also clear this option by assigning an empty string as its value.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Example: To view the SNMP configuration, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
snmp
To enable the SNMP agent and SNMP traps, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
snmp -a -on -t -on

The following example shows the information that is returned from these two commands:

system:mm[1]> snmp
-a Enabled
-a3 Enabled
-t Enabled
-l Raleigh,NC
-cn Mr. Smith
-c1 public
-c1i1 9.44.146.157
-c1i2 9.44.147.24
-c1i3 9.49.165.217
-ca1 set
-c2 private
-c2i1 9.42.226.4
-c2i2
-c2i3
-ca2 get
-c3 test
-c3i1 9.44.247.64
-c3i2
-c3i3
-ca3 getsystem:mm[1]> snmp -a -on -t -on
system:mm[1]>