02-25-2004 04:26 AM - edited 03-02-2019 01:50 PM
Hi there,
my Cisco C3500XL Switch (IOS 12.0(5.2)XU) sends many snmp traps to the snmp server.
Here is the config:
snmp-server engineID local XXXX
snmp-server community XXXX RW 1
snmp-server enable traps snmp
snmp-server enable traps config
snmp-server host 1.1.1.1 trap XXXX
The switch also sends link up/down messages. I don't want this.
Can you help me to fix this problem??
Thanks in advance!
Solved! Go to Solution.
02-25-2004 09:13 AM
Hi,
AFAIK, there are following commands involved (I'm running 12.0(5)WC8):
1) snmp-server enable traps snmp [authentication] [linkdown] [linkup] [coldstart]
2)int fa0/x
[no] snmp trap link-status (Allow SNMP LINKUP and LINKDOWN traps)
3) snmp-server host 1.1.1.1 trap XXXX [tty] [vlan-membership] [config] [entity] [c2900] [vtp] [cluster] [snmp]
My understanding is:
snmp-server enable traps snmp
enables ALL snmp traps including link up/down.
If you specify only
snmp-server enable traps snmp authentication coldstart
the link up/downs might not be sent.
If it doesn't help, try
no snmp trap link-status
for each interface.
This should definitely stop link up/downs from the interfaces.
Finally you can choose which traps are sent to 1.1.1.1 by using the options in
snmp-server host 1.1.1.1 trap XXXX ....
command.
BTW, I think it's better not to stop link up/down alarms BUT to configure HPOV alarm monitor to LOG ONLY (not to display them but save to the database) these traps.
Regards,
Milan
02-25-2004 09:13 AM
Hi,
AFAIK, there are following commands involved (I'm running 12.0(5)WC8):
1) snmp-server enable traps snmp [authentication] [linkdown] [linkup] [coldstart]
2)int fa0/x
[no] snmp trap link-status (Allow SNMP LINKUP and LINKDOWN traps)
3) snmp-server host 1.1.1.1 trap XXXX [tty] [vlan-membership] [config] [entity] [c2900] [vtp] [cluster] [snmp]
My understanding is:
snmp-server enable traps snmp
enables ALL snmp traps including link up/down.
If you specify only
snmp-server enable traps snmp authentication coldstart
the link up/downs might not be sent.
If it doesn't help, try
no snmp trap link-status
for each interface.
This should definitely stop link up/downs from the interfaces.
Finally you can choose which traps are sent to 1.1.1.1 by using the options in
snmp-server host 1.1.1.1 trap XXXX ....
command.
BTW, I think it's better not to stop link up/down alarms BUT to configure HPOV alarm monitor to LOG ONLY (not to display them but save to the database) these traps.
Regards,
Milan
02-25-2004 10:30 PM
Hi,
the 1) did not resolve my problem. In this IOS the only "snmp-server enable traps snmp" option is "authentication". "Linkdon/Linkup etc." are not possible.
But the 2) resolved my problem :-)
This was exhausting, because this is a 48 port switch and there is no "int range" command...
Ok, thank you!
02-26-2004 12:33 AM
Well,
ad 1) These options are available in the latest IOS, you need to upgrade to use them.
ad 2) You can use a script to generate the proper command for all necessary ports. I described a UNIX script example in
Regards,
Milan
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