Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

snmp-global vs. interface commands

First, I'm not clear on which is correct:

"snmp-server enable traps snmp linkup linkdown" OR

"snmp trap link-status"

Even the most current documents seem to reference both though I think the "link-status" version is supposed to be out of date.

But the real question is, if I only want to monitor a few ports out of a huge stack, can I just issue the "snmp trap link-status" on those ports or must I turn SNMP traps on globally then go back to every one of a hundred other ports and turn it off again?

1 REPLY
Cisco Employee

Re: snmp-global vs. interface commands

Two levels of Controls are applied to the LINK UP/DOWN Traps.

1. At SNMP Level

2. At interface Level

At interface Level the LINK UP/DOWN Traps are enabled by default. (snmp trap link-status)

But at SNMP level no traps are enabled by default.

So even if at the interface level LINK UP Traps are enabled , unless "snmp-server enable traps snmp linkup linkdown" is configured, SNMP Agent doesn't allow the LINK UP/DOWN traps to go out.

Which means you would then have to go disable interfaces as you thought.

281
Views
0
Helpful
1
Replies
CreatePlease to create content