+ All Categories
Home > Documents > Automated Scheduling and Operations for Legacy Applications.

Automated Scheduling and Operations for Legacy Applications.

Date post: 04-Jan-2016
Category:
Upload: jared-spencer
View: 214 times
Download: 0 times
Share this document with a friend
45
Automated Scheduling and Operations for Legacy Applications
Transcript
Page 1: Automated Scheduling and Operations for Legacy Applications.

Automated Scheduling and Operations for Legacy

Applications

Page 2: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

C2O & GDT

Launching the GDT System via a C2O Flowchart Fileshare Console FSYS01 TCS

Will Include sending emails Checking Resources

Run a GDT Batch job via C2O Flowchart Program asks a question and C2O responds

Run a GDT Batch job via C2O Flowchart Email is sent with JOR attached

Create a C2O Chart that monitors the heat of a room Use Web Commander to remotely launch a C2O Chart that will

launch a GDT Batch job Configuring the C2O Web Service Daemon for SMTP

Page 3: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System Startup Controlled by C2O

Page 4: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupCheck the Resources

Via Resources, make sure that the GDT system is down. If any part of the systemis up and running, then a email will be sent to Operations.

Page 5: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupCheck the Resources

Contents of MAPI icon. In case 1 or combination of the resources are taken.

Page 6: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupCheck the Resources

GDT SYSTEM C2O Resources. The above shows a case where the GDT Systemis up and running.

Page 7: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupStart Fileshare

A batch script called via the NT Process ICON will start Fileshare. If theprocess does not complete successfully, an EMAIL is sent to Operations.

Page 8: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupTake the Fileshare Resource

Page 9: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupStart TCS

TCS is started via a built in Visual Basic Script within the NT process icon and

the use of a Local Variable that tells the script what Windows Service to start.Again, a mail message will be delivered if the Service fails to start.

Page 10: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupStart TCS

The VB script used to start the TCS Service. Note the variables Hostname,and Service and the Start service cmd.

Page 11: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupStart TCS

The local variables and values associated.

Page 12: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupTake the TCS Resource

TCS Resource is now used!

Page 13: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupStart Console and FSYS01

A batch script called via the NT Process ICON will start the Console andFsys01. If the process does not complete successfully, an EMAIL is sent

to Operations. The next process is to Take the Console/Fsys01 resources.

Page 14: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupSend Email Confirmation that the GDT

System is up!

Page 15: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupSend Email Confirmation that the GDT

System is up!

Using a Email Profile setup on the Central Server machine.

Page 16: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

GDT System StartupSend Email Confirmation that the GDT

System is up!

Page 17: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds

Page 18: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds

This job cannot run if the GDT system is running!

Page 19: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds

The NT Process ICON calls a batch script that initiates the GDTBATCH job.At the same time the Windows Process Log Watch Icon monitors for the

question to be asked via the COBOL program

Page 20: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds

The question is found and via the Windows Process Input ICON, C2O respondsto the question. The GDTBATCH job then runs to completion. The Log WatchIcon scans the internal Process Log for the words GDTBATCH abort. If found

the chart takes the Abort Stop. If not found, the chart takes the Good Stop.

Page 21: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds.

The Windows Process Log Watch

GDT Console

Windows Process Log Watch Properties

Page 22: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds.

The Windows Process Input Icon

Console

Page 23: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O FlowchartProgram asks a question and C2O responds.

The Log Watch Icon

Log Watch IconNT Process Icon

Page 24: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O Flowchart

Email is sent with JOR attached

Send email when job completes successfully along with JOR.

Capture the name of the JORto be attached to the email

Page 25: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O Flowchart

Email is sent with JOR attached

Windows Process Log Watch scanning for pattern to get JOR value and puttingit into the local variable JOR.

Page 26: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O Flowchart

Email is sent with JOR attached

Page 27: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Run a GDT Batch job via C2O Flowchart

Email is sent with JOR attached

Page 28: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create a C2O Chart that monitors the heat of a room

Using SNMP to get information on Network Devices

Page 29: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

SNMP Service

The SNMP (Simple Network Management Protocol) Service incorporates information (such as detecting the state of a high-speed printer) from external devices in Flowcharts. It also lets Flowcharts generate Traps (alerts) and set MIB (management information base) variables that control the behavior of the external devices.

http://www.mibsearch.com/ great search engine for SNMP mib files.

Page 30: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create a C2O Chart that monitors the heat of a room

Page 31: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Create a C2O Chart that monitors the heat of a room

(Local.BasementKeyValue < Local.BasementHighLimitTemp) And (Local.BasementKeyValue > Local.BasementLowLimitTemp)

Post Execution after OID value is set

Page 32: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Use Web Commander to remotely launch a C2O Chart that will launch a GDT Batch job

A CreateWebCmdr

Doc.

B

Provide DocumentProperties

C

Test before Deploy

DCreateWeb URLshortcut

E

AccessAvail.

WebcmdrDocs.

Page 33: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Use Web Commander to remotely launch a C2O Chart that will launch a GDT Batch job

DEMONSTRATION

Page 34: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

C2O Web Service Daemon

The Web Services Daemon configuration file specifies general settings for the service as well as specific settings for each of the different delivery protocols (FTP, SNMP, SMTP, and SOAP).

Page 35: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

C2O SMTP

Page 36: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Basic Components to Start C2O Web Service

C2OWSDINSTALL.BAT Installation as a Service

JRE version 5.0 or higher System Variables set correctly for:

PATH JAVA_HOME CLASSPATH

C2OWSD.XML SMTPUSER.DAT Flowchart Engine Service Property

Page 37: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

C2OWSD.XML

Web Services Daemon configuration file. The configuration file is formatted in XML and

can be edited to match FTP, HTTP, SNMP Trap, and SMTP settings for a particular node.

<service name="engine" type="internal"> <frequency>30</frequency>

<host>localhost</host> <directory>C:\temp\SpoolDir</directory>

<service name="c2owsd_smtp" type="smtp"> <port secure="no" type="tcp"> <number>10025</number>

<backlog>24</backlog> </port>

<smtp-server>devanslt2</smtp-server> <mail-dir>mail</mail-dir>

<user-file>smtpusers.dat</user-file>

Page 38: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

SMTPUSERS.DAT

SMTP users are defined in the Web Services Daemon SMTP users file.

The user ID must match a C2O user name, which is also the e-mail name for the C2O SMTP server

c2oadmin:internal=xmlc2ouser:password=

The trigger document is contained in the body of e-mail messages sent to

the C2O user specified by userid

Page 39: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Flowchart Engine Service Property

Page 40: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Start the C2O Web Service

Page 41: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Demonstration

Using SENDEMAIL local mailer Sendemail –f [email protected] –t c2oadmin@devanslt2 –u test – o

message-file=message.txt –s localhost:10025 –l email.log

Page 42: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

The Demonstration

Page 43: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Summary

C2O functionality we have reviewed to work with GDT MAPI Resources NT process

Running Batch Scripts Starting Windows Services via C2O VB script

Attaching JOR’s to EMAIL Monitoring LOG’s Windows Log Watch

Looking for questions asked via COBOL program Pattern masking

Page 44: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Summary

Windows Process Input C2O passing answers to questions

Use of Local Variables Use of ICON Variables Use of Datasets SNMP GET

Temperature monitoring Good search engine for getting MIB’s

Use of Wait for Condition ICON Web Commander

Remotely Launch C2O Flowcharts C2O Web Services

Using SMTP Trigger to Launch Flowchart

Page 45: Automated Scheduling and Operations for Legacy Applications.

Doug EvansGDT 2007 International User Conference: Evolving the LegacyJuly 29 – August 1 Lake Las Vegas, Nevada

Finally

If you would like any of the flowcharts demonstrated, you will have an opportunity in the Hands On lab scheduled for 8:00am tomorrow to export these charts and documents and email them to your account.

Thank you very much for attending this session!


Recommended