[Contents] [Prev] [Next] [Index] [Report an Error]

SNMP Configuration Tasks

To configure the SNMP server:

  1. Enable the SNMP server.
    host1(config)#snmp-server
  2. Configure at least one authorized SNMP community (SNMPv1/v2c) or user (SNMPv3), which provides SNMP client access.
    host1(config)#snmp-server community boston view everything rw
    host1(config)#snmp-server user fred group private auth sha fred-password priv des password
  3. (Optional) Set the server parameters—contact name and server location.
    host1(config)#snmp-server contact Bob Smith
    host1(config)#snmp-server location 3rdfloor
  4. (Optional) Reconfigure the maximum SNMP packet size.
    host1(config)#snmp-server packetsize 1000
  5. (Optional) Configure memory warning parameters.
    host1(config)#memory warning 80 70
  6. (Optional) Configure the method the router uses to encode the ifDescr and ifName objects.
    host1(config)#snmp interfaces description-format common
  7. (Optional) Manage the interface sublayers (compress interfaces and control interface numbering).
    host1(config)#snmp-server interfaces compress atmAal5
    host1(config)#snmp-server interface compress-restriction ifadminstatusdown
    host1(config)#snmp interfaces rfc1213 55000 100000
  8. (Optional) Configure the dynamic group parameters.
    host1(config)#snmp-server group grp1authpriv usm priv read grp1read write grp1write notify grp1notify
  9. (Optional) Configure the dynamic view parameters.
    host1(config)#snmp-server view view1 1.3.6.1 included non-volatile

You can also set up SNMP traps and set up the router to collect bulk statistics. See Configuring Traps and Collecting Bulk Statistics.


[Contents] [Prev] [Next] [Index] [Report an Error]