Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Taking 5 minutes to be notified an AP is down

$
0
0

What type of AP/Controller? Does the controller generate traps indicating the tunnel between the AP and the controller has gone down?

 

I use a script off the TrapReceiver to set the status of the AP automatically (saves increasing the polling time). This sets the AP whose IP address matches the command line argument passed in as available, and down. I have an equivalent script that flags it as up when it returns to service (via a trap). The periodic polling catches any missed traps

 

Const DB_CONNECT_STRING = "Provider=SQLOLEDB.1;Data Source=server;Initial Catalog=SolarWindsOrion;User ID='username';Password='password';"

if WScript.Arguments.Count = 0 then
    WScript.Echo "Missing parameters"    Wscript.Quit
end if

Set myConn = CreateObject("ADODB.Connection")
Set myCommand = CreateObject("ADODB.Command" )
myConn.Open DB_CONNECT_STRING
Set myCommand.ActiveConnection = myConn

' generate an update statement from the input
' myCommand.CommandText = SQL update statement here
myCommand.Execute
myConn.Close

 

You can extend this idea to set custom properties on nodes or interfaces for other trap-directed alerting.

 

aside: I get pretty circumspect about sharing scripts that directly modify the database since they tend to be Orion-version specific and could be dangerous if improperly used. So, I'll leave it to you to figure out the correct update statement to generate in the script if this is an approach you want to take.


Viewing all articles
Browse latest Browse all 20396

Trending Articles