Sample

The main objective of this challenge is to set some of some SNMP settings. A sample configuration is:

R1# config t
R1(config)# snmp-server community test
R1(config)# snmp-server location edin
R1(config)# snmp-server contact fred
R1(config)# snmp-server enable traps

For example:

R1> en
R1# config t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)# snmp-server ?
  chassis-id        String to uniquely identify this chassis
  community         Enable SNMP; set community string and access privs
  contact           Text for mib object sysContact
  drop              Silently drop SNMP packets
  enable            Enable SNMP Traps or Informs
  engineID          Configure a local or remote SNMPv3 engineID
  group             Define a User Security Model group
  host              Specify hosts to receive SNMP notifications
  ifindex           Enable ifindex persistence
  inform            Configure SNMP Informs options
  location          Text for mib object sysLocation
  manager           Modify SNMP manager parameters
  packetsize        Largest SNMP packet size
  queue-length      Message queue length for each TRAP host
  source-interface  Assign an source interface
  system-shutdown   Enable use of the SNMP reload command
  tftp-server-list  Limit TFTP servers used via SNMP
  trap              SNMP trap options
  trap-source       Assign an interface for the source address of all traps
  trap-timeout      Set timeout for TRAP message retransmissions
  user              Define a user who can access the SNMP engine
  view              Define an SNMPv2 MIB view

R1(config)# snmp-server community ?
  WORD  SNMP community string

R1(config)# snmp-server community test
R1(config)# snmp-server location edin
R1(config)# snmp-server contact fred
R1(config)# snmp-server enable ?
  informs  Enable SNMP Informs
  traps    Enable SNMP Traps

R1(config)# snmp-server enable traps