home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 July / DPPCPRO0705.ISO / Extras / NetHelpDesk / _SETUP.1 / statustester.bat < prev    next >
Encoding:
DOS Batch File  |  2002-11-17  |  1.4 KB  |  21 lines

  1. pause about to send 5 sample service messages that match to the 5 services at Edinburgh in the example database
  2. rem version 1.1
  3.  
  4. rem  An email server called localhost is being used in this sample.  There is an email address called helpdesk@mycompany.co.uk which is scanned by the NHserver program
  5.  
  6. rem  first an old style Sophos Sweep Virus report message
  7. nethdsendstatus  service=00002 status=ok smtpserver=localhost smtprecipient=helpdesk@mycompany.co.uk subject="sweep report server1" message=" xxx job completed 10 viruses"
  8.  
  9. rem  second a file is transferred by email to the server
  10. nethdsendstatus service=00010 status=ok subject="servicemessage file transfer mydb" attachedfilename=c:\autoexec2.bat smtpserver=localhost smtprecipient=helpdesk@mycompany.co.uk
  11.  
  12. rem  third the status of an UPS is reported
  13. nethdsendstatus service=00011 status=fault smtpserver=localhost smtprecipient=helpdesk@mycompany.co.uk subject="serviceSTATUS UPS Problem" message="ups brown out"
  14.  
  15. rem  fourth the status of a processor is reported
  16. nethdsendstatus service=00009 status=OK smtpserver=localhost smtprecipient=helpdesk@mycompany.co.uk subject="serviceSTATUS" message="Processor OK"
  17.  
  18. rem  fifth the status of a backup is reported
  19. nethdsendstatus service=00001 status=FAULT smtpserver=localhost smtprecipient=helpdesk@mycompany.co.uk subject="serviceSTATUS" message="Backup failed - no tape"
  20.  
  21. pause done