snmp command

This command configures and displays the management-module SNMP settings.

Table 1. snmp command
Function What it does Command Valid targets
Display SNMP configuration of management module Displays the current SNMP configuration of the management module. snmp
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

SNMPv1 agent - enable/disable Enables or disables the management-module SNMPv1 agent. snmp -a - state

where state is on or off.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module bay number.

SNMPv3 agent - enable/disable Enables or disables the management-module SNMPv3 agent. snmp -a3 - state

where state is on or off.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module bay number.

SNMP traps - enable/disable Enables or disables the management-module SNMP traps. snmp -t - state

where state is on or off.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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 management module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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 management module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module bay number.

SNMP location - set Sets the location. snmp -l hostname/ip_address

where hostname/ip_address identifies the web site supporting SNMP for this management module.

  • 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.

Command use restricted (see Commands and user authority).

                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example: To view the SNMP configuration, while management module 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 management module 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 Disabled
-t Disabled
-l No Location Configured
-cn No Contact Configured
-c1 com1
-c1i1 1.2.3.4
-c1i2
-c1i3
-c2 com2
-c2i1 1.2.3.4
-c2i2
-c2i3
-c3
-c3i1
-c3i2
-c3i3
system:mm[1]> snmp -a -on -t -on
Changes to the network settings will take effect after the next reset of the MM.
system:mm[1]>