Samples Please for Scripts?

Home Forums iSMS Samples Please for Scripts?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2561
    Ed Willson
    Participant

    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

    #3149
    Ed Willson
    Participant

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.