Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Ciscoworks LMS 4.1 - Create a script for violation threshold

Good morning everyone,

I'm working on Ciscoworks LMS 4.1 and I've created an alarm to monitor interfaces to my 2960 switchs in "err-disabled".

I'm using the MIB object "CErrDisableFeatureID" and it's work, I get my alarms.

I would like to deepen my research :

Today, I generate a syslog file for my alarm. And when I've got an alarm, I would like to apply an automatic process to "shut" and "no shut" interfaces in "err-disabled".

I configured a netconfig job to do this but I must do it device per device and choose interfaces by device.

Can i do this by a script ?
Would it be in the script configuration parameter thresholds ?

 

Thanks for your consideration.
Cordially

 

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

It seems LMS doesn't have

It seems LMS doesn't have much to do this, as it is complicated to have unique interface details on each device to shut and no shut.

You can take specific action on a perticular interface easily, but it will be useless. This need scripting to be included which can parse syslog and take action according.

This should be something on the device itself, which is either EEM or TCL script.

I am not very sure on EEM if it can do so, but TCL script should be easily able to do it.

You can post your query if EEM/TCL can shut no shut intefaces when syslog for err disable is generated for them, on our EEM Scripting community here :

https://supportforums.cisco.com/community/5941/eem-scripting

-Thanks

Vinod

** Encourage contributors. RATE them **

 

-Thanks Vinod **Rating Encourages contributors, and its really free. **
2 REPLIES
Cisco Employee

It seems LMS doesn't have

It seems LMS doesn't have much to do this, as it is complicated to have unique interface details on each device to shut and no shut.

You can take specific action on a perticular interface easily, but it will be useless. This need scripting to be included which can parse syslog and take action according.

This should be something on the device itself, which is either EEM or TCL script.

I am not very sure on EEM if it can do so, but TCL script should be easily able to do it.

You can post your query if EEM/TCL can shut no shut intefaces when syslog for err disable is generated for them, on our EEM Scripting community here :

https://supportforums.cisco.com/community/5941/eem-scripting

-Thanks

Vinod

** Encourage contributors. RATE them **

 

-Thanks Vinod **Rating Encourages contributors, and its really free. **
New Member

Hello,Can you please explain

Hello,

Can you please explain to me how to config a netconfig job to activate when a threshold occur? If I understand, you configured a netconfig job to do "shut" and "no shut" interfaces when "err-disabled" threshold occur?

I need to execute command on Cisco switch when interface utilization is more than 50%.

Thanks for your consideration.
Vladimir

88
Views
0
Helpful
2
Replies
CreatePlease to create content