Beyond Unix and Windows Agent y gTechnology: Application Services and DB AgentsPresenter: Dan Shannon
Terms of This Presentation
This presentation was based on current information and resource allocations as of October 2009 and is subject to change or withdrawal by CA at any time without notice. Notwithstanding anything in this presentation to the contrary, this presentation shall not serve g y g p y, pto (i) affect the rights and/or obligations of CA or its licensees under any existing or future written license agreement or services agreement relating to any CA software product; or (ii) amend any product documentation or specifications for any CA software product. The development release and timing of any features or functionality described in this presentation development, release and timing of any features or functionality described in this presentation remain at CA’s sole discretion. Notwithstanding anything in this presentation to the contrary, upon the general availability of any future CA product release referenced in this presentation, CA will make such release available (i) for sale to new licensees of such product; and (ii) to existing licensees of such product on a when and if-available basis as part of CA maintenance and support, and in the form of a regularly scheduled major product release. Such releases may be made available to current licensees of such product who are current subscribers to CA maintenance and support on a when and if-available basis. In the event of a conflict between ppthe terms of this paragraph and any other information contained in this presentation, the terms of this paragraph shall govern.
2 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
For Informational Purposes Only
Certain information in this presentation may outline CA’s general product direction. All information in this presentation is for your informational purposes only and may not be incorporated into any contract. CA assumes no responsibility for the accuracy or completeness p y p y y pof the information. To the extent permitted by applicable law, CA provides this document “as is” without warranty of any kind, including without limitation, any implied warranties or merchantability, fitness for a particular purpose, or non-infringement. In no event will CA be liable for any loss or damage direct or indirect from the use of this document including liable for any loss or damage, direct or indirect, from the use of this document, including, without limitation, lost profits, lost investment, business interruption, goodwill, or lost data, even if CA is expressly advised of the possibility of such damages.
3October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Abstract
> This session discusses Agent technology that will be used by CA Workload Automation AE 11.3. Agent topics include the Database Agent Application Services Agent include the Database Agent, Application Services Agent, and System Agent
4 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Agenda
> Landscape
> Agent Architecture
> System Agent
> Application Services Agent
> Database Agent> Database Agent
5 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
LandscapeLandscape
6 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Does o Ente p ise look like this?
Li
Does your Enterprise look like this?
Windows Linux
CA WA
J2EE App ServerWCC
z/OSUNIX
(Certified Interface)
7 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Do You Need to Manage This?Do You Need to Manage This?
z/OS Objects
Legacy JobsO l A
ERP JobsJ2EE
Advanced/Emerging Techz/OS Objects
z/OS dataset
z/OS manual
z/OS job
Oracle Apps
Request Set
Single Request
PeopleSoft
J2EE
EJB
JMS Publish
JMS Subscribe
File Trigger
FTP Transfer
Microfocus
SAPBatch Input SessionsB/W InfopackagesB/W P Ch i
DatabaseDatabase Monitor
Database Stored Procedure
Database TriggerMicrofocus
I5/OS
Windows
B/W Process ChainData Archiving
SAP Event
SAP Job Copy
SAP Process Monitor
Database Trigger
SQL Query
Monitoring
CPU Monitoring
Unix/Linux SAP R3Disk MonitoringIP Monitoring
Process Monitoring
Text File Monitoring
Windows Eventlog Monitoring
8 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Windows Eventlog Monitoring
Windows Service Monitoring
CA Enterprise WA Agent Support
> Operating Systems> Operating SystemsSolaris, AIX, HP, Windows, Linux, zOS, i5OS, USS
> ERP SystemsySAP, PeopleSoft, Oracle E-Business
> DatabasesOracle, MSSQL, DB2
> New and Emerging PlatformsJAVA JMX J2EE Web ServicesJAVA, JMX, J2EE, Web Services
9 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Agent Architecture
General Agent Architecture
> Decentralized, Asynchronous Approach
> Core Component
> Plug-in ArchitectureCommunications Plug-ins
Execution Plug-ins
11 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
hAgent Architecture
Communication Plug-in
Communication Plug-in
CommunicationPlug-in
Core
ExecutionPlug-in
ExecutionPlug-in
ExecutionPlug-in
12 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Core ArchitectureCore Architecture
From Communication Plug-in
Communication plug-in manager
O tb
Inbox
Message ArrivedSend to manager
Outbox
Initiator Manager
Ask Initiator Manager to submit a job
Release initiator? Initiator Manager
We have an initiator, submitWe’ve got a reply
Can go to manager?
Execution Plug-in Manager To Execution Plug-in
13 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Message Content
> AFMLanguage Agents Speaks
Highly Customizable
Hie a chicalHierarchical
Text Based
Format– 7 Mandatory Parameters
– Optional Residual Values
– <date><time><to><from><WOB<date><time><to><from><WOB ID><verb><subverb><optional residual>
14 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Plug-Ins> Piece of Agent Functionality
> Message Exchanges via AFM
> Core to Plug-in and vise versa
15 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
P i tPersistence
> Every Message is PersistedQueues
Maps
> W itt L ll> Written Locally
> All Activities are LoggedLog LevelsLog Levels
Archiving Options
16 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Comm ni tion Pl g inCommunication Plug-in
> Adaptable
> Receiver
> Transmitter
17 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
J B dJava Based
> Common Functionality Java Based
> Runner Plug-InHas C++ code
OS S ifi COS Specific Component
18 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
System Agent
E ti Pl IExecution Plug-Ins
> Provides Agent FunctionalityFile Monitoring
Object Monitoring
R nneRunner
FTP
Managementg
File Browser
20 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
I t ll tiInstallation
> System Agent Part of CA Workload Automation AE r11.3
> Stand AloneCA Workload Automation AE
CA W kl d A i DECA Workload Automation DE
CA Workload Automation EE
CA Workload Automation SE
> Additional Plug-Ins Stand Alone InstallPak Files
21 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
ConfigurationConfiguration
> Agentparm.txt
> Mib fileMIB information
S> Security.txtACL
> Cryptkey txt> Cryptkey.txtFIPS 140-2 Compliant
22 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Se itSecurity
> Agent Control List File
> FTP Server Information
> Encryption
23 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
S t A t J b TSystem Agent Job Types
> Command JobsDistributed System (CMD)
i5/OS Job (I5)
/OS Job (ZOS)z/OS Job (ZOS)
> File Monitoring and TransferFile Transfer Protocol (FTP)( )
Secured Copy (SCP)
File Trigger (FT)
> SNMP ManagementSNMP Get (SNMPGET)
SNMP Set (SNMPSET)SNMP Set (SNMPSET)
> Wake On LAN (WOL)24 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
S t A t J b TSystem Agent Job Types
> Object MonitoringWindows Event Log Monitoring (OMEL)
Text file reading and Monitoring (OMTF)
P ocess Monito ing (OMP)Process Monitoring (OMP)
Windows Service Monitoring (OMS)
CPU Monitoring (OMCPU)g ( )
IP Monitoring (OMIP)
Disk Monitoring (OMDK)
25 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Application Services Agent
Application Services AgentApplication Services Agent
> Integrates with Java-based applicationsJ M t E t i (JMX)Java Management Extensions (JMX)
Java Message Service (JMS)
Java Objectsj– POJO
– RMI
ServletsServlets- Using HTTP job
Enterprise Java Beans (EJB)– Entity Beans
– Session Beans
> Building blocks of modern applications
27 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
> Building blocks of modern applications
Application Services Agent - ConfigurationApplication Services Agent - Configuration
> InstallationDedicated installer
Similar to system agent
> Proxy support> Proxy supportProperties in agentparm.txt
– http.proxyHost, http.proxyPort
– http.proxyUser, http.proxyPassword.encr
> HTTPS/SSL supportProperties in agentparm txtProperties in agentparm.txt
– javax.net.ssl.trustStore
– javax.net.ssl.trustStorePassword.encr
28 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX Java Management ExtensionsJMX - Java Management Extensions
> Java technology that supplies tools for managing and monitoring:and monitoring:
applications
system objectsy j
devices (e.g. printers)
service oriented networks
d b b ll d> Resources are represented by objects called MBeans (for Managed Bean).
> Manage anything Java-enabled that has been > Manage anything Java enabled that has been instrumented for JMX
29 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMS J M S iJMS - Java Message Service
> Reliable enterprise messaging
> Asynchronous
> Allows to:publish a message to a JMS queue or JMS topic
subscribe to message queue or topic
> Connects to message brokers > Connects to message brokers Such as: WebSphere MQ, WebLogic MQ Series
On many platforms– Including z/OS
30 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
POJO Plain Old Java ObjectPOJO - Plain Old Java Object
> Create a zero-argument java object instance
> Invoke a method on it
> Output goes to spool file by default
R STATE COMPLETE > Response: STATE COMPLETE URI() points to the serialized Java output
Value() returns returnObject.toString()Value() returns returnObject.toString()
31 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
RMI - Remote Method Invocation
> Create a zero-argument java object instance
> Invoke a method on it
O t t t l fil b d f lt > Output goes to spool file by default
> Response: STATE COMPLETE URI() points to the serialized Java outputURI() points to the serialized Java output
Value() returns returnObject.toString()
32 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
ServletServlet
> Java-based program that: runs on a web server (servlet container)runs on a web server (servlet container)receives a request generates a response
> Adds dynamic content to a Web server> Adds dynamic content to a Web server> Often used in conjunction with JSPs > More efficient than CGI
CGI: a new process for each HTTP requestCGI: a new process for each HTTP requestServlet: a new thread per request
33 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
HTTP Job
> Agent Sends HTTP request similar to when using a browser
> Response: STATE COMPLETE > Response: STATE COMPLETE URI() points to the serialized Java output
> Use filter to limit what is stored in the spool file
34 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
EJB Enterprise Java BeanEJB - Enterprise Java Bean> Component deployed in an application server
l h b l f l> Encapsulates the business logic of an application
> Application server provides various servicesPersistence Transaction processing Concurrency control Persistence, Transaction processing, Concurrency control, Naming and directory services (JNDI), Security
> Supported typesSession Beans
Entity Beans– replaced by the Java Persistence API in EJB 3 0replaced by the Java Persistence API in EJB 3.0
35 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Session Bean Job
>Stateful session beanBeen is created first
C t th d – Create method name– Create parameters
>StatelessO l M th d d P tOnly Method and Parameters
>Output destinationBy default, all output redirected to spool file
36 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Application Services Agent Job TypesApplication Services Agent Job Types
> Entity Bean (ENTYBEAN)
> JMS Publish (JMSPUB)
> JMS Subscribe (JMSSUB)
> Java Session Bean (SESSBEAN)
> Invoke HTTP (HTTP)
> Run POJO (POJO)> Run POJO (POJO)
> Run RMI (JAVARMI)
37 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Application Services Agent Job TypesApplication Services Agent Job Types
> Get JMX MBean Attribute (JMXMAG)
> Set JMX MBean Attribute (JMXMAS)
> Create MBean in JMX Server (JMXMC)
> Remove MBean from JMX Server (JMXMREM)
> Invoke JMX MBean Operation (JMXMOP)
> Subscribe for JMX MBean Notifications (JMXSUB)> Subscribe for JMX MBean Notifications (JMXSUB)
> Invoke Web Service (WEBSVC)
38 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Entity Bean Job Attributes (ENTYBEAN)
> provider_url
> operation_typep yp
> initial_context_factory
> bean_name
> create_name
> create_parameter
fi d> finder_name
> finder_parameter
> modify parameter> modify_parameter
> j2ee_user39 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMS Publish Job Attributes (JMSPUB)
> connection_factory
> destination_name
> initial_context_factory
> message_class
> j2ee_parameter
> provider_url
t i> use_topic
> j2ee_user
40 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMS Subscribe Job Attributes (JMSSUB)
> connection_factory
> destination_name
> destination_file
> initial_context_factory
> provider_url
> use_topic
j2> j2ee_user
> filter
> continuous> continuous
41 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Session Bean Job Attributes (SESSBEAN)
> provider_url
> operation_typep yp
> initial_context_factory
> bean_name
> create_method
> create_parameter
d ti ti fil> destination_file
> j2ee_user
42 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
HTTP Job Attributes (HTTP)
> provider_url
> method_name
> invocation_type
> j2ee_parameter
> j2ee_conn_domain
> j2ee_conn_origin
j2 th ti ti i i> j2ee_authentication_origin
> j2ee_proxy_domain
> j2ee proxy host> j2ee_proxy_host
> j2ee_proxy_port43 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Plain Old Java Object Job Attributes (POJO)
> class_name
> method_name
> j2ee_parameter
> destination_file
44 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JAVA Remote Method Invocation Job Attributes (JAVARMI)Attributes (JAVARMI)> remote_name
> method_name
> j2ee_parameter
> destination_file
45 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX MBean Attribute Get Job Attributes (JMXMAG)(JMXMAG)> URL
> mbean_name
> mbean_attr
> jmx_user
> success_pattern
46 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX MBean Attribute Set Job Attributes (JMXMAS)(JMXMAS)> URL
> mbean_name
> mbean_attr
> jmx_parameter
> jmx_user
> success_pattern
47 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX MBean Create Job Attributes (JMXMC)
> URL
> class_name
> mbean_name
> jmx_parameter
> jmx_user
> success_pattern
48 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX MBean Remove Job Attributes (JMXMREM)(JMXMREM)> URL
> mbean_name
> jmx_user
49 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX MBean Operation Job Attributes (JMXMOP)(JMXMOP)> URL
> mbean_name
> mbean_operation
> jmx_parameter
> jmx_user
> success_pattern
50 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
JMX Subscribe Job Attributes (JMXSUB)
> URL
> mbean_name
> mbean_attr
> jmx_user
> filter
> filter_type
ti> continuous
51 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Web Services Job Attributes (WBSVC)
> target_namespace
> wsdl_operation
> return_namespace
> return_class_namep
> wsdl_url
> port_name
_ _
> return_xml_name
> endpoint_url
> service_name
b t> web_parameter
> success_pattern
> one way> one_way
> web_user52 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Database Agent
What would you like to automate?
CA WA CA WA CA WA CA WACA WA Database Agent
CA WA Database Agent
CA WA Database Agent
CA WA Database Agent
Results
SQL
Even
tsResulPa
ram
eter
s
SP TRG
ts
SP
SP
- + TRG
SQL U d t St d
54 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
SQL Updates and Queries
Stored Procedures
Table Monitor Data Triggers
Database SQL Command Job Attributes Database SQL Command Job Attributes (SQL)
> sql_command
> connect_string
> se ole> user_role
> success_criteria
> destination file> destination_file
55 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
D t b St d P d J b Att ib t Database Stored Procedure Job Attributes (DBPROC)> sp_name
> sp_arg
> connect string> connect_string
> user_role
> success criteriasuccess_c te a
> result_type
56 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Database Monitor Job Attributes (DBMON)Database Monitor Job Attributes (DBMON)
> monitor_type
> monitor_cond
> connect_string
> user_role
> tablename
> continuous> continuous
57 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
D t b T i J b Att ib t (DBTRIG)Database Trigger Job Attributes (DBTRIG)
> trigger_cond
> trigger_type
> connect_string
> user_role
> tablename
> continuous> continuous
> dbtype
58 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA
Questions?
59 October 2009 [Beyond Unix and Windows Agent Technology: Application Svcs & DB Agents] Copyright © 2009 CA