automated scheduling and operations for legacy applications

Post on 04-Jan-2016

213 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

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

GDT System Startup Controlled by C2O

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.

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.

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.

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.

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

GDT System StartupTake the Fileshare Resource

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.

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.

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.

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!

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.

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!

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.

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!

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

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!

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

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.

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

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

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

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

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.

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

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

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

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.

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

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

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.

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

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).

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

C2O SMTP

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

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>

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

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

Flowchart Engine Service Property

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

Start the C2O Web Service

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

The Demonstration

Using SENDEMAIL local mailer Sendemail –f devans@infosol.com –t c2oadmin@devanslt2 –u test – o

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

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

The Demonstration

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

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

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!

top related