cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2860
Views
0
Helpful
3
Replies

Create SNMP oid with EEM

I want to monitor number of used MAC address in my catalyst switches through SNMP (show mac address count).

In this document I found that I can do it with EEM 3.1 

http://www.cisco.com/web/DK/assets/docs/presentations/Network_Automation_Masterclass.pdf

My devices support EEM 3.1, but I am new in EEM and can't find any examples doing this. Can you help me with examples?

3 Replies 3

Dan Frey
Cisco Employee
Cisco Employee

Getting the mac count for each vlan does not require creating OIDs in EEM.  There is an earlier discussion about this topic located here.

https://supportforums.cisco.com/message/3415870#3415870

Ok, but I want to control number of MAC's in catalysts 4500 and 3750. I have thousands of MAC's in it and will be difficult to read information about all MAC's in the table.

I want to control number of avialable MAC's in table and I thought that I can do it with EEM script.

What do you mean by control?  In your initial post you said you wanted to monitor the count.  Monitor and control are two different things.  You cannot control what MACs are inserted into the table with EEM, but you could use something like the script at https://supportforums.cisco.com/docs/DOC-19587 to insert the count into the EXPRESSION-MIB periodically so you can monitor it with SNMP.