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.
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:
|
SNMPv1 agent - enable/disable | Enables or disables the CMM SNMPv1
agent. Note:
|
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:
|
Primary CMM:
|
SNMPv3 agent - enable/disable | Enables or disables the CMM SNMPv3
agent. Note: Before you can enable the SNMPv3 agent, the following
must be specified:
|
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:
|
Primary CMM:
|
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:
|
Primary CMM:
|
SNMP community 1 name - set |
Sets the name of community 1. | snmp
-c1 name where name is a descriptive name of community 1.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
SNMPv3 community 1 view type - set | Sets the SNMPv3 view type for community 1. | snmp
-ca1 type where type is
This command can only be run by users who have one or
more of the following command authorities:
|
Primary CMM:
|
SNMP community 2 name - set | Sets the name of community 2. | snmp
-c2 name where name is a descriptive name of community 2.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
SNMPv3 community 2 view type - set | Sets the SNMPv3 view type for community 2. | snmp
-ca2 type where type is
This command can only be run by users who have one or
more of the following command authorities:
|
Primary CMM:
|
SNMP community 3 name - set | Sets the name of community 3. | snmp
-c3 name where name is a descriptive name of community 3.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
SNMPv3 community 3 view type - set | Sets the SNMPv3 view type for community 3. | snmp
-ca3 type where type is
This command can only be run by users who have one or
more of the following command authorities:
|
Primary CMM:
|
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.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
SNMP location - set | Sets the location. | snmp
-l hostname/ip_address where hostname/ip_address identifies the website supporting SNMP for this CMM.
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
snmp
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]>