snmp-global vs. interface commands

Unanswered Question
Feb 6th, 2008
User Badges:
  • Bronze, 100 points or more

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
David Stanford Wed, 02/06/2008 - 12:56
User Badges:
  • Cisco Employee,

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.


This Discussion