02-12-2014 03:35 AM
Hi,
I want to know if is it possible to configure 3 trap snmp on the same cisco router because we have 3 network server management means enable trap on the same device to supervise by for example LMS ,NAGIOS and OpManager
Regards
Ahmed
Solved! Go to Solution.
02-12-2014 04:38 AM
Yes it will happen this way. The Traps you have configured will be sent to all destinations.
To specifically specify on which traps you want to send to perticular server/destination, you use options under the same snmp-server host command.
Example, I want to send bgp, memory and hsrp traps to server 1.1.1.1, i can configure it this way :
snmp-server host 1.1.1.2 public bgp memory hsrp
6500#sh snmp host
Notification host: 1.1.1.1 udp-port: 162 type: trap
user: public security model: v1
traps: FFFFFFFF.FFFFFFFF.FFFFFFFF
Notification host: 1.1.1.2 udp-port: 162 type: trap
user: public security model: v1
traps: 80002000.00000000.04000000
Here the trap security model is SNMP v1, you can choose traps to be snmp v1, v2 or v3.
-Thanks
Vinod
**Appriciate Contributors. RATE them.**
02-12-2014 04:10 AM
Hello Ahmed,
Yes it is very much possible and infact it is vey commonly used configuration. You can add multiple destinations to send traps, however recommended is to have maximum of four, else it may take a toll on your CPU from SNMP Engine process. Though, if the devices doesn't have much load, you can certainly add a couple of more.
Issue the snmp-server host global configuration command to specify the recipient of an SNMP notification operation.
Following is the syntax to add hosts/server IP to as destination for SNMP Trap IP:
snmp-server host host-addr [traps | informs] [version {1 | 2c | 3 [auth | noauth | priv]}] community-string [udp-port port] [notification-type]
You can configure multiple times to define multiple destination hosts.
Please check following example:
6500#show run | in snmp
snmp-server community public RO
snmp-server community test123 RO
snmp-server host 10.10.10.1 test123
snmp-server host 1.1.1.1 public
snmp-server host 1.1.1.2 public
snmp-server host 1.1.1.3 public
You can check more details here :
-Thanks
Vinod
**Encourages contributors, Rate them**
02-12-2014 04:25 AM
Hi Vinod
Thank you for your reply so i want to ask you ifi i used just the command snmp-server trap enable fo this case the cisco router send all tarps to the three destination or we must specify the trap host
Regards
Ahmed
02-12-2014 04:38 AM
Yes it will happen this way. The Traps you have configured will be sent to all destinations.
To specifically specify on which traps you want to send to perticular server/destination, you use options under the same snmp-server host command.
Example, I want to send bgp, memory and hsrp traps to server 1.1.1.1, i can configure it this way :
snmp-server host 1.1.1.2 public bgp memory hsrp
6500#sh snmp host
Notification host: 1.1.1.1 udp-port: 162 type: trap
user: public security model: v1
traps: FFFFFFFF.FFFFFFFF.FFFFFFFF
Notification host: 1.1.1.2 udp-port: 162 type: trap
user: public security model: v1
traps: 80002000.00000000.04000000
Here the trap security model is SNMP v1, you can choose traps to be snmp v1, v2 or v3.
-Thanks
Vinod
**Appriciate Contributors. RATE them.**
02-12-2014 04:58 AM
Thank you so much Vinod
Regards
Ahmed
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide