- This topic has 3 replies, 3 voices, and was last updated 11 years, 10 months ago by .
Hello All –
Is there any way to determine which site is firing an alert for a thread in a korn shell script? In essence, if I have a thread trigging an alert based on outbound queue depth, I’d like to find a way to place the site associated to that thread into a variable for use later in the script.
I could easily do this by manually keying the site id in the list of arguments passed into the script from the alert exec, but I’d like to see if there’s a more automated approach to it, so that I don’t have to hardcode everything into either the script itself or the alert exec line.
I currently have it to where all I need to pass into the script is the alert text (“%A”). From there, the script parses out the alert text to determine which thread is in alert. It then greps an hciconnstatus with the thread name to determine which process the thread falls under. The only missing component is cross-referencing either (or both) of those to find the site id and plopping it into a variable, but I haven
- The forum ‘Cloverleaf’ is closed to new topics and replies.