Difference between revisions of "SNMP Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
(SNMPv1 traps)
Line 12: Line 12:
 
<pre>snmp-server community ciscodisco RO 2
 
<pre>snmp-server community ciscodisco RO 2
 
access-list 2 permit 1.1.1.1</pre>
 
access-list 2 permit 1.1.1.1</pre>
 +
 +
*SNMPv3
 +
<pre>snmp-server group snmp-group v3 priv
 +
!
 +
snmp-server user snmp-user snmp-group v3 auth sha ciscodisco priv des ciscodisco</pre>
  
 
==SNMP traps==
 
==SNMP traps==
Line 24: Line 29:
 
===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
 +
snmp-server enable traps</pre>
 +
 +
===SNMPv3 traps===
 +
<pre>snmp-server host 1.1.1.1 version 3 priv snmp-user
 
snmp-server enable traps</pre>
 
snmp-server enable traps</pre>

Revision as of 08:06, 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
snmp-server group snmp-group v3 priv
!
snmp-server user snmp-user snmp-group v3 auth sha ciscodisco priv des ciscodisco

SNMP traps

SNMPv1 traps

  • Sends traps to the NMS 1.1.1.1
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

SNMPv3 traps

snmp-server host 1.1.1.1 version 3 priv snmp-user
snmp-server enable traps