[previous] Clear Spacer [next]


Displaying and Changing SNMP-related Information

You can display and change SNMP-related information for the stack using the commands on the SNMP menu. These commands allow you to:

Specifying SNMP Community Strings

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

The following prompt is displayed:
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.

Specifying Trap Destination Details

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

The following prompt is displayed:
Enter the trap community string [monitor]:

2 .   Enter the community string of the trap destination device.

The following prompt is displayed:
Enter the trap destination address:

3 .   Enter the IP address of the trap destination device.

Displaying Trap Destination Details

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

Modifying Trap Destination Details

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

The following prompt is displayed:
Select trap index (1,2,3):

2 .   Enter the index number of the trap destination device to be modified.

The following prompt is displayed:
Enter the trap community string [monitor]:

3 .   Enter the new community string of the trap destination device.

The following prompt is displayed:
Enter the trap destination address [<ip address>]:

4 .   Enter the new IP address of the trap destination device.

Removing Trap Destination Details

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

The following prompt is displayed:
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.

Performing an SNMP GET Command

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

The following prompt is displayed:
Enter object-identifier:

2 .   Enter the identifier of the SNMP object.

The following prompt is displayed:
Enter type (phys,ip,gauge,cnt,num,str)[str]:

3 .   Enter the data type of the SNMP object.

The value of the SNMP object is displayed.

Performing an SNMP GETNEXT Command

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

The following prompt is displayed:
Enter object-identifier:

2 .   Enter the identifier of an SNMP object.

The following prompt is displayed:
Enter count:

3 .   Enter the number of SNMP objects after the object specified for which you want to retrieve information.

The SNMP object information is displayed.

Performing an SNMP SET Command

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

The following prompt is displayed:
Enter object-identifier:

2 .   Enter the identifier of the SNMP object.

The following prompt is displayed:
Enter type (phys,ip,gauge,cnt,num,str)[str]:

3 .   Enter the data type of the SNMP object.

The following prompt is displayed:
Enter value:

4 .   Enter the new value of the SNMP object.

[previous] Clear Spacer [next]