Main News Suggestions Training Tech Tips Upgrades
   
   Go to Recent GECS Tech Tips
     
  To help ensure your GECS System is always running appropriately, you can create a batch fi le to monitor each of your GECS components. You should create this batch fi le and run it either on your DBMS machine or on a GECS client machine where GECS programs are installed.
Create a fi le named WATCHDOG.CMD and enter the following information:
 
  **********
* A Batch file to monitor the DBMS/Controller/Agent.
 

**********
:TOP
C:\gecs\waitkey 120
C:\gecs\gecsping DBMS 127.0.0.1 2002
IF ERRORLEVEL 1 ***INSERT NOTIFICATION HERE
    (i.e. GECSMAIL)***
C:\gecs\gecsping CONTROL 127.0.0.1 2001
IF ERRORLEVEL 1 ***INSERT NOTIFICATION HERE
    (i.e. GECSMAIL)***
GOTO TOP

GECSMAIL COMMAND LINE UTILITY (SEND SMTP EMAIL UTILITY)
The GECSMAIL program can be used to send an SMTP email message from a command line. You might want to include a step in your job stream that send an email or you might want to use this utility to test email addresses and servers since this utility uses the same email code as the DBMS uses to send email. This program is run by entering:
     GECSMAIL -to x -from x -login x -pass x -server x -subj x -mesg x -auth x -v
     -to x who to send the email to. defaults to “noone@nowhere.cm”
     -from x who the email is from. defaults to “someone@somewhere.com”
     -login x who to login to the email server as. defaults to “noone@nowhere.com”
     -pass x what password to login to the email server with. defaults to “none”
     -server x what email server to login to. defaults to “mail.somewhere. com
     -subj x the subjext of the email (include in quotes if more than one word).
                 defaults to “test subject”
     -mesg x the message of the email (include in quotes if more than one word).                  defaults to “test message”
     -auth x the type of authentication to use (NONE, PLAIN, LOGIN, CRAM or DIGEST).                  defaults to LOGIN
     -v to run in verbose mode showing all the communications messages between the          program and the email server.

Note that this utility cannot be used to send attachments and cannot be used to send other types of email besides SMTP.

A sample WatchDog.CMD file is displayed below:

:TOP
C:\gecs\waitkey 120
C:\gecs\gecsping DBMS 200.200.201.32 2002
IF ERRORLEVEL 1
c:\gecs\gecsmail -to support@vinzantsoftware. com
     -from support@vinzantsoftware.com
      -login support@vinzantsoftware.com
      -pass 1234Pass
      -server mail. vinzantsoftware.com
      -subj GECSDBMSDOWN
      -mesg DOSOMETHINGDBMSDOWN
      -auth NONE
C:\gecs\gecsping CONTROL 200.200.201.32 2001
IF ERRORLEVEL 1 c:\gecs\gecsmail -to support@vinzantsoftware. com
      -from support@vinzantsoftware.com
      -login support@vinzantsoftware.com
      -pass 1234Pass
      -server mail. vinzantsoftware.com
      -subj GECSPROCDOWN
      -mesg DOSOMETHINGControllerDOWN
      -auth NONE
C:\gecs\gecsping AGENT1 200.200.201.32 2000
IF ERRORLEVEL 1 c:\gecs\gecsmail -to support@vinzantsoftware. com
      -from support@vinzantsoftware.com
      -login support@vinzantsoftware.com
      -pass 1234Pass
      -server mail.vinzantsoftware.com
      -subj GECSAGENT1DOWN
      -mesg DOSOMETHINGAGENT1DOWN
      -auth NONE
GOTO TOP

 
 
 

Tech Tips by Category

[+/-] Administration (1)

Moving Batches Between Environments - 02/07

[+/-] Monitoring (2)

System Monitor / Watchdog Batch – 01/07

Viewing Multiple GECS Environments – 01/07

[+/-] Notification (3)

Creating a Mail Group – 01/07

Notifying Users via Internet Mail – 05/05

Web Clients – 07/03

[+/-] Scheduling (5)

Simulating Job Runs - 06/09

Job Dependencies – 05/01

Schedule a Batch via a Job – 01/07

Update Jobs in Bulk – 01/07

Activate Jobs Remotely – 09/02

[+/-] Security (2)

Auditing – 08/06

Using Networking / No Networking – 12/06

[+/-] Utilities (0)

Coming Soon!

If you have an idea for a Tech Tip, send us an email.