Difference between revisions of "SNMP Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
(SNMPv1 traps)
(SNMP traps)
Line 25: Line 25:
  
 
==SNMP traps==
 
==SNMP traps==
 +
* Enable all traps
 +
<pre>snmp-server enable traps</pre>
 
*Sends traps to the NMS 1.1.1.1
 
*Sends traps to the NMS 1.1.1.1
 
===SNMPv1 traps===
 
===SNMPv1 traps===
Line 30: Line 32:
 
</pre>
 
</pre>
 
or
 
or
<pre>snmp-server host 1.1.1.1 ciscodisco
+
<pre>snmp-server host 1.1.1.1 ciscodisco</pre>
snmp-server enable traps</pre>
 
  
 
===SNMPv2 traps===
 
===SNMPv2 traps===
<pre>snmp-server host 1.1.1.1 version 2c ciscodisco
+
<pre>snmp-server host 1.1.1.1 version 2c ciscodisco</pre>
snmp-server enable traps</pre>
 
  
 
===SNMPv3 traps===
 
===SNMPv3 traps===
<pre>snmp-server host 1.1.1.1 version 3 priv snmp-user
+
<pre>snmp-server host 1.1.1.1 version 3 priv snmp-user/pre>
snmp-server enable traps</pre>
+
 
 
==SNMP Informs==
 
==SNMP Informs==
  

Revision as of 08:45, 25 June 2009

Configuration

  • Allows all NMS's to manage the device
  • Supports both version 1 and 2c


  • Read-only access
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
  • SNMPv3
  • Choose one of the security models
snmp-server group snmp-group v3 priv
or
snmp-server group snmp-group v3 auth
or
snmp-server group snmp-group v3 noauth
  • Create a user and associate it with a group, specify the passwords and encryption
snmp-server user snmp-user snmp-group v3 auth sha ciscodisco priv des56 ciscodisco

SNMP traps

  • Enable all traps
snmp-server enable traps
  • Sends traps to the NMS 1.1.1.1

SNMPv1 traps

snmp-server host 1.1.1.1 version 1 ciscodisco

or

snmp-server host 1.1.1.1 ciscodisco

SNMPv2 traps

snmp-server host 1.1.1.1 version 2c ciscodisco

SNMPv3 traps

snmp-server host 1.1.1.1 version 3 priv snmp-user/pre>

==SNMP Informs==

<pre>snmp-server enable traps
!
snmp-server host 1.1.1.1 informs version 2c ciscodisco