Difference between revisions of "SNMP Cisco IOS"
From Teknologisk videncenter
(→Configuration) |
(→Configuration) |
||
Line 3: | Line 3: | ||
*Allows all NMS's to manage the device | *Allows all NMS's to manage the device | ||
*Supports both version 1 and 2c | *Supports both version 1 and 2c | ||
+ | <br> | ||
*Read-only access | *Read-only access | ||
<pre>snmp-server community ciscodisco RO</pre> | <pre>snmp-server community ciscodisco RO</pre> |
Revision as of 07:55, 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
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