Configure snmp for Cisco devices 1. Configure IOS devices (routers) config terminal enter global configuration status Cdp run enable CDPsnmp-server community gsunion ro configure the read-only string of this vro as gsunionsnmp-server community gsunion rw configure the read/write string of this vro as gsunionsnmp-server enable traps allow the router to send all types of SNMP traps to www.2cto.com snmp-server host IP-address-server traps trapcomm. Specify that the receiver of the SNMP Trap on the router is 10.238.18.17, when sending a Trap, trapcomm is used as the snmp-server trap-source loopback0 and the IP address of the loopback interface is used as the sending source address of the SNMP Trap. logging on starts the log Mechanism. logging IP-address-server sends the log record 10.238.18.17 (IP address of the CW2K server) syslog serverlogging facility local7 defines the record event type as local7logging trap warning, and defines the record event severity level as starting from warningl, all events at the most urgent level are recorded on the specified syslog server. www.2cto.com logging source-interface loopback0 specify the IP address that records the event sending source as loopback0 service timestamps log datetime when sending the event record contains the time mark enable password ***** copy running start or write terminal save configuration 1. enable SNMP: configure terminalsnmp-server community rw/ro (example: snmp-server community public ro) 2. enable trap: configure terminalsnmp-server enable traps snmp authentication3. configure snmp # conf t # snmp-server community cisco ro (read-only ); configure the read-only communication string # snmp-server community secret rw (read/write); configure the read/write communication string # snmp-server enable traps; configure the gateway snmp trap # snmp-server host 10.254.190.1 rw; configure the gateway workstation address 2. set the CatOS device (switch) to Enable CatOS, and enter set interface sc0 vlan id ip address to configure the vlan id and IP address of the local management interface of the switch, subnet Mask Set cdp enable all enable CDPset snmp community read-only gsunion configuration the read-only string of this switch is publicset snmp community read-write-all gsunion configuration the read/write string of this switch is privateset snmp trap server-ip gsunion specifies that the receiver of the SNMP Trap on the switch is the network management server, when sending the Trap, use gsunion as the string set snmp trap enable all to send all types of SNMP traps out set snmp rmon enable the snmp rmon function of the switch. set logging server IP-address-server record the IP address sent to the Network Management Server (IP address of the CW2K installation machine) syslog serverset logging level 6 defines the Severity level of recorded events as starting from informational, all events at the most urgent level are recorded in the syslog serverset logging server facility local7 specified in the front. The recorded event type is defined as local7set logging timestamp. When an event is sent, the set logging enable startup log contains the time flag. mechanism write terminal display and Check Configuration save Configuration