Disable snmp trap link-status only on access ports?

Unanswered Question
Jul 6th, 2010


I am searching for a way to disable the snmp trap link-status only on access ports.

The problem is that we have a lot of new devices which have no port scheme, so I can't say that everytime the router uplink on a switch is on port X or Y.

So I have to figure out where my uplinks to routers, accesspoints or other switches are and set all other ports to

no snmp trap link-status

no logging event link-status

spanning-tree portfast

Campus Manager knows the uplinks between the devices, but there is no way to perform such a change, right?

The next problem is, that there is nothing configured on the ports, so I can't search for a string by using compliance check in RME.

Is there any posibility to get the topology informations from CM together with the configuration feature from RME?

Thanks a lot!


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Michel Hegeraat Tue, 07/06/2010 - 02:55

I think creating port groups in RME is your best bet. But this is a manual job and it is static.

Indeed the info you need is there inside LMS product, in Campus and especially in DFM. But no way AFAIK to get it out.

It would be very nice if LMS would have port groups like that standard availalble.

Alternatively if you use Campus to create RMON entries to do bandwidth utilization monitoring on all ports that have CDP neigborgs, the remaining ports (without the RMON) are the ports you wish to target using the RME compliance tool.



Sven Hruza Tue, 07/06/2010 - 03:30


thanks for your reply.

I thought of something like you wrote...

There is a best practice report for disabling cdp on access ports.

Creating this report for a switch and click on "fix" the CM will configure the command "no cdp enable" on every access port.

So I will have a difference between uplinks and access ports.

The problem with that solution is, that I can't fix all my switches with one job.

And with >1000 switches it is not really possible to click every device.

Any further advice?



Del Murphy Tue, 11/30/2010 - 13:34

This will take some perl skills on your part but you could create a perl script that connects to each switch and excutes a number of commands. I use to manage 100+ Cisco devices and needed to make the changes to all devices, the perl allowed me to get it done in minutes.


The link above will get you started.

Sven Hruza Thu, 12/02/2010 - 04:30

Thanks for the link.

The problem is, that I don't have any pearl skills....

I think it is impossible to get such scripts running without basic knowledge.


Martin Ermel Thu, 12/02/2010 - 04:45

Hi Sven! :-)

so changing a bit the lines of the fix for the CM discrepancy "disable CDP on access ports" would be an option?

If so, I will have a look at it but unfortunatley not before beginning of next week...- or someone finds another solution....

Michel Hegeraat Thu, 12/02/2010 - 05:20

This is not going to help you, but I did notice that in LMS 4.0 I have these port groups.

You can now select 500 devices and do something on all their access ports, or all ports having an IP phone connected, or all uplinks, etc

The port groups can now be defined dynamically.

So glad cisco finaly sees the added value of this!



Del Murphy Thu, 12/02/2010 - 07:41

I suppose there is some truth to that, but there are a number of examples on the web that could help. It is a very useful tool when manage a large number of Cisco devices.

Del Murphy CCNA CCDA

PAML Network Support


This Discussion