1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

snmp or email commands

Discussion in 'Windows Server System' started by suemlo, 2008/01/07.

  1. 2008/01/07
    suemlo

    suemlo Inactive Thread Starter

    Joined:
    2007/05/10
    Messages:
    26
    Likes Received:
    0
    I am using a third party software on a Windows 2000 enterprise server. I cannot use netsend because services are not allowed in my company. I can use snmp to do this. I need to set up a bat file with commands to email myself when a certain service stops. The third party software has the capabilty to do this provided I write the dos commands.

    all I need it to do is email: myself@myaddress.com
    subject: server services has stopped

    Any help would be greatly appreciated.
     
  2. 2008/01/08
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Blat was my favourite for this sort of thing. It's great if all you can code are simple batch files.

    By the way, I presume the protocol you intend to use is SMTP rather than SNMP. SNMP is a network management protocol and is not involved in sending e-mail messages.
     

  3. to hide this advert.

  4. 2008/01/10
    suemlo

    suemlo Inactive Thread Starter

    Joined:
    2007/05/10
    Messages:
    26
    Likes Received:
    0
    The third pary company told me that aren't ready for smtp yet, that I need to use snmp or netsend to alert someone of a service failure.
     
  5. 2008/01/16
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Blat will do what you want. Download it and read through the readme for instructions for its use. All you need is the address of your mail server and an e-mail address to use as the sender address. For example:

    If you install BLAT in you 'program files' folder the following will generate a log file of a directory listing and send an e-mail to someone@someplace.com via the mail server mail.someplace.com and from blat@someplace.com.
    Code:
    dir c:\ > dir.log
     "c:\program files\blat\blat" -install mail.someplace.com blat@someplace.com
     "c:\program files\blat\blat" dir.log -t someone@someplace.com
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.