Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

Scripting Question - how to bounce a switchport?

$
0
0

good morning all you Orion junkies!

 

Today I come to you with a question I am sure we have all thought of at one point or another. Now, I need to attempt to implement.

 

We have a need to create an advanced alert trigger to execute a script to "bounce" a POE enabled port.

 

Use Case - we have over 400 IP enabled cameras on our network. Most (probably 85% or more) are all running on a POE enabled switch-port.  We have seen issues that require us to "reboot" the camera. If we simply monitor the cameras with ICMP, we never see an issue. However, if we attempt to manage the same camera via HTTP, we tend to get timeouts because the camera has stopped responding to http requests.  Therefore, we have manually had to login to a switch, find the correct port, and give it the good old "shut/no shut" to bring it back to life.

 

So - I was wanting to automate this in some way.

 

This is the process I think we need to do  -

1. When we install the cameras, we are adding the camera name to the port description on the switch

2. Every camera has a static IP address

3. Create a custom field in NPM for "Is_Camera"

4. Create a custom field in NPM for "Switch-port"

4. Create a trigger alert that validates the device is a camera (is_camera = true)

5. Execute a script to login to the switch and bounce the appropriate port.   (this is where I get a bit fuzzy - can we pass variables to a script from the Advance Alert editor?)

 

any thoughts/tips?


Viewing all articles
Browse latest Browse all 21870

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>