Difference between revisions of "SNMP Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Cisco]][[Category:CCNP]][[Category:IOS]][[Category:Network]]
 
[[Category:Cisco]][[Category:CCNP]][[Category:IOS]][[Category:Network]]
 +
 +
*Read-only access
 +
*Allows all NMS's to manage the device
 +
*Supports both version 1 and 2c
 +
<pre>snmp-server community ciscodisco RO</pre>
 +
*Read-write access
 +
<pre>snmp-server community ciscodisco RW</pre>
 +
 +
* Only allow the NMS 1.1.1.1
 +
<pre>snmp-server community ciscodisco RO 2
 +
access-list 2 permit 1.1.1.1</pre>
 +
 +
==SNMP traps==
 +
==SNMPv1 traps==
 +
<pre>snmp-server host 1.1.1.1 version 1 ciscodisco
 +
snmp-server enable traps</pre>
 +
or
 +
<pre>snmp-server host 1.1.1.1 ciscodisco
 +
snmp-server enable traps</pre>
 +
 +
==SNMPv2 traps==
 +
<pre>snmp-server host 1.1.1.1 version 2c ciscodisco
 +
snmp-server enable traps</pre>

Revision as of 07:53, 25 June 2009


  • Read-only access
  • Allows all NMS's to manage the device
  • Supports both version 1 and 2c
snmp-server community ciscodisco RO
  • Read-write access
snmp-server community ciscodisco RW
  • Only allow the NMS 1.1.1.1
snmp-server community ciscodisco RO 2
access-list 2 permit 1.1.1.1

SNMP traps

SNMPv1 traps

snmp-server host 1.1.1.1 version 1 ciscodisco
snmp-server enable traps

or

snmp-server host 1.1.1.1 ciscodisco
snmp-server enable traps

SNMPv2 traps

snmp-server host 1.1.1.1 version 2c ciscodisco
snmp-server enable traps