Samples Please for Scripts?
- This topic has 1 reply, 1 voice, and was last updated 13 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
I just ordered a SF100-G today – It will be here tomorrow.
What I am planning is to mainly use it during an email outage, or WAN/MPLS outage to contact users. I think I have a decent handle on that.
The other use is as a last man standing alert system for our NMS (Solarwinds). Can someone provide a couple samples for how I could send a message from the command line? And perhaps send a message if network connectivity is lost?
Thanks,
Ed
Okay – Here’s a very basic script to send a message to a user in the address book. Might be useful for someone else starting out:
Filename: send.vbs
Code:
Dim connect
Set connect = CreateObject(“MSXML2.XMLHTTP”)
connect.open “GET”, “http://10.10.45.4:81/sendmsg?user=user&passwd=password&cat=1&ton=ed willson&text=Test”, False
connect.send
msgbox (connect.responseText)