I'm trying to find a way to gather "show tech" info from a group of Cisco switches once they reach a certain cpu utilization threshold. I know I can set up an advanced alert in NPM, and select a Triggered Action-->External Program, but I'm not that handy with writing scripts. Is there a simpler way to do this with NPM and NCM?
We have Catalyst 4500 model switches that randomly have very high cpu conditions that only clear with a reboot, so we are trying to capture the state of the switch ("show tech" output) when the condition occurs.
Solved! Go to Solution.
Just a sidenote here -- you should keep in mind that running show-tech is a CPU intensive process, so running this while your CPU is pegged could potentially compound the issue. I would pare it back a little and set your script to grab a copy of 'show proc' or 'show platform health' instead, but that's up to you.
As to how to do this, NPM has the option to execute an NCM action as a trigger action. I think you just need to choose this item as your trigger action, then enter your config script elements and you should be set.
I don't see "execute an NPM action" listed as an option, but I haven't installed NCM yet. Are you saying that I will have this as an option once NCM is installed? Thanks.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.