You can display and change SNMP-related information for the stack using the commands on the SNMP menu. These commands allow you to:
You can specify SNMP community strings for the users defined on the stack using the community command on the SNMP menu.
By default, all users have a community string that is identical to the user name. For example, the community string for the user monitor is monitor.
To specify the SNMP community strings:
1 . At the Top-level menu, enter:
snmp community
Enter new community for user `<user>':
2 . Enter the community string for the user.
3 . Repeat step 2 for the other users defined on the stack.
You can specify the community string and IP address of devices that are to be the destination for traps on your network using the define command on the SNMP/Trap menu.
To specify the details of a trap destination device:
1 . At the Top-level menu, enter:
snmp trap define
Enter the trap community string [monitor]:
2 . Enter the community string of the trap destination device.
Enter the trap destination address:
3 . Enter the IP address of the trap destination device.
You can display the community string and IP address of the current trap destination devices using the display command on the SNMP/Trap menu.
To display trap destination details:
snmp trap display
The trap destination details are displayed.
An example of the information is shown below:
|
Index |
Community String |
Destination Address |
|
1 |
monitor |
191.1.1.1 |
|
2 |
monitor |
191.1.1.2 |
|
3 |
monitor |
191.1.1.3 |
|
4 |
monitor |
191.1.1.4 |
You can modify the community string and IP address of a current trap destination device using the modify command on the SNMP/Trap menu.
To modify trap destination details:
1 . At the Top-level menu, enter:
snmp trap modify
Select trap index (1,2,3):
2 . Enter the index number of the trap destination device to be modified.
Enter the trap community string [monitor]:
3 . Enter the new community string of the trap destination device.
Enter the trap destination address [<ip address>]:
4 . Enter the new IP address of the trap destination device.
You can remove the details of a current trap destination device using the remove command on the SNMP/Trap menu.
To remove trap destination details:
1 . At the Top-level menu, enter:
snmp trap remove
Select trap index (1,2,3,all):
2 . Enter the index number of the trap destination device that is to have its details removed, or enter all to remove all trap destination device details.
An SNMP GET command allows you to retrieve values of SNMP objects from a network device. You can perform an SNMP GET command on the stack using the get command on the SNMP menu.
To perform an SNMP GET command on the stack:
1 . At the Top-level menu, enter:
snmp get
Enter object-identifier:
2 . Enter the identifier of the SNMP object.
Enter type (phys,ip,gauge,cnt,num,str)[str]:
3 . Enter the data type of the SNMP object.
An SNMP GET NEXT command allows you to specify an SNMP object in a network device and then retrieve information about the next few SNMP objects in the device. You can perform an SNMP GET NEXT command on the stack using the next command on the SNMP menu.
To perform an SNMP GETNEXT command on the stack:
1 . At the Top-level menu, enter:
snmp next
Enter object-identifier:
2 . Enter the identifier of an SNMP object.
Enter count:
3 . Enter the number of SNMP objects after the object specified for which you want to retrieve information.
An SNMP SET command allows you to modify values of SNMP objects in a network device. You can perform an SNMP SET command on the stack using the set command on the SNMP menu.
CAUTION: You should not modify the values of SNMP objects unless you have considerable knowledge and experience with SNMP.
To perform an SNMP SET command on the stack:
1 . At the Top-level menu, enter:
snmp set
Enter object-identifier:
2 . Enter the identifier of the SNMP object.
Enter type (phys,ip,gauge,cnt,num,str)[str]:
3 . Enter the data type of the SNMP object.
Enter value:
4 . Enter the new value of the SNMP object.