Cisco GSS Administration Guide (Software Version 1.2)
Configuring SNMP

Table Of Contents

Configuring SNMP

Overview

Configuring SNMP on Your GSS

Viewing SNMP Status

Viewing MIB Files on the GSS


Configuring SNMP


This chapter describes how to configure Simple Network Management Protocol (SNMP) to query GSS devices for standard MIB resources.

It contains the following major sections:

Overview

Configuring SNMP on Your GSS

Viewing SNMP Status

Viewing MIB Files on the GSS

Overview

SNMP is a set of network management standards for IP-based internetworks. SNMP includes a protocol, a database-structure specification, and a set of management data objects. SNMP implementations typically consist of a management application running on one or more network management systems (NMSs), and agent applications, usually executing in firmware on various network devices.

SNMP obtains information from the network through a Management Information Base (MIB). The MIB is a database of code blocks called MIB objects. Each MIB object controls one specific function, such as counting how many bytes are transmitted through an agent's port. The MIB object consists of MIB variables, which define the MIB object name, description, and default value.

Each GSS or GSSM contains an SNMP agent, ucd-snmp v4.2.3, to query other GSS devices for standard MIB resources found in MIB-II (RFC-1213) and Host Resources MIB (RFC 2790). SNMP runs on GSS port 161 by default. The SNMP agent receives instructions from the SNMP manager, and also sends management information back to the SNMP manager as events occur.

Configuring SNMP on Your GSS

Before you use SNMP to monitor your GSS or GSSM, enable the SNMP agent on each GSS device. In addition to enabling the SNMP agent on the GSS device, you also specify an SNMP community name, name of the contact person, and the physical location for the GSS device.

Use the snmp command in global configuration mode to enable SNMP on your GSS device. To disable SNMP on the GSS, use the no form of this command.

To configure SNMP for a GSS device:

1. Log in to the CLI and enable privileged EXEC mode.

gss1.example.com> enable
gss1.example.com# 

2. Access global configuration mode.

gss1.example.com# config
gss1.example.com(config)# 

3. To enable the SNMP agent, use the snmp enable command.

gss1.example.com(config)# snmp enable

4. To specify a SNMP community name for this GSS device, use the snmp community-string command. Each GSS device becomes part of the named community. By default, the SNMP community string is public. To change the SNMP community string, enter an unquoted text string with no space and a maximum length of 12 characters.

gss1.example.com(config)#snmp community-string 
Enter new Community String: MyCommunity

5. To specify the name of the contact person for this GSS device, use the snmp contact command. You can include information on how to contact the person; for example, a phone number or e-mail address. Enter an unquoted text string with a maximum of 255 characters including spaces.

gss1.example.com(config)#snmp contact
Enter new Contact Info: Cisco Systems, Inc.

6. To specify the physical location of this GSS device, use the snmp location command. Enter an unquoted text string with a maximum length of 255 characters.

gss1.example.com(config)#snmp location
Enter new Location Info: Boxborough, MA 01719

7. To disable SNMP or any of the parameters outlined above, use the no form of the snmp command. For example, to disable the SNMP location for the GSS, enter:

gss1.example.com(config)# no snmp location

Viewing SNMP Status

Once SNMP is enabled, you can display the SNMP status on your GSS device using the show snmp command. Verify that your SNMP agent, ucd-snmp v4.2.3, is enabled or disabled, as well as the configured names of the community-string, location, and contact.


Note You can also use the show services command to verify if SNMP is enabled or disabled. Refer to the "Displaying GSS Services" section in Chapter 2, Managing the GSS from the CLI.


For example, enter:

gss1.example.com# show snmp 
snmp is enabled

snmp settings
-------------
Community String = <set>
Location = Boxborough MA
Contact = Cisco Systems

See the "Configuring SNMP on Your GSS" section to change the status of your SNMP agent running on the GSS device.

Viewing MIB Files on the GSS

To view the MIB files contained in the /mibs directory on the GSS, use the dir command. If you want to copy the MIB files from the /mibs directory on the GSS to another location on the GSS or to a remote network location, use the ftp or scp command.

For example, enter:

gss1.example.com#dir /mibs
total 1100
drwxr-xr-x    2 root   root    4096 Jul 18 08:45 .
drwxrwxrwx   19 root   root    4096 Jul 18 08:46 ..
-rw-r--r--    1 root   root   17455 Jul 18 08:45 AGENTX-MIB.txt
-rw-r--r--    1 root   root   19850 Jul 18 08:45 DISMAN-SCHEDULE-MIB.txt
-rw-r--r--    1 root   root   64311 Jul 18 08:45 DISMAN-SCRIPT-MIB.txt
-rw-r--r--    1 root   root   50054 Jul 18 08:45 EtherLike-MIB.txt
-rw-r--r--    1 root   root    4660 Jul 18 08:45 HCNUM-TC.txt
-rw-r--r--    1 root   root   52544 Jul 18 08:45 HOST-RESOURCES-MIB.txt
-rw-r--r--    1 root   root   10583 Jul 18 08:45 HOST-RESOURCES-TYPES.txt
-rw-r--r--    1 root   root    4015 Jul 18 08:45 
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-r--r--    1 root   root    4299 Jul 18 08:45 IANA-LANGUAGE-MIB.txt
-rw-r--r--    1 root   root   15661 Jul 18 08:45 IANAifType-MIB.txt
-rw-r--r--    1 root   root    5066 Jul 18 08:45 IF-INVERTED-STACK-MIB.txt
-rw-r--r--    1 root   root   71691 Jul 18 08:45 IF-MIB.txt
-rw-r--r--    1 root   root    6260 Jul 18 08:45 INET-ADDRESS-MIB.txt
-rw-r--r--    1 root   root   26781 Jul 18 08:45 IP-FORWARD-MIB.txt
-rw-r--r--    1 root   root   23499 Jul 18 08:45 IP-MIB.txt
-rw-r--r--    1 root   root   15936 Jul 18 08:45 IPV6-ICMP-MIB.txt
-rw-r--r--    1 root   root   48703 Jul 18 08:45 IPV6-MIB.txt
-rw-r--r--    1 root   root    2367 Jul 18 08:45 IPV6-TC.txt
-rw-r--r--    1 root   root    7257 Jul 18 08:45 IPV6-TCP-MIB.txt
-rw-r--r--    1 root   root    4400 Jul 18 08:45 IPV6-UDP-MIB.txt
-rw-r--r--    1 root   root    1174 Jul 18 08:45 RFC-1215.txt
-rw-r--r--    1 root   root    3067 Jul 18 08:45 RFC1155-SMI.txt
-rw-r--r--    1 root   root   79667 Jul 18 08:45 RFC1213-MIB.txt
-rw-r--r--    1 root   root  147822 Jul 18 08:45 RMON-MIB.txt
-rw-r--r--    1 root   root    4628 Jul 18 08:45 SMUX-MIB.txt
-rw-r--r--    1 root   root   15490 Jul 18 08:45 SNMP-COMMUNITY-MIB.txt
-rw-r--r--    1 root   root   20750 Jul 18 08:45 SNMP-FRAMEWORK-MIB.txt
-rw-r--r--    1 root   root    5261 Jul 18 08:45 SNMP-MPD-MIB.txt
-rw-r--r--    1 root   root   19083 Jul 18 08:45 SNMP-NOTIFICATION-MIB.txt
-rw-r--r--    1 root   root    8434 Jul 18 08:45 SNMP-PROXY-MIB.txt
-rw-r--r--    1 root   root   21495 Jul 18 08:45 SNMP-TARGET-MIB.txt
-rw-r--r--    1 root   root   38035 Jul 18 08:45 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r--    1 root   root   33430 Jul 18 08:45 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r--    1 root   root    8263 Jul 18 08:45 SNMPv2-CONF.txt
-rw-r--r--    1 root   root   25052 Jul 18 08:45 SNMPv2-MIB.txt
-rw-r--r--    1 root   root    8924 Jul 18 08:45 SNMPv2-SMI.txt
-rw-r--r--    1 root   root   38034 Jul 18 08:45 SNMPv2-TC.txt
-rw-r--r--    1 root   root    3981 Jul 18 08:45 SNMPv2-TM.txt
-rw-r--r--    1 root   root   10765 Jul 18 08:45 TCP-MIB.txt
-rw-r--r--    1 root   root    2058 Jul 18 08:45 UCD-DEMO-MIB.txt
-rw-r--r--    1 root   root    3131 Jul 18 08:45 UCD-DISKIO-MIB.txt
-rw-r--r--    1 root   root    2928 Jul 18 08:45 UCD-DLMOD-MIB.txt
-rw-r--r--    1 root   root    8037 Jul 18 08:45 UCD-IPFWACC-MIB.txt
-rw-r--r--    1 root   root   30343 Jul 18 08:45 UCD-SNMP-MIB.txt
-rw-r--r--    1 root   root    4076 Jul 18 08:45 UDP-MIB.txt