Control-M - Server For Unix Admin Guide
Control-M - Server For Unix Admin Guide
Control-M - Server For Unix Admin Guide
Unix
Administrator Guide
Version 6.0.03
iii
Customer Support
You can obtain technical support by using Response Online™ (support from the Web) or Response On Demand™.
To expedite your inquiry, please see “Before Contacting BMC Software,” below.
Response Online
You can obtain technical support from BMC Software 24 hours a day, seven days a week by accessing the
technical support Web site at http://www.bmc.com/support.html. From this site, you can
• read overviews about support services and programs that BMC
Software offers
• find the most current information about BMC Software products
• search a database for problems similar to yours and possible
solutions
• order or download product documentation
• report a problem or ask a question
• subscribe to receive e-mail notices when new product versions are
released
• find worldwide BMC Software support center locations and contact
information, including e-mail addresses, fax numbers, and telephone
numbers
Response On Demand
In the USA and Canada, if you need technical support and do not have access to the Web, call 800 537 1813.
Outside the USA and Canada, please contact your local support center or your local sales office for assistance.
Before you contact BMC Software, have the following information available so that a technical support analyst
can begin working on your problem immediately:
• product information
— product name
— product version (release number)
— license number and password (trial or permanent)
— machine type
• messages received (and the time and date that you received them)
v
BMC Software, Inc., Confidential and Proprietary Information
Contents
Chapter 1 Overview
CONTROL-M Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Server-Agent Interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Identification of Agent Platforms . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Communication Status of Agent Platforms . . . . . . . . . . . . . . . . 1-6
Interrupted Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Time-Related Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Authorized CONTROL-M Servers File . . . . . . . . . . . . . . . . . . . 1-9
Agent Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Failover Planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
Host Identification in the Agent Platform . . . . . . . . . . . . . . . . . . . . . 1-12
New Day Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
Scheduling Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
User Daily Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
Date Control Record (UDLAST) . . . . . . . . . . . . . . . . . . . . . . . . 1-21
Handling of Interruptions During a User Daily Job . . . . . . . . . . 1-23
Issuing a Job Order Manually . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
Shout Destination Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24
Shout Message Destinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
Runtime Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-28
CONTROL-M Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-31
Daylight Savings Time Considerations . . . . . . . . . . . . . . . . . . . . . . . 1-33
Advancing the Clock Forward . . . . . . . . . . . . . . . . . . . . . . . . . . 1-33
Contents vii
Moving the Clock Backwards . . . . . . . . . . . . . . . . . . . . . . . . . . .1-34
CONTROL-M Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-36
Heartbeat Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-37
Advanced Problem Detection Tools . . . . . . . . . . . . . . . . . . . . . . . . .1-38
Setting Event Logger Parameters . . . . . . . . . . . . . . . . . . . . . . . .1-39
Managing Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-41
Stack Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-42
Watchdog Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-44
Watchdog User Exits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-47
Error Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-48
User Exits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-50
Processing Overhead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-50
Chapter 2 Utilities
Utility Reference Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-4
Reports Generated from Utilities . . . . . . . . . . . . . . . . . . . . . . . . .2-6
Directing Output From Utilities . . . . . . . . . . . . . . . . . . . . . . . . .2-7
Accessing Utilities From Other Unix Users . . . . . . . . . . . . . . . . . . .2-9
Define Variables in the User’s Environment . . . . . . . . . . . . . . . .2-9
Add an Executable Library to the User’s Path . . . . . . . . . . . . . .2-12
Assign Read/Write Permissions . . . . . . . . . . . . . . . . . . . . . . . . .2-14
Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-15
ctm_agstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-15
ctm_backup_bcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-17
ctm_restore_bcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-19
ctmcontb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-21
ctmcreate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-25
ctmdbapasswd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-36
ctmdbbck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-37
ctmdbcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-39
ctmdbrst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-44
ctmdbspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-45
ctmdbtrans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-46
ctmdefine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-47
ctmdiskspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-62
ctmexdef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-64
ctmfw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-66
ctmgrpdef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-75
ctmjsa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-77
ctmkilljob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-81
Chapter 3 Security
Level of Application Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
CONTROL-M Security Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Scheduling Table Authorization . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Active Jobs File Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Entities Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Agent Platform Security Checks . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
Summary of Authorizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Security Maintenance Utility (Interactive Mode) . . . . . . . . . . . . . . . 3-11
User Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
Group Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
Scheduling Table Authorization . . . . . . . . . . . . . . . . . . . . . . . . . 3-21
Active Jobs File Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
Entities Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
Contents ix
Security Maintenance Utility (Batch Mode) . . . . . . . . . . . . . . . . . . .3-32
User Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-32
Group Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-33
Scheduling Table Authorization . . . . . . . . . . . . . . . . . . . . . . . . .3-33
Active Jobs File Authorization . . . . . . . . . . . . . . . . . . . . . . . . . .3-34
Entities Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-34
Exporting Security Definition Tables . . . . . . . . . . . . . . . . . . . . .3-35
Importing Security Definition Tables . . . . . . . . . . . . . . . . . . . . .3-36
Chapter 4 Maintenance
Starting/Stopping CONTROL-M Tasks . . . . . . . . . . . . . . . . . . . . . . .4-2
Periodic Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-3
Checking Available Space in the CONTROL-M Database . . . .4-4
Cleaning Up the SQL Database Message Log . . . . . . . . . . . . . .4-4
Cleaning Up the Proclog Directory . . . . . . . . . . . . . . . . . . . . . . .4-5
CONTROL-M Menu System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-6
CONTROL-M Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-6
CONTROL-M Manager Menu . . . . . . . . . . . . . . . . . . . . . . . . . .4-8
Database Creation Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-10
Database Maintenance Menu . . . . . . . . . . . . . . . . . . . . . . . . . . .4-12
Database Mirroring Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-27
Security Authorization Menu . . . . . . . . . . . . . . . . . . . . . . . . . . .4-29
Parameter Customization Menu . . . . . . . . . . . . . . . . . . . . . . . . .4-30
Node Group Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-36
Agent Status Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-38
Troubleshooting Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-40
Glossary
Index
Contents xi
BMC Software, Inc., Confidential and Proprietary Information
Figures
Figure 1-1 New Day Procedure and User Daily Jobs . . . . . . . . . . . . . . . . . . 1-16
Figure 1-2 Directing Shouts Via the Active Shout Destination Table . . . . . 1-25
Figure 2-1 ON_FILEWATCH Statements . . . . . . . . . . . . . . . . . . . . . . . . . . 2-71
Figure 2-2 ctmordck Sample Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-95
Figure 2-3 ctmpsm – Production Support Menu . . . . . . . . . . . . . . . . . . . . . 2-106
Figure 2-4 ctmpsm - Active Jobs File Menu Options . . . . . . . . . . . . . . . . . . 2-108
Figure 2-5 List of Scheduling Tables output by the ctmpsm utility . . . . . . . 2-111
Figure 2-6 List of Jobs output by the ctmpsm utility . . . . . . . . . . . . . . . . . . 2-113
Figure 2-7 CONTROL-M System Parameters (Page 1) . . . . . . . . . . . . . . . . 2-143
Figure 2-8 CONTROL-M System Parameters (Page 2) . . . . . . . . . . . . . . . . 2-144
Figure 3-1 Security Maintenance Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
Figure 3-2 User Maintenance Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
Figure 3-3 Group Maintenance Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
Figure 3-4 Scheduling Table Authorization Menu . . . . . . . . . . . . . . . . . . . . 3-22
Figure 3-5 Active Jobs File Authorization Menu . . . . . . . . . . . . . . . . . . . . . 3-25
Figure 3-6 Entities Authorizations Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
Figure 4-1 CONTROL-M Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
Figure 4-2 CONTROL-M Manager Menu . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Figure 4-3 Database Creation Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Figure 4-4 Database Maintenance Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
Figure 4-5 Database Mirroring Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27
Figure 4-6 Security Authorization Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-29
Figure 4-7 Parameter Customization Menu . . . . . . . . . . . . . . . . . . . . . . . . . 4-31
Figure 4-8 Communication Parameters Menu . . . . . . . . . . . . . . . . . . . . . . . 4-32
Figure 4-9 Operational Parameters Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-32
Figure 4-10 Communication Parameters for Agent Platforms . . . . . . . . . . . . 4-35
Figure 4-11 Communication Parameters for Specific Agent Platforms . . . . . 4-36
Figure 4-12 Node Group Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-37
Figures xiii
Figure 4-13 Agent Status Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-38
Figure 4-14 Troubleshooting Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-40
Figure 4-15 Troubleshooting Report Information . . . . . . . . . . . . . . . . . . . . . .4-45
Figure 7-1 Database Mirroring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-2
Figure 7-2 Server Platform Failover - Primary Environment and Mirror
Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-9
Figure 7-3 Mirroring Parameters for Database Copying - Sybase . . . . . . . .7-17
Figure 7-4 Mirroring Parameters for Database Build/Rebuild - Sybase . . . .7-18
Figure 7-5 Mirroring Parameters for Database Copying - Oracle . . . . . . . .7-21
Figure 7-6 Mirroring Parameters for Database Build/Rebuild - Oracle . . . .7-21
Tables
Tables xv
Table 2-15 Oracle Applications Parameters . . . . . . . . . . . . . . . . . . . . . . . . . 2-34
Table 2-16 ctmdbcheck – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-40
Table 2-17 ctmdbcheck – Displayed Fields for Sybase . . . . . . . . . . . . . . . . 2-40
Table 2-18 ctmdbcheck – Displayed Fields for Oracle . . . . . . . . . . . . . . . . 2-41
Table 2-19 ctmdefine – Parameter Name Cross Reference . . . . . . . . . . . . . .2-50
Table 2-20 SAP Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-58
Table 2-21 Oracle Applications Parameters . . . . . . . . . . . . . . . . . . . . . . . . . 2-59
Table 2-22 ctmdiskspace – Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-62
Table 2-23 ctmexdef – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-64
Table 2-24 ctmfw – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-68
Table 2-25 ctmfw – Return Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-69
Table 2-26 ON_FILEWATCH Statements – Additional Parameters . . . . . . 2-70
Table 2-27 ctmfw – Valid Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-71
Table 2-28 cmtgrpdef – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-76
Table 2-29 ctmjsa – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-78
Table 2-30 ctmkilljob – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-81
Table 2-31 ctmldnrs – Creating a Manual Conditions File. . . . . . . . . . . . . . 2-84
Table 2-32 ctmldnrs – Listing or Loading Manual Conditions . . . . . . . . . . 2-85
Table 2-33 ctmloadset Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-87
Table 2-34 ctmlog – Valid Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-91
Table 2-35 ctmlog – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-92
Table 2-36 ctmordck – Output Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-94
Table 2-37 ctmordck – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-95
Table 2-38 ctmorder – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-97
Table 2-39 ctmping – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-103
Table 2-40 ctmpsm - Menu Options for Active Jobs File . . . . . . . . . . . . . . .2-107
Table 2-41 ctmpsm - Active Jobs File Actions. . . . . . . . . . . . . . . . . . . . . . . .2-109
Table 2-42 ctmpsm - Menu Options for the Resource Table . . . . . . . . . . . . .2-110
Table 2-43 ctmpsm - Menu Options for Scheduling Functions . . . . . . . . . . .2-110
Table 2-44 ctmpsm - Options for Scheduling Functions . . . . . . . . . . . . . . . .2-111
Table 2-45 ctmpsm - Options in the Scheduling Table List Jobs Menu . . . . .2-113
Table 2-46 ctmpsm - Mode Descriptions and Syntax. . . . . . . . . . . . . . . . . . .2-115
Table 2-47 ctmrpln – Report Formats. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-120
Table 2-48 ctmrpln – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-121
Table 2-49 ctmruninf – Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-124
Table 2-50 ctmshout – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-127
Table 2-51 ctmstats – Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-130
Table 2-52 ctmstvar – Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-133
Table 2-53 cmtsuspend – Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-134
Table 2-54 Fields of the Shout Destination Table . . . . . . . . . . . . . . . . . . . . 2-138
Tables xvii
Table 5-7 Sybase Database Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
Table 5-8 Oracle Database Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18
Table 5-9 Mirroring Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
Table 5-10 Performance Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
Table 5-11 CONTROL-M/Server Parameters . . . . . . . . . . . . . . . . . . . . . . . 5-23
Table 5-12 Performance Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
Table 5-13 Communication Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
Table 5-14 ENTERPRISE/CS Communication Parameters. . . . . . . . . . . . . 5-27
Table 5-15 User Exit Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
Table 5-16 CONTROL-M Server and Agent Parameters. . . . . . . . . . . . . . . 5-28
Table 5-17 CONTROL-M/Agent Parameters. . . . . . . . . . . . . . . . . . . . . . . . 5-28
Table 5-18 General Watchdog Process Parameters . . . . . . . . . . . . . . . . . . . 5-31
Table 5-19 Watchdog Parameters for CONTROL-M System Exits. . . . . . . 5-32
Table 5-20 Watchdog Parameters User Exit . . . . . . . . . . . . . . . . . . . . . . . . . 5-34
Table 6-1 CONTROL-M General User Exits. . . . . . . . . . . . . . . . . . . . . . . 6-2
Table 6-2 Exit Configuration Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . .6-3
Table 7-1 Database Mirroring Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Table 7-2 Server Failover Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
Table 7-3 Database Mirroring Menu Options. . . . . . . . . . . . . . . . . . . . . . . 7-14
Table 7-4 Sybase Mirroring Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-19
Table 7-5 Oracle Mirroring Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-22
Table 7-6 Utilities Affecting the Primary Database . . . . . . . . . . . . . . . . . . .7-36
Table A-1 Message Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
Table B-1 Fields of the CONTROL-M Log . . . . . . . . . . . . . . . . . . . . . . . . B-1
• HP-UX 9000 10.2 (Sybase only), 11.0 and 11i with 64-bit support
• Digital Unix (OSF) 4.0f with 64-bit support, and 5.0a, 5.0b and 5.1
xix
This book is comprised of the following chapters:
Chapter 1 Overview
Introduces key features and concepts of CONTROL-M.
Chapter 2 Utilities
Provides a detailed description of CONTROL-M utilities.
Operating instructions and examples are included for each
utility.
Chapter 3 Security
Discusses security concepts of CONTROL-M and
ENTERPRISE/CS. Provides instructions for the security
utility included with CONTROL-M.
Chapter 4 Maintenance
Describes how to perform various functions related to
startup/shutdown of CONTROL-M/Server, maintenance of
the CONTROL-M database, setting CONTROL-M
parameters and troubleshooting.
Chapter 5 Customization Parameters
Describes parameters used to customize and configure the
CONTROL-M/Server installation.
Chapter 6 User Exits
Describes user-defined procedures that can be used to
modify certain information before it is processed.
Chapter 7 Mirroring and Failover
Describes how to implement a Mirror (backup) environment
for CONTROL-M/Server and the CONTROL-M database.
Appendix A Messages and Codes
Appendix B Structure of CONTROL-M Log Entries
Glossary
Index
xxi
Notational Conventions
The following abbreviations and terms are used in this guide:
{AND|OR}
xxiii
BMC Software, Inc., Confidential and Proprietary Information
Overview 1
• Enterprise Controlstation
This component is the central point of control for production
operations. It provides the graphical user interface to the production
control and scheduling system. From this workstation (referred to as
the ENTERPRISE/CS workstation), you can view the status of
jobs in any part of the system. You can issue requests, modify job
parameters, and handle exceptions to ensure smooth production job
flow.
Overview 1-1
• CONTROL-M Data Center
Production component of the system. In for versions of
CONTROL-M earlier than version 2.2.x, the data center consisted of
a single platform which ran the CONTROL-M application in
addition to all production jobs. In the current version, the functions
of the data center have been distributed among various platforms,
each running one of the following CONTROL-M components:
— CONTROL-M/Server
The central software component of CONTROL-M.
CONTROL-M/Server runs on a Unix workstation (referred to as
the Server platform). From this location, CONTROL-M/Server
exchanges data with ENTERPRISE/CS and with multiple
production machines, and maintains the CONTROL-M database.
— CONTROL-M/Agent
This is the component of CONTROL-M that runs on each
production machine (referred to as the Agent platform) and
which executes job-handling requests received from
CONTROL-M/Server. Any number of Agent platforms with
different operating systems can be handled by a single Server
platform.
Topic Description
CONTROL-M Database Contents and functions of the CONTROL-M
Database.
Server-Agent Interaction CONTROL-M mechanism for distributed
execution of production jobs.
Load Balancing CONTROL-M mechanism for maximizing
throughput by automatic selection of the
platform to execute jobs, based on workload
considerations.
Overview 1-3
Topic Description
Failover Planning Contingency planning for the possibility of
failure of the Server platform or CONTROL-M
database.
New Day Procedure Daily scheduling and housekeeping
procedures which run on the Server platform.
Group Scheduling and Handling jobs as a group.
Processing
Shout Destination Tables Tables used to determine the recipients of
Shout messages.
Runtime Statistics Job statistics used for planning and
forecasting.
CONTROL-M Log Audit trail of all CONTROL-M events.
Automatic Problem Tools to detect real or potential problems.
Detection Tools (APDT)
Daylight Savings Time Considerations when moving the system clock
forward or backward.
CONTROL-M Administrator CONTROL-M administration responsibilities.
Heartbeat Monitor Special monitor which checks the status of
TCP/IP communication with ENTERPRISE/CS.
Watchdog Facility Mechanism that automatically monitors
CONTROL-M processes and resources.
User Exits Mechanism which enables the user to modify
CONTROL-M operations to suit site needs.
CONTROL-M Database
The CONTROL-M database is the repository of operational data relating
to the functioning of the CONTROL-M data center. One database exists
for each CONTROL-M data center. The database is maintained by
CONTROL-M/Server, using a dedicated or shared SQL server.
• CONTROL-M log.
Server-Agent Interaction
CONTROL-M/Agent handles requests from CONTROL-M/Server. A
request can consist of:
Overview 1-5
In addition, CONTROL-M/Agent can perform the following functions as
instructed by job processing parameters supplied with the job submission
request:
Note
If load balancing is used, the job processing definition includes a Node
group. For more information, see “Load Balancing” on page 1-9.
Status Description
Available Communication to the Agent is checked periodically by the
ctmping utility. When the ctmping utility detects an Agent, the
Agent is assigned the status Available. Communication with
the Agent continues to be checked and if the check fails, the
Agent‘s status is returned to Unavailable.
Unavailable If an Agent does not successfully complete the discovery
process it is assigned a status of Unavailable.
This status is also assigned to an agent if communication to
the Agent ends with an error.
CONTROL-M periodically checks the status of all Agents.
When this check is successful for an Agent that is marked
Unavailable, the Agent’s status is changed to Available.
Disabled You can manually assign this status to an Agent platform if you
want to temporarily prevent CONTROL-M/Server from
submitting jobs to that platform. CONTROL-M/Server will not
attempt to communicate with a disabled Agent platform until its
status is manually changed to Available. When an Agent
platform’s status is changed to Disabled, any jobs that were
running on the platform at that moment are assigned the status
Disappeared.
Overview 1-7
Interrupted Communication
Time-Related Functions
The time value used for any CONTROL-M function is determined by the
system time on the Server platform. This applies to the following:
Examples
To ensure that an Agent platform does not receive a request from any
unintended source, each Agent platform contains a file listing host names
of Server platforms that are authorized to issue requests to that platform.
A request from any Server platform not listed in this file is rejected by
CONTROL-M/Agent on the Agent platform.
Load Balancing
Under the Agent Technology implementation of CONTROL-M, you
have the additional option of scheduling jobs using the CONTROL-M
load-balancing feature. This feature enables you to submit a job to a
node group rather than to a specific Agent platform. This node group
represents a user-defined list of Agent platforms that are capable of
executing a given job. CONTROL-M/Server uses a load-balancing
algorithm to determine which of these Agent platforms is best able to
handle execution of the job at that moment and submits the job to that
node.
Overview 1-9
This feature enables CONTROL-M to optimize utilization of available
resources and ensure maximum production throughput.
Failover Planning
As CONTROL-M is integrated in the production environment of the data
center, it becomes increasingly important to ensure that interruptions of
CONTROL-M functionality are as short as possible.
Overview 1-11
Host Identification in the Agent Platform
Each Agent platform has a unique set of configuration data. This data
includes the following items:
The New Day procedure performs automatic functions that start a new
day under CONTROL-M. This procedure is used as a master scheduler
for all CONTROL-M activities.
Note
Odate is the scheduling date assigned to a job when the job is ordered.
See “Date Definition Concepts” in Chapter 2 of the Enterprise
Controlstation User Guide for more information regarding this date.
Note
A job for which the Max Wait parameter is specified that ends with a
status of NOTOK is not deleted from the Active Jobs file until the Max
Wait parameter is exceeded.
Overview 1-13
4. A selective cleanup of prerequisite conditions is performed.
Prerequisite conditions are deleted if their date reference (month and
day) is equal to the new CONTROL-M date. This prevents jobs from
being triggered by prerequisite conditions remaining from the
previous year.
8. Job orders are placed in the Active Jobs file according to job
processing parameters contained in Scheduling tables (assigned to
User Daily “SYSTEM”). These job orders can include the
submission of User Daily jobs (see “User Daily Jobs” on page 1-18).
Note
See “Date Control Record (UDLAST)” on page 1-21 for a description of
UDLAST and the Date Control record.
Scheduling Jobs
The New Day procedure is the master scheduler for production jobs.
It orders production jobs according to their job processing definitions,
and can also order User Daily jobs that, in turn, order regular production
jobs.
It is preferable to order jobs using User Daily jobs if two or more of the
following conditions exist:
The New Day procedure scans the Scheduling tables assigned to User
Daily “SYSTEM” and places relevant job orders in the Active Jobs file.
Some of these jobs may be regular production jobs, and some may be
User Daily jobs.
Overview 1-15
Figure 1-1 New Day Procedure and User Daily Jobs
CONTROL-M
Database
User Scheduling
Daily Table Name
SYSTEM UDAILIES
SYSTEM TABLE1
2 UDAILY1 PAYABLES
UDAILY1 RECEIVABLES
UDAILY2 INVENTORY
New Day
Procedure
1
Active Jobs File
Scheduling
3 Table Name Job
UDAILIES UDAILY1
CONTROL-M UDAILIES UDAILY2
Monitor
4 TABLE1 PROD_JOB1
TABLE1 PROD_JOB2
RECEIVABLES PROD_JOB5
2. The New Day procedure scans the CONTROL-M database for all
Scheduling tables assigned to User Daily “SYSTEM” (in this
example, UDAILIES and TABLE1). These Scheduling tables can
consist of regular production jobs and/or User Daily jobs. In this
example, UDAILIES consists of User Daily jobs and TABLE1
consists of production jobs.
3. The New Day procedure places the relevant job orders in the Active
Jobs file.
Note
A Group Scheduling table is ordered as a separate entity, and can be
ordered even if no jobs in the table are ordered. If this happens, the final
status of the group is set to OK, and post-processing for the group is
performed. (That is, setting prerequisite Out Conditions, Shouts and
ON_GROUP_END OK actions.)
Each User Daily job scans all the Scheduling tables assigned to it in the
CONTROL-M database, and orders the jobs based on their Scheduling
criteria, the date in the computer, and the Date Control record (see “User
Daily Jobs” in this chapter). For jobs in a Group Scheduling table, the
User Daily job also orders jobs according to Scheduling criteria of the
Schedule Tags in the Group Scheduling table. Each User Daily job scans
a different set of Scheduling tables and uses a different Date Control
record (see “Date Control Record (UDLAST)” on page 1-21).
Overview 1-17
User Daily Jobs
For large installations, User Daily jobs are the most suitable mechanism
for adding new job orders under CONTROL-M.
A User Daily job is actually no different from any other regular job
handled by CONTROL-M. The User Daily job is defined via the
ENTERPRISE/CS Graphical User Interface, using the same procedure
and the same job processing parameters as any other job. User Daily jobs
run on the Server platform.
Note
User Daily jobs require CONTROL-M/Agent to be installed on the
Server platform.
A User Daily job must include in its script file (specified by its Mem
Name job parameter) the command to run the ctmudly utility. The
ctmudly utility accepts a parameter containing the name of a specific
User Daily job, and it orders Scheduling tables associated with that User
Daily job. (The name of the User Daily job can be stated explicitly in the
script file or it can be specified using AutoEdit Assignment statements.)
When a User Daily job determines that a specific job should be ordered,
it places the job order in the Active Jobs file.
Note
It is recommended that User Daily jobs be scheduled to run sequentially,
not concurrently. This can be accomplished using the standard scheduling
parameters in job processing definitions (e.g., assign the same Control
resource in exclusive mode to all the User Daily jobs, and sequence the
jobs for execution in a specific order using the priority mechanism).
Example
The job processing definition below describes a job that could be used to
order the ACCOUNTING Scheduling table and the ACCGROUP
Group Scheduling table. This type of job is referred to as a User Daily
job.
Overview 1-19
Job Processing Parameters Script File
Job Name ACCUDAILY1 Script file udaily (referred to
by the Job Processing
Application USER_DAILIES
parameter Mem Name)
Task Type Job contains the following line:
ctmudly $1
Description Accounting User Daily The ctmudly utility used in
Scheduling Table ACCTDAILY this file is described in
Chapter 2, “Utilities.”
Author michelle
Owner bill
Mem Name udaily
Mem Lib /usr/bill/bin
AutoEdit %%PARM1 = UDAILY1
Assignments
You can manually order the User Daily job ACCUDAILY1 whenever
you want to order the jobs in the ACCOUNTING Scheduling table and
the jobs in the ACCGROUP Group Scheduling table, or you can assign
Scheduling table ACCTDAILY to User Daily name SYSTEM, in which
case ACCUDAILY1 is ordered by the New Day procedure.
When ACCUDAILY1 submits the script file with the parameter $1 set to
UDAILY1, the command actually executed by the script is:
ctmudly UDAILY1
The script file UDAILY can also be used by other User Daily jobs. In
each job processing definition, assign the appropriate User Daily name to
the AutoEdit variable %%PARM1.
User Daily jobs are used to place job orders in the Active Jobs file. Each
User Daily job usually runs once a day, scanning one or more user
Scheduling tables. As with any regular job, the User Daily job is ordered
according to its defined Scheduling criteria. This means that the User
Daily job is date-dependent. As a result, certain special situations must
be taken into account.
For example:
Each User Daily job has its own Date Control record, enabling the User
Daily job to maintain control over its last running date. The last running
date of the User Daily job is recorded in the Date Control record in a
field called UDLAST. The Date Control record is analyzed to determine
the current running date, the last running date, and possible error
situations.
The ctmudlst utility can be used to change the UDLAST field in the Date
Control record. Changing this date field affects the scheduling of jobs as
described below.
When a User Daily is run, UDLAST (the last running date of the User
Daily job, recorded in the Date Control record) is compared to Odate
(the current installation working date).
Overview 1-21
• If UDLAST and Odate are equal, it means that the User Daily job
has already run today. In that case, a message is issued to the
CONTROL-M log, and the User Daily job does not order any jobs.
• If, for any reason (e.g., hardware problems), the New Day procedure
did not run for one or more days, it is not necessary to run it for days
missed. However, production jobs (including User Daily jobs) whose
job processing definition includes the parameter Retro will be
ordered automatically for all the dates on which they were supposed
to be ordered. Retroactive ordering of jobs is performed according to
each job’s scheduling criteria.
For example, if the computer did not operate from the 20th to
the 23rd, then a job which was originally scheduled to run on the
20th will not have run on that day. When it is finally run on the 24th,
the New Day procedure determines whether or not its associated jobs
should be retroactively scheduled to run using the logical date of
the 20th. For additional information, refer to the Retro parameter in
Chapter 5, Job Processing Parameters, of the Enterprise
Controlstation User Guide.
Note
There is no need to specify the Retro parameter in the job processing
definition of a User Daily job which is scheduled to run on a daily basis.
In the event that production days are missed (as described above), one
execution of the User Daily job will order retroactively all jobs defined
using the Retro parameter.
If a User Daily job is interrupted for any reason (e.g., operating system
crashes, User Daily job errors or ordering is erroneously stopped for any
other reason), the entire daily process (starting from execution of the
New Day procedure) can be rerun manually. User Dailies ordered by the
first run of the New Day procedure are not reordered. Therefore, If a
User Daily other than SYSTEM was interrupted, you must run the
ctmudchk utility for that User Daily to order jobs that were not ordered
because of the interruption. The ctmudchk utility verifies that a job is not
already present in the Active Jobs file before ordering the job.
Most job orders are handled automatically by the New Day procedure or
by User Daily jobs. However, it is sometimes necessary to issue job
orders manually (e.g., an ad hoc job) or to issue a job order for a different
working date.
Overview 1-23
Table 1-2 Options for Issuing a Job Order Manually
Option Description
Order Requests that the specified job or Scheduling table be ordered.
Each job is placed in the Active Jobs file if its Scheduling
criteria are satisfied. Individual jobs in a Group Scheduling
table cannot be ordered. However, a Group Scheduling table
can be ordered.
Force Forces the specified job or Scheduling table. Each job is placed
in the Active Jobs file regardless of its Scheduling criteria.
For more information regarding the use of the Order and Force options,
see “Ordering/Forcing Jobs” in the Job Processing Definitions Chapter of
the Enterprise Controlstation User Guide.
You can create any number of Shout Destination tables, but only one of
them is designated as the active Shout Destination table at any given
time. By changing the designation of the active table, you can change the
actual recipients of messages sent to specific logical recipients.
Figure 1-2 Directing Shouts Via the Active Shout Destination Table
Shout Destination tables are created and maintained using the ctmsys
utility (described in Chapter 2, “Utilities”).
Overview 1-25
• Using utility ctmshtb. This utility accepts the name of the Shout
Destination table to make active.
Overview 1-27
Table 1-3 Shout Message Destinations
Note
All Shout messages are recorded in the CONTROL-M log. You would
select the log as a destination only when you do not wish to send the
message to any additional destination.
Runtime Statistics
CONTROL-M includes an option for accumulating and collating runtime
statistics for each defined job. These statistics are used for the following
purposes:
Overview 1-29
• The CONTROL-M ctmjsa utility is used to compile the data in the
Statistical Details table and store the results in a Statistical Summary
table in the CONTROL-M database. For additional information, see
the description of the ctmjsa utility on page 2-77.
The ctmruninf utility displays and deletes data from the Statistical
Details table. The ctmstats utility displays and deletes data from the
Statistical Summary table. Both utilities can be filtered according to date
and job information. For additional information, see the descriptions of
ctmruninf and ctmstats in Chapter 2, “Utilities.”
Overview 1-31
Entries are placed in the CONTROL-M log continually as long as
CONTROL-M is active. To prevent the log from becoming too large, the
CONTROL-M log is purged once a day by the New Day procedure. The
number of days that entries are retained in the CONTROL-M log before
deletion is determined by CONTROL-M system parameter Maximum
Days Retained by CONTROL-M Log (described in Chapter 5,
“Customization Parameters”).
The following examples assume that the clock is moved ahead at 2:00
a.m. (2:00 a.m. becomes 3:00 a.m.). If the computer is capable of
changing the clock without restarting the system, do not bring down the
CONTROL-M when the clock is being advanced.
• If the New Day procedure starts before you reset the clock, the New
Day procedure will start working before the clock is advanced, and
will continue normally (even if the clock is advanced while the New
Day procedure is in process). For more information about the New
Day procedure, see page 1-13.
Overview 1-33
Time-Dependent Shouts
• Shout messages scheduled between 2:00 a.m. and 3:00 a.m. will be
issued, even though there may not be a delay in production since the
time frame for production is smaller.
• The above also applies to jobs which have shout messages scheduled
at a later time (e.g., 6:00 a.m.). These jobs may be considered late
because of the tighter production time frame.
Jobs whose scheduled time overlaps the time gap created by the clock
shift may need manual intervention. For example, it is possible that a job
with a FROM value of 2:15 a.m. and an UNTIL value of 2:45 a.m. may
not be submitted at all. These jobs should be manually adjusted. A cyclic
job may have to be deleted and then resubmitted to continue the
processing cycle during the current day.
The CONTROL-M Log file will not contain entries with timestamps
between 2:00 a.m. and 3:00 a.m. Any scripts and/or programs that rely
on log entry time should be checked for possible discrepancies as a result
of advancing the clock.
The following examples assume that the clock is moved back at 2:00
a.m. (2:00 a.m. becomes 1:00 a.m.).
• If the New Day procedure starts before 1:00 am, no special action
should be taken. The New Day procedure will run only once
(between 00:00 and 00:59).
• If the New Day procedure starts exactly at 1:00 a.m., computer time
should not be turned back to 1:00 a.m. to avoid another New Day
process. A second New Day procedure requires manual intervention.
It is advisable to wait until 2:01 a.m., for example, and turn the clock
back to 1:01 a.m.
— Wait at least a full hour after the daily run, and then turn the
clock back as needed; the New Day procedure will have ended.
For example, if the New Day time is 1:45 a.m., the clock should be
moved back one hour no later than 1:44 a.m. If this was not done
by 1:44 a.m., the user should wait until 2:46 a.m. and then shift the
time back.
Time-Dependent Shouts
Shout messages scheduled between 1:00 a.m. and 2:00 a.m. may be issued
twice.
Overview 1-35
CONTROL-M Log File
The CONTROL-M Log file may contain entries with times earlier than
previous entries, due to the time shift. The same considerations that apply
to advancing the clock forward, should be applied to moving the clock
backwards.
CONTROL-M Administrator
The aim of the CONTROL-M administrator is to ensure the smooth and
efficient running of CONTROL-M with minimum interruptions and
optimal usage of available resources. To achieve this aim, the
responsibilities of the CONTROL-M administrator can be summarized as
follows:
Heartbeat Monitor
CONTROL-M contains an integral Heartbeat monitor that verifies that
TCP/IP communication with ENTERPRISE/CS is functional and that
ENTERPRISE/CS is responsive to messages from CONTROL-M.
Mode Description
Active Mode The CONTROL-M Heartbeat monitor periodically sends a
“heartbeat check” message through one TCP/IP
connection to ENTERPRISE/CS. ENTERPRISE/CS
repeats the message through the second TCP/IP
connection back to CONTROL-M. If CONTROL-M does
not receive a response to a heartbeat check message
within a limited time period, CONTROL-M assumes that
communication with ENTERPRISE/CS is temporarily
interrupted. CONTROL-M then initiates a procedure to
restore communication with ENTERPRISE/CS. In
addition, CONTROL-M issues a response to heartbeat
checks initiated by ENTERPRISE/CS.
Passive Mode CONTROL-M does not initiate heartbeat checks, but
CONTROL-M does respond to the heartbeat checks
initiated by ENTERPRISE/CS. In this mode,
CONTROL-M does not automatically attempt to restore
communication with ENTERPRISE/CS if communication
is interrupted.
Overview 1-37
The CONTROL-M Heartbeat monitor uses the following parameters that
are contained in file ~controlm/ctm/data/config.dat:
Parameter Description
CTM_PRM_KPA_ACTIVE
Whether or not the CONTROL-M Heartbeat monitor
operates in active (Y) or passive (N) mode. Default: Y.
CTM_PRM_KPA_BETWEEN_MSGS
Amount of time (in seconds) to wait after receiving a
response to a heartbeat check before issuing the next
heartbeat check. Default: 300 seconds.
CTM_PRM_KPA_ROUNDTRIP_TIMEOUT
Time (in seconds) to wait for a response after issuing
a heartbeat check before declaring a communication
failure and initiating corrective actions. Default: 300
seconds.
Example
CTM_PRM_KPA_ACTIVE Y
CTM_PRM_KPA_BETWEEN_MSGS 300
CTM_PRM_KPA_ROUNDTRIP_TIMEOUT 300
Tool Description
Event logger Generates log files for events that match the specified
severity and category. For more information, see
“Setting Event Logger Parameters” on page 1-39.
Log file size monitor Monitor the size of log files. Save files that exceed a
specified size to a new version of the file. For more
information, see “Managing Log Files” on page 1-41.
Stack trace logger A log of the functions called and the events leading
up to a process crash. For more information, see
“Stack Trace” on page 1-42.
Watchdog Monitors CONTROL-M processes and resources and
sends an alert if a problem is detected. For more
information, see“Watchdog Facility” on page 1-44.
ctmdbcheck Checks database integrity, displays information about
database memory utilization and automatically
monitors database and transaction logs. For more
information, see “ctmdbcheck” on page 2-39.
ctmdbtrans Lists active transactions in the database. For more
information, see “ctmdbtrans” on page 2-46.
ctmlog Performs selective cleanup of the CONTROL-M log or
produces a report of CONTROL-M log entries. For
more information, see “ctmlog” on page 2-91.
Overview 1-39
• IOALOG events
These are analogous to ctmlog events and involve reading and
writing to the IOA database.
• DBASE events
These are associated with database access and involve reading and
writing to the CONTROL-M database.
<controlm_home>/ctm/proclog/logger.
Note
If not manually archived, these log files can occupy a large amount of
disk space. Careful selection of events to be logged will prevent
unnecessary large log files. For information about how to maintain the
log files, see “Managing Log Files” on page 1-41.
CTM_LOGGER_SEVERITY {INFO|WARNING|ERROR}
CTM_LOGGER_CATEGORY {IOALOG|DBASE}
Keyword Description
INFO Informational messages for the specified category.
WARNING Warning messages for the specified category.
ERROR Error messages for the specified category.
Note
If no values are specified, no limits are placed on the size of the log file.
If values are specified, the size of the log file is checked and when the
limit is reached, the file is renamed logger.1. Entries continue to be saved
in the default logger file, and when the file next reaches its limit, the file
is renamed logger.2, and so on, until the maximum number of specified
generations is reached. The oldest file is deleted when another log file
exceeds the limit.
To set size and generation limits, specify the following parameters in the
config.dat file:
LIMIT_LOG_FILE_SIZE <file-size>
LIMIT_LOG_VERSIONS <number>
Overview 1-41
Table 1-8 Managing Log Files
Variable Description
LIMIT_LOG_FILE_SIZE File size, specified in megabytes.
LIMIT_LOG_VERSIONS Number of generations of the log file that should
be kept. The valid number must be a positive
integer between 1 and 9.
Example
To set a limit to the size of the log file to 10 MB and to limit the number
of generations of the log file to 3, specify the following parameters in the
config.dat file:
LIMIT_LOG_FILE_SIZE 10
LIMIT_LOG_VERSIONS 3
Stack Trace
<controlm_path>/ctm/proclog/<process_name>.<proc_ID>
The variables in this command line are described in the following table:
Example
controlm/ctm/proclog/CS_LOG.6509
Overview 1-43
Watchdog Facility
CONTROL-M contains a special Watchdog (WD) facility which
automatically monitors various CONTROL-M processes and resources,
essential to the running of CONTROL-M, and sends an appropriate alert
when there is a problem. The Watchdog facility can also be used to
automatically execute user-defined scripts or CONTROL-M utilities.
(See Chapter 2, “Utilities.”)
Parameter Description
WD_CTMEXIT_NUMBER Indicates the number of predefined Watchdog
user exits to be enabled. There are two built-in
user exits. Valid values are: 0,1 and 2, where:
• 0 disables the built-in user exits.
• 1 invokes the first built-in user exit.
• 2 invokes both built-in user exits.
WD_USEREXIT_NUMBER Indicates the number of Watchdog user exits to
be enabled. Specify the number of desired
user exits or specify 0 to disable all Watchdog
user exits.
Heartbeat Check
Parameter Description
WD_HEARTBEAT_INTERVAL Amount of time (in seconds) to wait after
receiving a response to a heartbeat check
before issuing the next heartbeat check.
WD_HEARTBEAT_TIMEOUT Time (in seconds) to wait for a response
after issuing a heartbeat check before
sending a message to the error handlers.
Two predefined built-in system user exits are included in the config.dat
file.
• Exit 1
Runs a Disk Space utility to check the amount of free disk space on a
specified device and sends an error message if it is below a specified
amount. See ctmdiskspace in Chapter 2, “Utilities,” for a complete
description
Overview 1-45
• Exit 2
Runs a Database Usage utility to check data and log usage in the
CONTROL-M database and sends an error message if it is above a
specified percentage. See ctmdbspace in Chapter 2, “Utilities,” for a
complete description.
The parameters for these two built-in Watchdog system user exits are
described in Table 1-11.
Note
Valid values for <n> in the parameters in Table 1-11 are either 1 or 2.
Parameter Description
WD_CTMEXIT_<n>_CMD_LINE Contains parameters to be
passed to the exit script.
WD_CTMEXIT_<n>_ERROR_MSG Indicates the message to be sent
if an exit script fails.
WD_CTMEXIT_<n>_INTERVAL Indicates the number of time
units during which the exit script
should not be invoked.
Parameter WD_INTERVAL
defines the time units. For more
information, see Table 1-13.
WD_CTMEXIT_<n>_RUN_STATE Indicates if the exit script should
be run when CONTROL-M is
running. Valid values are Y or N.
WD_CTMEXIT_<n>_SCRIPT_FILE File name of the script or binary
that resides in the ctm/
exe_<platform> directory.
WD_CTMEXIT_<n>_SUSPEND_STATE Indicates if the exit script should
be invoked when CONTROL-M is
suspended. Valid values are Y or
N.
WD_CTMEXIT_<n>_TIMEOUT Time (number of minutes) which
should be allowed before the exit
script is terminated.
Table 1-12 describes all parameters that can be defined for each user exit
of the Watchdog facility.
Parameter Description
WD_USEREXIT_<n>_CMD_LINE Contains parameters to be
passed to the exit script.
WD_USEREXIT_<n>_ERROR_MSG Indicates the message to be sent
if an exit script fails.
WD_USEREXIT_<n>_INTERVAL Indicates the number of time
units during which the exit script
should not be invoked.
Parameter WD_INTERVAL
defines the time units. For more
information, see Table 1-13.
WD_USEREXIT_<n>_RUN_STATE Indicates if the exit script should
be run when CONTROL-M is
running. Valid values are Y or N.
WD_USEREXIT_<n>_SCRIPT_FILE Full path of the exit script.
WD_USEREXIT_<n>_SUSPEND_STATE Indicates if the exit script should
be invoked when CONTROL-M is
suspended. Valid values are Y or
N.
WD_USEREXIT_<n>_TIMEOUT Time (number of minutes) which
should be allowed before the exit
script is terminated.
Overview 1-47
Example
Error Handlers
If a Watchdog facility check fails, the error message specified for that
check is sent to the defined error handler. Two other error-handling
options are available: CONTROL-O/Server and a user defined script.
These options are enabled via the parameters in the config.dat file
described in Table 1-13.
Note
Error messages are automatically sent to the CONTROL-M IOALOG and
PROCLOG.
Parameter Description
WD_ALIVE_MSG Indicates the message to be sent in response to
successful heartbeat checks. Place a ”#” character in
front of the parameter in the config.dat file to inhibit the
message.
WD_CTO_HOSTNAME Host name or IP Address CONTROL-O/Server.
Parameter Description
WD_CTO_TIMEOUT Maximum time for the Watchdog facility to send
messages to CONTROL-O/Server.
WD_ERROR_HANDLER_SCRIPT_FILE Path name of the user-defined script called by the
Watchdog facility.
WD_ERROR_HANDLER_TIMEOUT Maximum time for the Watchdog facility to wait for the
user defined script to run.
WD_INTERVAL Defines the time unit interval, in minutes, when the next
exit must be checked.
Example
Overview 1-49
User Exits
A user exit is a user-defined procedure that can be used to modify certain
information before it is processed. At certain points in processing a flat
text file is produced describing information that is to be passed to next
step in a procedure. This text file can be modified by a user-defined exit
script before it is passed on for processing.
Processing Overhead
CONTROL-M provides a wide variety of mechanisms that can be used
to control job scheduling. When determining which mechanisms to use,
it helps to be aware of the different levels of processing overhead that
each mechanism requires.
Table 1-14 lists certain basic scheduling features and their relative levels
of processing overhead. By choosing the right features for your job
processing definitions, you can ensure that your CONTROL-M processes
are fast and efficient.
Relative Processing
Feature Overhead
Time window (Basic scheduling parameters) Very low
In (prerequisite) conditions Low
Control Resources Medium
Relative Processing
Feature Overhead
Quantitative Resources High
Designation of a job as “Critical” Very High
Overview 1-51
BMC Software, Inc., Confidential and Proprietary Information
Utilities 2
Note
Many of these utilities are intended for use only by the CONTROL-M
administrator. Because they require extensive authorization in the
CONTROL-M database, they may not work if submitted by a regular
user.
Note
Refer to Table 2-2 to determine which subsystems must be active before
invoking a CONTROL-M utility.
Utilities 2-1
Table 2-1 lists the available utilities. Detailed information about each
utility is provided later in this chapter.
Utility Description
ctm_agstat Lists or updates an Agent’s status.
ctm_backup_bcp Exports data from a CONTROL-M database.
ctm_restore_bcp Imports data to a CONTROL-M database.
ctmcontb Performs operations on the Prerequisite Conditions
table.
ctmcreate Creates a job in the Active Jobs file.
ctmdbapasswd Changes the database password.
ctmdbbck Backs up the CONTROL-M database.
ctmdbcheck Checks database integrity and displays information
about database memory utilization.
ctmdbrst Restores the CONTROL-M database.
ctmdbspace Checks data and log usage in the CONTROL-M
database.
ctmdbtrans List the active transactions in the database.
ctmdefine Defines a job in the CONTROL-M database.
ctmdiskspace Checks the amount of free disk space on a device.
ctmexdef Exports job specifications from the job processing
Definitions table in the CONTROL-M database to an
ASCII file in either ctmcreate or ctmdefine format.
ctmfw Detects the successful completion of a file transfer
activity.
ctmgrpdef Creates a definition for a new Group Scheduling
table.
ctmjsa Accumulates statistical data and records it in the
Statistics Summary table in the CONTROL-M
database.
ctmkilljob Terminates a CONTROL-M job and its associated
processes.
ctmldnrs Creates and loads the Manual Conditions file.
Utility Description
ctmloadset Updates a resource in the Quantitative Resources
table with regard to usage on an Agent platform.
ctmlog Performs a selective cleanup of the CONTROL-M log
or produces a report of CONTROL-M log entries,
according to user-supplied parameters.
ctmordck Lists a user’s job processing definitions which can be
ordered by a specific User Daily job.
ctmorder Orders one or more jobs from a Scheduling table
contained in the CONTROL-M database.
ctmpasswd Allows changing CONTROL-M user’s password into
the database.
ctmping Collects configuration information about
CONTROL-M/Agents not in the CONTROL-M
database and performs a communication test.
ctmpsm Interactive utility for performing functions affecting
jobs or conditions in the Active environment.
ctmrpln Creates a report that lists all or a selection of jobs in a
specified Scheduling table, and indicates when the
jobs are scheduled to run. The report can be
requested for a specific date, month or a five-year
period.
ctmruninf Lists and deletes runtime data from the Statistical
Details table of the CONTROL-M database.
ctmsec Defines users in the CONTROL-M security database
and assigns them authorizations for working with
CONTROL-M. For more details, see “Security
Maintenance Utility (Interactive Mode)” on page 3-11.
ctmshout Issues a Shout message to an indicated destination.
ctmshtb Sets the active Shout Destination table.
ctmstats Displays or deletes statistical data from the Statistical
Summary table in the CONTROL-M database.
ctmstvar Displays the current value of an AutoEdit variable or
function.
ctmsuspend Suspends CONTROL-M/Server scheduling processes
for mass batch uploads/downloads from
ENTERPRISE/CS.
Utilities 2-3
Table 2-1 CONTROL-M Utilities (Part 3 of 3)
Utility Description
ctmsys Maintains CONTROL-M system parameters and
Shout Destination tables.
ctmudchk Allows recovery from interruption of a User Daily.
ctmudlst Enables you to manually set the User Daily last run
date.
ctmudly Orders jobs for a specific User Daily name.
ctmvar Manipulates AutoEdit variables for data centers,
Group Scheduling tables, or jobs in Group Scheduling
tables.
ctmwhy Displays a report stating why a job waiting in the
Active Jobs file is not being submitted for execution.
ctm2snmp Sends messages to Network Management
applications via SNMP traps.
ecactltb Lists the status of each resource in the Control
Resources table.
ecaqrtab Performs operations on the Quantitative Resources
table.
Utilities 2-5
Table 2-2 CONTROL-M Utility Reference (Part 3 of 3)
Report Description
Daily Job Order Generates a projection of which jobs in a
Scheduling table will be ordered on a given
day using a specific calendar. See “ctmrpln”
on page 2-120.
Monthly Job Order Generates a projection of which jobs in a
Scheduling table will be ordered in a given
month using a specific calendar. See “ctmrpln”
on page 2-120.
Yearly Job Order Generates a projection of which jobs in a
Scheduling table will be ordered over a
five-year period using a specific calendar. See
“ctmrpln” on page 2-120.
Report Description
CONTROL-M Log Lists entries in the CONTROL-M log for speci-
fied (or all) CONTROL-M/Server processes.
See “ctmlog” on page 2-91.
Active Jobs File Lists jobs in the Active Jobs file according to
various criteria. See “ctmpsm” on page 2-106.
User Daily: Lists all jobs associated with a specific User
Associated Job
Processing Definitions
Daily job and displays security parameters
regarding each job. See “ctmordck” on page
2-94.
Prerequisite Conditions Displays existing prerequisite conditions. See
“ctmcontb” on page 2-21.
Control Resources Lists the status of Control resources. See
Status
“ecactltb” on page 2-157.
Quantitative Resources Lists the status of Quantitative resources. See
Status
“ecaqrtab” on page 2-158.
Summary Statistical Lists summarized runtime statistics. See
Data
“ctmjsa” on page 2-77 and “ctmstats” on page
2-130.
Runtime Statistical Data Lists runtime statistical data by timestamp.
See “ctmruninf” on page 2-124.
Global AutoEdit Lists Global AutoEdit variables, See “ctmvar”
Variables
on page 2-150.
Utilities 2-7
• Specify the full path name of the file (for example,
/ctm/user1/rprt.txt).
• Specify the relative name of the file to be placed in the
<controlm_user_dir>/ directory.
CONTROLM
CONTROLM_USER
CONTROLM_DATABASE
LIBPATH or LD_LIBRARY_PATH
Use the following formats to define the shared library path variables in
the user’s environment, depending upon the Server platform type:
Utilities 2-9
Table 2-5 Shared Library Path for Sybase Variables
In both Table 2-5 and Table 2-6 above, <ctm_owner> refers to the Unix
user account under which CONTROL-M/Server is installed.
When using csh or tcsh, specify the following command for each
variable:
Oracle Example
When using other shells (for example, sh, ksh), specify the following
command for each variable:
Utilities 2-11
Sybase Example
Oracle Example
Specify the following command for each variable from user controlm:
echo $<variable-name>
Example
echo $SYBASE
Use the following command to modify the path when using csh or tcsh:
Variable Description
<controlm_owner> Unix user account under which
CONTROL-M/Server is installed.
<OS_ID> Identifier for the type of operating system on the
Server platform (AIX, HP-UX-10 or Solaris).
Example
Use the following command to modify the path when using other shells
(for example, sh, ksh):
PATH="$PATH: <controlm_path>/ctm/exe_<OS_ID>"
Variable Description
<controlm_path> Home directory of the CONTROL-M/Server account
owner.
<OS_ID> Identifier for the type of operating system on the Server
platform. Specify AIX, HP-UX-10 or Solaris.
Example
PATH="$PATH: controlm/ctm/exe_HP-UX-10"
Utilities 2-13
Assign Read/Write Permissions
ctm_agstat
Parameter Description
ACTION Action to be performed by the utility:
• LIST – List the current status of the specified Agent.
• LIST_INACT – List all inactive (disabled or unavailable)
Agents and their status.
• UPDATE – Change the status of the specified Agent to the
value of the STATUS parameter.
• DELETE – Delete the specified inactive Agent from the list of
Agents.
Utilities 2-15
Examples
ctm_agstat ACTION(LIST_INACT
ctm_backup_bcp [-n]
Example 1
ctm_backup_bcp
Utilities 2-17
Backing up contents of database
Please confirm [y/n] : Y
Example 2
ctm_backup_bcp -n
In this case, CONTROL-M does not display the confirmation prompt and
does not issue messages. Only dots are displayed.
ctm_restore_bcp [-n]
Example 1
ctm_restore_bcp
Restoring contents of database.
This procedure DELETES any information in main
database
Please confirm [y/n]: y
BMC Software, Inc., Confidential and Proprietary Information
Utilities 2-19
Messages similar to the following are displayed:
Example 2
ctm_restore_bcp -n
In this case, CONTROL-M does not display the confirmation prompt and
the “restoring contents” messages. Only dots are displayed.
Variable Description
<Condition Name> Name of the prerequisite condition to include in
the report. The condition name can include the
mask character ∗ to match any character string
(including no characters). In this instance, the
condition name must be enclosed in quotation
marks (for example, “LVL∗”). Specify “∗” by itself
to include all existing conditions.
<Condition Date> Date of the prerequisite condition. Must be
specified in mmdd format. The condition date
can include mask character ∗ to match any
character string (including no characters). In this
case, enclose the condition date in quotation
marks (for example, “12∗ ”).
• Specify “∗” by itself to include all dates.
• Specify ODAT to accept the CONTROL-M
date.
• Specify STAT to indicate that the date
reference of the condition is not relevant.
<Output> Full path name to which the report should be
sent (optional). If this parameter is not specified,
the output is routed to the default output device.
Utilities 2-21
Use the following command to add prerequisite conditions:
Variable Description
<Condition Name> Name of prerequisite condition to add.
<Condition Date> Date of the prerequisite condition. Must be
specified in mmdd format.
• Specify ODAT to accept the CONTROL-M date.
• Specify STAT to indicate that the date reference
of the condition is not relevant.
Variable Description
<Condition Name> Name of prerequisite condition to delete.
The condition name can include the mask character
∗ to match any character string (including no
characters). In this instance, the condition name
must be enclosed in quotation marks (for example,
“LVL∗ ”). Specify “∗” by itself to include all existing
conditions.
<Condition Date> Date of the prerequisite condition. Must be
specified in mmdd format. The condition date can
include the mask character ∗ to match any
character string (including no characters). In this
instance, the condition date must be enclosed in
quotation marks (for example, “12∗ ”).
• Specify “∗” by itself to include all dates.
• Specify ODAT to accept the CONTROL-M date.
• Specify STAT to indicate that the date reference
of the condition is not relevant.
Variable Description
<Condition Name> Name of prerequisite conditions to delete.
The condition name can include the mask character
∗ to match any character string (including no
characters). In this instance, the condition name
must be enclosed in quotation marks (for example,
“LVL∗ ”). Specify “∗” by itself to include all existing
conditions.
<From Date> Starting and ending dates for range of condition
<To Date> dates of prerequisite conditions to delete. Each date
must be specified in mmdd format.
If the To Date is less than the From Date, the range
of condition dates will include the From Date up to
the end of the year (1231) plus the beginning of the
year (0101) up to the To Date.
Example 1
Example 2
Utilities 2-23
Example 3
Conditions list
CONDNAME CONDDATE
APR1- L20 0629
APR1-L20 0630
ARD- L30K 0630
LVL11-LVL22 0628
LVL11-LVL22 0629
LVL11-LVL22 0630
PKR11-LVL01 0630
The ctmcreate utility can also be used to define jobs for specific
applications such as SAP and Oracle Applications. For more information,
see “Creating Application-specific Jobs” on page 2-31.
ctmcreate-tasktype {JOB|DETACHED|COMMAND|DUMMY|GROUP} \
[-group <group name>] \
[-application <application name>] \
[ -group_ord <grp_orderno|ALONE|LAST>\
[ -adjust_cond {Y|N}\
[ -nodegrp <node ID/group> ] \
[ -memlib <directory name> ] \
[ -memname <file name> ] \
[ -cmdline <command line text> ] \
[ -jobname <name of job> ] \
[ -schedtab <name of scheduling table> ] \
[ -owner <user name of job owner> ] \
[ -author <user name of the job creator>] \
[ -odate <scheduling date>|ODAT ]\
[ -maxrerun <maximum reruns> ]\
[ -timefrom <earliest submission time> ]\
[ -timeuntil <latest submission time> ]\
[ -priority <job priority> ]\
[ -critical {Y|N} ]\
[ -cyclic {Y|N} ]\
[ -intervalfrom {START|END}]\
[ -confirm {Y|N} ]\
[ -taskclass {DISTRIBUTION|DECOLLATION}|SAP|OAP ]\
[ -interval <minutes> ]\
[ -overlib <alternate directory> ]\
[ -maxwait <days> ]\
[ -description <job description> ]\
[ -docmem <file name> ]\
[ -doclib <directory name> ]\
[ -incond ‘(<condition1> ’ <date1> {AND|OR} …
-incond ‘ <condition2>)’ <date2> {AND|OR} …
-incond ‘ <condition3>)’ <date3> {AND|OR}]\
[ -outcond <cond> <date> {ADD|DEL} ]\
[ -autoedit <variable name> <expression> ]\
[ -quantitative <quantitative resource> <quantity> ]\
[ -sysout {RELEASE|DELETE|COPY|MOVE} [<parameter>] ]\
[ -control <control resource> {E|S} ]\
[ -shout {OK|NOTOK|RERUN|LATESUB|LATETIME| EXECTIME} <destination> R|U|V}
<message> [<time>] ]\
[ -on <statement> <code>\
[ -dook ]\
[ -donotok ]\
Utilities 2-25
[ -dorerun ]\
[ -doshout <destination> {R|U|V} <message> ]\
[ -dostopcylic]\
[ -domail <destination> <cc> <urgency> {R|U|V} <subject> <message>\
[ -docond <condition> <date> {ADD|DEL} ]\
[ -doautoedit <variable name> <expression> ]\
[ -doforcejob <table name> <job name> <odate> ]\
[ -dosysout {RELEASE|DELETE|COPY|MOVE}[<parameter>]]\
[ -debug <level> ] \
[ -quiet ]
Each of the parameters of this utility, except for group_ord, debug and
quiet, is described in detail in Chapter 5 of the Enterprise Controlstation
User Guide.
Parameter Description
-group_ord Specifies in which order of a Group Scheduling table to put the
job. Valid values are:
<order-no> A specific order number of the Group
Scheduling table.
If the specified order number does not exist
the command is not executed and an error
message is displayed.
ALONE The job is on its own (not in any table).
LAST The last order of the specified Group
Scheduling table.
Note: When an order ID or LAST is specified for this
parameter, the -group and -schedtab parameters are
mandatory and must both contain the name of Group
Scheduling table that is currently in the Active Jobs file.
-debug Level of debug messages, 0 to 5.
Default: 0 (no debug messages).
-quiet If specified, no informational messages are displayed during
the execution of the command.
Table 2-13 lists each parameter available for the utility and the name by
which the parameter appears in the User Guide.
ENTERPRISE/CS ENTERPRISE/CS
Utility Parameter Parameter Utility Parameter Parameter
adjust_cond Adjust condition interval Interval
application Application intervalfrom Interval (From field)
autoedit AutoEdit jobname Job Name
Assignments
cmdline Command Line maxrerun Max Rerun
confirm Confirm Submission maxwait Max Wait
control Control Resources memlib Mem Lib
critical Critical memname Mem Name
cyclic Cyclic nodegrp Node ID/Group
description Description odate see note below
doautoedit Do AutoEdit on On Statement/Code
doclib Doc Lib outcond Out Conditions
docmem Doc Mem overlib Over Lib
docond Do Cond owner Owner
doforcejob Do Forcejob priority Priority
domail Do Mail quantitative Quantitative Resources
donotok Do NOTOK schedtab Scheduling Table
dook Do OK shout Shout
dorerun Do Rerun sysout Sysout Handling
doshout Do Shout taskclass Task Class
dostopcyclic Do Stop Cyclic tasktype Task Type
dosysout Do Sysout timefrom Time
group Group timeuntil Time
incond In Conditions
Utilities 2-27
The following syntax rules apply when using this utility:
• The length of the command line, after decoding, must not exceed 999
characters.
• All fields of each parameter (as specified in the syntax on page 2-25)
must contain values. If no value is desired for a parameter field, a
null string "" must be specified in the relevant position in the
parameter specification.
For example
• The order of the parameters does not affect the outcome of the job,
with the exception of -on and -do... parameters.
Utilities 2-29
• When the ctmcreate utility is invoked from a script: To use the ∗∗∗∗
option for a -incond date parameter, specify this parameter as
\“∗∗∗∗\”
Example 1
-memlib "~/controlm/scripts/"
Example 2
Example 3
The ctmcreate utility can be used to define jobs for specific applications
such as SAP and Oracle Applications. These jobs are defined by setting
the – TASKCLASS parameter to SAP or OAP.
Note
The program that is used to run an application-specific job resides in a
script directory in the agent platform. This program is located under
$HOME/ctm/script. SAP and the EXE directory is /r3/exe. is the name
for the SAP script. OAP. is the name for the Oracle Applications script.
Make sure that the path to the script directory is located in the user’s
environment path.
Utilities 2-31
• The AUTOEDIT_INLINE parameter must be set to Y in the
$home/ctm/data/agconfig.dat file of CONTROL-M/Agent for
Unix.
– MEMLIB
– MEMNAME
– TASKCLASS
Table 2-14, “SAP Parameters,” on page 2-33 lists parameters for SAP
jobs. The parameters for SAP applications are described in detail in the
CONTROL-M Option for R/3 Administrator Guide version 3.0.04 or
later.
Utilities 2-33
Table 2-14 SAP Parameters (Part 2 of 2)
–username c 1 30
-ver c 0 6
–respname c 1 30
–respapp c 1 50
–tasktype c 1 20
–progname c 1 30
–appname c 1 50
–printername c 0 100
–printstyle c 0 20
–printcopies c 0 6
–profile_<n> c 0 80
where n is 1 - 30
–description c 0 80
–stageparm<n> c 0 80
where n is 1-100
Utilities 2-35
ctmdbapasswd
ctmdbapasswd
1. Enter the old password for the System Administrator account. The
system will prompt you to enter the new password:
2. Enter the new password for the System Administrator account. Make
sure that the password has at least 6 characters. You will not see your
entry on the screen. The system will then prompt you to reenter the
password:
Note
The ctmdbbck utility can be used only to back up a dedicated database
server. It should not be used if CONTROL-M was installed using an
existing database server.
To back up an existing database, use the ctm_backup_bcp utility
(described on page 2-17).
-or-
• the full path name of a file to be created by the backup procedure for
Sybase or Oracle
Utilities 2-37
Example
ctmdbbck tapedump2
ctmdbcheck
The ctmdbcheck utility can also be used with the following syntax to
monitor the database and the transaction log:
Note
If the -n switch is specified in the ctmdbcheck command, only database
capacity information is returned, and database thresholds and integrity
are not checked.
Utilities 2-39
Table 2-16 ctmdbcheck – Parameters
Parameter Description
db_threshold Threshold for usage of the CONTROL-M database. If more
_% than the specified percentage of the database is full, a Shout
message is sent to ENTERPRISE/CS warning that the
database should be extended. This variable must be
preceded by the -d switch. For example, -d80 indicates that
a shout message should be issued if the database is more
than 80% full.
log_threshold Threshold for usage of the transaction log of the
_% CONTROL-M database. If more than the specified
percentage of the database is full, a Shout message is sent
to ENTERPRISE/CS warning that the transaction log
should be extended. This variable must be preceded by the
-l switch. For example, -l80 indicates that a shout message
should be issued if the transaction log is more than 80% full.
general_ Checks data and log partitions of the CONTROL-M
threshold_% database by the same percentage (for example, if percent
usage of either the data area or the transaction log exceeds
80%, ctmdbcheck 80 triggers a Shout message).
ctmdbcheck Output
Field Description
db total Total amount of memory (in KB) allocated for the database.
data Total amount of memory (in KB) allocated to the Data
partition of the database.
log Total amount of memory (in KB) allocated to the Log partition
of the database.
Data used Total memory currently used in the Data partition.
Log used Total memory currently used in the Log partition.
Field Description
Tablespace Name of the Tablespace.
Size Allocated size of the Tablespace in MB.
Percent Free Percent of allocated Tablespace size that is not used.
• Database is OK.
• WARNING: Database is more than half full.
• ATTENTION: Database log segment is more than 90% full.
• ATTENTION: Database is more than 80% full.
Example 1
This example uses the ctmdbcheck utility to check the status of a Sybase
database without specifying any parameters (that is, no shout messages
will be issued for this run on the utility, even if database is over the
desired threshold).
Utility Input
ctmdbcheck
Utility Output
Example 2
This example uses the ctmdbcheck utility to check the status of an Oracle
database without specifying any additional parameters.
Utility Input
ctmdbcheck
Utilities 2-41
Utility Output
Checking database...
Database is OK.
Example 3
Utility Input
ctmdbcheck -d80
Utility Output
Message ’Warning: DB is more than 80% full’, urgency ’U’ NodeID ’linda’
– Shout to user 'ECS' 'SUCCESS'
db total = 25000.0 KB (data= 19500.00 , log= 5500.00)
data used = 21250 KB (85%).
log used = 0 KB (0%).
Checking database...
Database is OK.
Example 3
Utility Input
ctmdbcheck -l80
Utility Output
Example 4
Utility Input
ctmdbcheck 50
Utilities 2-43
ctmdbrst
where <Backup Device> is the device from which the database should
be restored. The device specified for this parameter must be either a valid
device defined in Sybase, or the full path name of a file to be used as
input for the ctmdbrst utility. A list of devices can be obtained using the
option List Backup Devices from the Database Maintenance menu.
Note
CONTROL-M must be shut down before invoking this utility. Make sure
that no other users or processes are connected to the SQL Server.
Example
ctmdbrst
ctmdbspace checks the data and log usage in the CONTROL-M database
and displays the usage. The utility returns a “failed” status if the usage
exceeds the specified limit.
Note
ctmdbspace can be included in the CONTROL-M Watchdog process. See
“Watchdog Facility” on page 1-44 for more information.
Example
Utilities 2-45
ctmdbtrans
You may be asked by technical support to run this utility and to provide
them with the output for debugging purposes.
ctmdbtrans
-or-
The ctmcreate utility can also be used to define jobs for specific
applications such as SAP and Oracle Applications. For more information,
see “Defining Application-specific Jobs” on page 2-57.
Note
Group Scheduling tables can also be defined using the ctmgrpdef utility
(described on page 2-75).
• If the job name specified when using this utility already exists in a
job processing definition in the Scheduling table, the new job
processing definition does not overwrite the existing one. Both job
processing definitions will appear in the table, each with a different
internal job number.
• If the Scheduling table specified when using this utility does not
exist, the utility creates it.
Utilities 2-47
• A newly created Scheduling table can be assigned a User Daily
parameter via the ENTERPRISE/CS GUI after the Scheduling table
is downloaded to the ENTERPRISE/CS database or using the
ctmpsm utility.
Each parameter included in the above syntax, except debug and quiet, is
described in detail in Chapter 5, “Job Processing Parameters”, in the
Enterprise Controlstation User Guide.
Parameter Description
debug Level of debug messages, 0 to 5. Default: 0 (no
debug messages).
quiet If specified, no information messages are displayed
during execution of the command.
Table 2-19 lists each parameter of the ctmdefine utility, and the name
under which the parameter appears in the Enterprise Controlstation User
Guide.
Utilities 2-49
Table 2-19 ctmdefine – Parameter Name Cross Reference
ENTERPRISE/CS ENTERPRISE/CS
Utility Parameter Parameter Utility Parameter Parameter
adjust_cond Adjust Condition interval Interval
application Application intervalfrom Interval (From field)
autoedit AutoEdit Assignments jobname Job Name
cal_andor AND/OR maxrerun Max Rerun
cmdline Command Line maxwait Max Wait
confcal Conf Calendar memlib Mem Lib
confirm Confirm Submission memname Mem Name
control Control Resources month See below
critical Critical nodegrp Node ID/Group
cyclic Cyclic on On Statement/Code
date Dates outcond Out Conditions
days Days overlib Over Lib
dayscal Days Calendar owner Owner
description Description priority Priority
doautoedit Do AutoEdit quantitative Quantitative Resources
doclib Doc Lib relationship Relationship
docmem Doc Mem retro Retro
docond Do Cond shift Shift
doforcejob Do Forcejob shout Shout
donotok Do NOTOK sysout Sysout Handling
domail Do Mail table Scheduling Table
dostopcyclic Do Stopcyclic tag Schedule Tag
dook Do OK taskclass Task Class
dorerun Do Rerun tasktype Task Type
doshout Do Shout timefrom Time
dosysout Do Sysout timeuntil Time
group Group weekcal Weekdays Calendar
incond In Conditions weekdays Weekdays
Example:
-group accgroup
• The length of the command line, after decoding, must not exceed 999
characters.
Utilities 2-51
• All task types require the group and application parameters. In
addition:
Example:
-tag mytag1
-maxwait 1
-days 0,2,3
-dayscal cal1
• The default for the -month parameter is ALL Y. This means that if
you wish to define a job that should run only in one specific month,
you must first indicate that it should not run on any month. For
example:
-month ALL N -month NOV Y
• The order of parameters does not affect the outcome of the job, with
the exception of -on and -do... parameters.
• All fields of each parameter (as specified in the syntax on page 2-48)
must contain values. If no value is desired for a parameter field, a
null string "" must be specified in the relevant position in the
parameter specification.
For example
Utilities 2-53
• Normally, when a -dorerun parameter is implemented, the current run
of the job ends with a status of NOTOK. To ensure that the job will
have a status of OK even though it is rerun, specify a -dook
parameter immediately after the -dorerun parameter.
Example:
• When ctmdefine is invoked from a script: To use the ∗∗∗∗ option for
a -incond date parameter, specify this parameter as \“∗∗∗∗\”
Utilities 2-55
Example 2
The ctmdefine utility can be used to define jobs for specific applications
such as SAP and Oracle Applications. These jobs are defined by setting
the – TASKCLASS parameter to SAP or OAP.
Note
The program that is used to run an application-specific job resides in a
script directory in the agent platform. This program is located under
$HOME/ctm/script. SAP and the EXE directory is /r3/exe. is the name
for the SAP script. OAP. is the name for the Oracle Applications script.
Make sure that the path to the script directory is located in the user’s
environment path.
– MEMLIB
– MEMNAME
– TASKCLASS
Utilities 2-57
Table , “,” on page 2-58 lists the SAP parameters. The parameters for
SAP applications are described in detail in the
CONTROL-M Option for R/3 Administrator Guide version 3.0.04.
Utilities 2-59
Table 2-21 Oracle Applications Parameters
–username c 1 30
–respname c 1 30
–respapp c 1 50
–tasktype c 1 20
–progname c 1 30
–appname c 1 50
–printername c 0 100
–printstyle c 0 20
–printcopies c 0 6
–profile_<n> c 0 80
where n is 1-30
–description c 0 80
–waitchild c 1 1
–security_groupname c 0 80
–parm<n> c 0 80
where n is 1-100
–stageparm<n> c 0 80
where n is 1-100
Utilities 2-61
ctmdiskspace
Parameter Description
amount Specifies the minimum amount (percentage, K, or M) of free
space on the device as a whole number (integer).
path_name Specifies the full path name of the device. Multiple devices
can be specified on the command line.
-quiet Suppresses informational messages from being displayed
during the execution of the command.
Note
More than one -path <path_name> statement can be specified for each
run of the ctmdiskspace utility.
Example 1
Utilities 2-63
ctmexdef
Parameter Description
<table_name> Scheduling table containing the job processing definition.
<jobname> Name of the job. Either the JOBNAME or MEMNAME
parameter is required.
<memname> Mem name of the job.
CREATE The exported flat file will use the ctmcreate format.
Parameter Description
DEFINE The exported flat file is in ctmdefine format. Default.
<output_file_ Full path name of the file to contain the exported job
name> specifications. If this parameter is not specified, the output
is routed to the default output device.
Example
Utilities 2-65
ctmfw
The CONTROL-M File Watcher utility (ctmfw) detects the following file
processes:
Note
The ctmfw utility cannot be used to monitor files larger than 4GB.
• For a file transfer activity, when the file is detected, the job continues
to monitor the size of the file. When the file reaches a specified
minimum size and does not increase in size for a specified period of
time, the File Watcher utility either completes with a status of OK or
executes a specified DO action. DO actions can consist of adding or
deleting conditions or executing a command.
• For file deletion, ctmfw must first detect the existence of the file
before it can detect its deletion.
The ctmfw utility can also be run from the command line.
The ctmfw utility can be invoked to detect either a single file or multiple
files.
Note
The parameters in this command are identified by their sequence.
Although all parameters are optional, you cannot skip a parameter and
assign a value to a subsequent parameter. The first value is assumed to be
the desired mode, the second value is assumed to be the min_size, and so
forth.
If only five values are specified, the default value for wait_time is used.
If four parameters are specified, default values for min_detect and
wait_time are used, and so forth. For example:
Utilities 2-67
Table 2-24 ctmfw – Parameters
Param Description
filename Path of the file to be detected. The file name can include mask
character * to represent any number of characters (including no
characters). In this case, enclose the full path name in quotation
marks (for example, “c:\ctm\a*.txt”). When including an * as part
of a file name in a Rules file, (see page 2-70), the name should
not be enclosed in quotation marks. When a wildcard is used, the
ctmfw utility does not monitor the size of the file.
mode CREATE Detects creation of a file. If filename includes a
wildcard, the size of the file is ignored. Default.
Note: If a mask is specified for the filename, the
ctmfw utility will end successfully after detection of
the first file that matches the specified mask.
DELETE Detects deletion of a file. When the ctmfw utility is
run in this mode, it first checks for files that match
the specified name. After a specified file is
detected, the ctmfw utility checks at the specified
interval for deletion of that file. Note: If a mask is
specified as the filename, the ctmfw utility will end
successfully only after all detected files that match
the specified mask have been deleted.
min_size Minimum file size in bytes. This parameter is ignored when using
wildcards in filename or when using DELETE mode.
Default: 0 (any size detected).
sleep_int Interval between successive attempts to detect the
existence/deletion of a file (in seconds). Default: 60 seconds.
mon_int Interval between attempts to monitor the size of a file after it is
detected (in seconds). This parameter is ignored when using
wildcards in filename or when using DELETE mode. Default: 10.
min_detect Number of attempts to monitor file size where the size remains
static and greater than or equal to min_size (indicating
successful creation of the file). This parameter is ignored when
using wildcards in filename or when using DELETE mode.
Default: 3.
wait_time Maximum time (in minutes) to run the process without detecting
the file at its minimum size (CREATE) or detecting its deletion
(DELETE). If the file is not detected/deleted in this specified time
frame, the process terminates with an error return code, as
described in Table 2-25. Default: 0 (no time limit).
The return codes listed in Table 2-25 are issued by the ctmfw utility after
detecting if a file is created or deleted in the specified time frame.
Utilities 2-69
The Rules file contains two sections:
Note
All keywords must be entered in uppercase.
Parameter Description
INTERVAL Sleep interval between succeeding scans for all the files.
This parameter replaces the individual sleep_int and
mon_int parameters for each file. Default: 10 seconds.
FROM_TIME Starting time for detecting all the files (default
FROM_TIME). Used with WAIT_TIME to identify the time
frame for detecting and monitoring the files. This
parameter is expressed in 24-hour, hhmm format.
Default: 0000.
Note
In a Rules file, if a wildcard (*) is used in a filename in an
ON_FILEWATCH statement, the name and path must not be embedded
in quote marks.
# ON_FILEWATCH statements
ON_FILEWATCH <filename> [mode] [min_size] [min_detect] [wait_time]
[from_time] [cyclic_interval]
THEN
<action>
ELSE
<action>
END_ON
#******************************************************************
• # indicates comments.
• Default values are shown for all mandatory parameters.
• from_time is the time from which to watch for the specified file
action.
• cyclic_interval is the interval between multiple operations of
detecting the file (in minutes). This interval must be greater than the
value for wait_time. If the cyclic_interval is 0, only one attempt to
detect the file will be performed. Default: 0.
• <action> refers to any of the actions described in Table 2-27.
Note
All key words must be entered in uppercase.
Action Description
DO_COND <condition name> Add (+) or delete (-) a condition.
<condition date> <+|->
DO_CMD <command> Execute a valid command under the
command interpreter. Full path names are
required for files.
DO_OK Terminate ctmfw with status OK.
DO_NOTOK [exit code] Terminate ctmfw with status NOTOK. Exit
code is optional and replaces the standard
return code, as described in Table 2-25.
Utilities 2-71
• If the file is detected and the size remains static within the time
frame (CREATE) or the file has been deleted (DELETE), the DO
commands in the THEN block are executed.
• ctmfw terminates when either all the files in the Rules file have been
processed or a DO_OK/DO_NOTOK action is executed.
Note
If any ON_FILEWATCH statement contains a cyclic_interval parameter,
ctmfw will only terminate on a DO_OK/DO_NOTOK action.
#******************************************************************
INTERVAL 10
ON_FILEWATCH /controlm/datafile.txt CREATE
THEN
DO_COND datafile 0101 +
DO_CMD move /ctm/datafile.txt /ctm/workfile.txt
ELSE
DO_COND datafile 0101 -
END_ON
ON_FILEWATCH /ctm/tempfile.txt DELETE
THEN
DO_COND tempfile 0101 -
END_ON
#*******************************************************************
Utilities 2-73
Example 2
Parameter Value
Job Name FileWatch
Mem Name FileWatch
Owner <control_m_user>
From Time 1900
Command line ctmfw /tmp/trans.dat CREATE 100 60 10 5 180
On Statement/Code processing:
Stmt *
Code COMPSTAT=0
Do Cond file_trans_dat_ok Date: ODAT Sign: +
Stmt *
Code COMPSTAT=1
Do Shout To: ENTERPRISE/CS Text: “File trans.dat did not arrive
on time”
Group Scheduling tables are used for jobs whose processing should be
treated as a single unit. The definition created via this utility contains
values for parameters that affect handling of the entire group.
ctmgrpdef
-GROUP <group_name>
-APPLICATION <appl_name>
-TAG <tagname>
[ -MAXWAIT <maxwait> ]
[ -DAYS <daystr> ]
[ -WEEKDAYS <weekdaystr> ]
[ -MONTH ALL|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC Y|N ]
[ -DATE <MMDD> ]
[ -DAYSCAL <days calendar> ]
[ -WEEKCAL <week calendar> ]
[ -CONFCAL <conf calendar> ]
[ -CAL_ANDOR AND|OR ]
[ -SHIFT ’>’|’<’ ]
[ -ADJUST_COND Y|N ]
[ -OWNER <username> ]
[ -AUTHOR <username> ]
[ -DEBUG <level> ]
[ -QUIET ]
[ -TIMEFROM <earliest submission time> ]
[ -TIMEUNTIL <latest submission time> ]
[ -PRIORITY <job priority> ]
[ -CONFIRM Y|N ]
[ -DESCRIPTION <string> ]
[ -DOCMEM <filename> ]
[ -DOCLIB <directory name> ]
[ -INCOND <condition> <dateref>|ODAT AND|OR ]
[ -OUTCOND <condition> <dateref>|ODAT ADD|DEL ]
[ -AUTOEDIT <varname> <expression> ]
[ -SHOUT OK|NOTOK|LATESUB|LATETIME|EXECTIME
<destination> <urgency R|U|V> <message> [<time>] ]
[ -ONGROUPEND {OK|NOTOK}
[ -DOOK ]
[ -DONOTOK ]
[ -DOSHOUT <destination> <urgency R|U|V> <message> ]
[ -DOCOND <condname> <dateref>|ODAT ADD|DEL ]
[ -DOAUTOEDIT <varname> <expression> ]
[ -DOFORCEJOB <tablename> <jobname> <odate>|ODAT ]
[ -DOMAIL <destination> <cc> {R|U|V} <subject> <message> ]
Utilities 2-75
Most parameters in the command shown above are described in detail in
Chapter 5, Job Processing Parameters, in the Enterprise Controlstation
User Guide. See Table 2-19 for the names under which these parameters
are listed in the Enterprise Controlstation User Guide.
Note
At least one Schedule tag must be specified (using the -TAG parameter)
for each run of the ctmgrpdef utility. Definition of additional tags is
optional.
Parameter Description
debug Level of debug messages, 1 to 5. The default value
is 0 (no debug messages.
quiet If specified, no information messages are displayed
during execution of the command.
ctmjsa compiles runtime data from the Statistical Details table and
records it in the Statistics Summary table of the CONTROL-M database.
• Scans the statistical data for jobs that terminated with a status of OK.
The jobs scanned can be limited to a range of dates as described
below.
• Computes the average run time and standard deviation for each job
for which data was found.
Note
Statistical data is only accumulated when the CONTROL-M system
parameter Statistics is set to Y. Operational parameter Statistics Mode
determines the mode to be used to compile summary statistics:
JOBNAME or MEMNAME. The default is MEMNAME.
Utilities 2-77
Table 2-29 ctmjsa – Parameters
Parameter Description
<From Date> Starting date of statistical data to be compiled. The date is
specified in yyyymmdd or yymmdd format.
<To Date> Ending date of statistical data to be compiled. The date is
specified in yyyymmdd or yymmdd format.
-<Delta1> Unsigned number used to establish the starting date for
statistical data to be compiled. This date is determined by
subtracting <Delta1> from <Date> (for example, if <Delta1> is
10 and <Date> is 991220, the starting date is 991210).
-<Delta2> Unsigned number used to establish the ending date for
statistical data to be compiled. This date is determined by
adding <Delta2> to <Date> (for example, if <Delta2> is 5 and
<Date> is 991220, the ending date is 991225).
<Date> Date used together with <Delta1> and <Delta2> to determine
the range of dates used for compiling statistical data. The date
is expressed in yyyymmdd or yymmdd format.
“∗” Asterisk enclosed in quotation marks. Specifies that the utility
collects all statistical data available without regard to date.
-list Display data from the Statistical Summary table filtered
according to specified subparameters. Use this option after
you have updated the summary table. This information is also
available from ENTERPRISE/CS in the Statistics window.
<Filter> Specify one of the following options and its subparameter or
leave blank to display statistics for all jobs.
-JOBNAME <jobname> Identify the job by its Job Name
parameter.
-MEMNAME <memname> Identify the job by its Mem Name
parameter.
-MEMLIB <memlib> Identify jobs by their Mem Lib
parameter.
-NODEID <nodeid> Identify jobs by their node group
parameter (Agent platform).
If the Statistics Summary table contains duplicate lines, see the bulleted
item about changing Statistics Mode on page 4-34.
Example 1
The following commands compile statistical data for the 5-day period
from June 21, 2000 through June 25, 2000 (assuming this data is
available). In the second command, the hyphens indicate the beginning
of unsigned parameter values; they are not minus signs.
Example 2
The following command compiles statistical data using all data currently
available:
ctmjsa "∗"
Utilities 2-79
Example 3
This command displays summary data for all jobs whose Mem Name
parameter starts with “pgmac”: ctmjsa -list -MEMNAME "pgmac*"
A report similar to the following is displayed:
ELAPSED
JOBNAME MEMNAME MEMLIB NODEID CPU [sec] (sec)
pgmacct1 prod.acct.pgm diana 0.19 233.15
pgmacct2 prod.acct.pgm verdi 0.12 6.12
pgmacct3 prod.acct.pgm diana 0.05 170.45
pgmacct4 prod.acct.pgm diana 0.34 145.23
The ctmkilljob utility terminates a specified CONTROL-M job and all its
processes. ctmkilljob terminates only jobs that are currently executing.
Note
Only jobs running on CONTROL-M/Agent version 2.2.5 and later can be
terminated using ctmkilljob.
This utility can only be run interactively. Specify the following command
to invoke the ctmkilljob utility:
Parameter Description
orderid CONTROL-M Order ID of the job to be terminated.
nodeid Host name of an Agent platform, or name of a node group to
which the job should be submitted.
memlib Name of the library/directory in which the job script resides.
memname Name of the file that contains the job script statements.
jobname Descriptive reference for a job processing definition.
If the action was successful, the utility responds with the statement:
Note
The parameters specified for ctmkilljob must indicate one unique job. If
more than one job fits the description specified in the command, you are
informed that a unique name must be entered to carry out the action.
Reenter the command with parameters that specify one unique job.
Utilities 2-81
ctmldnrs
ctmldnrs creates and loads the Manual Conditions file. This file contains
prerequisite conditions that are required by jobs in the Active Jobs file
but which will not be available (that is, added to the
Conditions/Resources table) unless there is some form of manual
intervention.
For example:
Utilities 2-83
Table 2-31 ctmldnrs – Creating a Manual Conditions File
Parameter Description
ADDMODE • YES – When the new Manual Conditions file is created,
conditions from the previous file are retained in the new
file.
• NO – The Manual Conditions file is recreated and all
previous conditions are deleted. Default.
OUTPUT Output file to be created. If this parameter is not specified,
the default file is <controlm_user_dir>/ctmldnrs.dat.
<Filename> Full path name of the output file to be created.
IGNOREIN All conditions that satisfy the specified condition name are
ignored when the file is created.
IGNOREOUT References to conditions that satisfy a condition name that
is specified in Out Conditions job processing parameters
are ignored by the algorithm that builds the file.
IGNORECODES References to conditions that satisfy a condition name that
is specified in DO COND job processing parameters are
ignored by the algorithm that builds the file.
<Condition Name of the prerequisite condition. The condition name
Name> can include the mask character ∗ to represent any number
of characters (including no characters). In this instance,
the condition name must be enclosed in quotation marks
(for example, “LVL ∗”). Specify “∗” by itself to include all
existing conditions.
Note
Multiple IGNOREx parameters can be included in the command in any
order.
Parameter Description
<Filename> Path name of the input Manual Conditions file. If this
parameter is not specified, the default input file is
<controlm_user_dir>/ctmldnrs.dat.
<Condition Name> All conditions in the input file which satisfy the
specified characters are loaded or listed. Specify “∗” by
itself to load/list all conditions.
Example 1
Example 2
Example 3
The following command loads all conditions from the default input
Manual Conditions file to the Conditions/Resources table:
Utilities 2-85
ctmloadset
Item Description
Total Used Units of the resource currently in use. This parameter
represents the sum of the values specified in the other
two columns of this table (described below).
Used by Units of the resource currently in use by jobs submitted
CONTROL-M by CONTROL-M/Server.
Used by Others Units of the resource currently in use by
non-CONTROL-M jobs.
• Specify the value for Total Used for a resource. ctmloadset subtracts
the value for Used by CONTROL-M from the value you specify
and places the remainder in the field Used by Others.
• Specify the value for Used by Others for a resource. This value is
added to the value Used by CONTROL-M to calculate the value
Total Used for the resource.
Parameter Description
TOTAL Indicates that the load value provided specifies the total usage
of the resource by all jobs (both CONTROL-M jobs and
non-CONTROL-M jobs).
When this option is specified, the utility calculates the usage of
the resource by non-CONTROL-M jobs and updates the table
accordingly.
OTHERS Indicates that the load value provided specifies the units of the
resource used by one or more non-CONTROL-M jobs.
<QR name> Name of the Quantitative resource to update.
<Load Number of units of the resource currently used.
value> -or-
When % is specified, the amount of the resource currently
used, expressed as a percentage of the maximum available
units defined for this Quantitative resource.
Example 1
A node group contains three Agent platforms: diana, jacklin and ruby.
Each platform is defined in the Quantitative Resource table as having
200 units of resource CPU_load, representing the load on the platform’s
CPU.
Utilities 2-87
• Platform diana is used both for CONTROL-M and
non-CONTROL-M jobs. The platform is currently executing a job
submitted by CONTROL-M that uses 75 units of resource
CPU_load.
The Total Used for diana is set to 80% of 200, or 160. Since the usage by
CONTROL-M jobs is currently 75 units, ctmloadset calculates that the
“Other” (non-CONTROL-M usage) is 160 – 75, or 85.
Example 2
Example 3
Example 4
Utilities 2-89
Example 5
The following command specifies that the current total usage of the
Quantitative resource CPU@diana by all jobs is 48 units:
Valid values for <Action> and <Action Option> are listed in Table 2-34.
All other parameters of this utility are described in Table 2-35.
Note
All actions are limited to log entries in the range specified using the time
and date parameters.
Utilities 2-91
Table 2-34 ctmlog – Valid Actions (Part 2 of 2)
Parameter Description
<From Date> Starting and ending dates and times for the range of
<From Time> entries to be scanned by the specified action. Date is
<To Date> specified in yyyymmdd format. Time is specified in
<To Time> hhmm format.
“∗” Asterisk enclosed in quotation marks. Scan all entries in
the CONTROL-M log (without regard to date or time).
<Output> Full path name to which the report should be sent
(optional). If this parameter is not specified, the output
is routed to the default output device. This parameter is
not applicable for the delete action.
<Report Width> Width (in columns) of the report to generate. Specify a
number in the range of 80 – 132 (default is 80). This
parameter can only be specified if the Output
parameter is specified.
Example 2
Utilities 2-93
ctmordck
Column Description
TB Whether or not the owner of the User Daily job is authorized
to order the Scheduling table of the job listed.
FL Whether or not the owner of the User Daily job is authorized
to execute the script file of the job listed.
UA Whether or not the owner of the User Daily job is authorized
to order jobs for the owner of the job listed.
Note
This utility can be used non-interactively for non-terminal destinations
(see the description of the <Output> parameter below).
Parameter Description
<User Name> Owner of the User Daily job.
<User Daily> User Daily name.
<Output> Full path name to which the report should be sent. If this
parameter is not specified, the output is routed to the
default output device.
Example
The following command generates a list for user SYSTEM and the User
Daily SYSTEM. The list is directed to the udlist file:
Utilities 2-95
ctmorder
ctmorder orders or forces one or more jobs from a Scheduling table in the
CONTROL-M database.
• Ordered jobs are placed in the Active Jobs file if their scheduling
criteria are met.
• Forced jobs are placed in the Active Jobs file regardless of their
scheduling criteria.
If two jobs with the same name exist in a Scheduling table and you use
the ctmorder utility to force a job with that name, only the first job is
forced.
Note
If the ctmorder utility is running when the New Day procedure begins, it
is automatically suspended until New Day procedure is ended.
Syntax
Note
This short format cannot be used on CONTROL-M/Agents. Use the
second, more explicit format described below.
Note
As of CONTROL-M version 6.0.00, the ctmorder utility can be accessed
using a command line interface only. The interactive interface available
in earlier versions is no longer supported.
Parameter Description
-schedtab Name of the Scheduling table containing the jobs.
-jobname Job name (or mask) of the job(s) to order or force.
Utilities 2-97
Table 2-38 ctmorder – Parameters (Part 2 of 3)
Parameter Description
-odate Date to use as the job’s scheduling date. Specify a date in
yyyymmdd format, or specify the keyword ODAT to use the
current CONTROL-M date.
-force Add the specified jobs to the Active Jobs file regardless of
scheduling criteria. If -force is not specified, jobs are added
to the Active Jobs file only if their scheduling criteria are
satisfied (known as order).
Y Force the specified jobs.
N Order the specified jobs. Default.
-seqno A counter identifying the row number of the job in the
Scheduling table. The first job in each Scheduling table is
numbered 1 and each subsequent job increments the
counter by one. If this parameter is not specified, the first job
in the specified table is ordered.
-ingrouporderid Note: This parameter is relevant only for jobs in a Group
Scheduling table.
<group_order_ID> Order ID of an existing Group
Scheduling table.
last The specified jobs are added to the last
ordered instance of their Group
Scheduling table in the Active Jobs file.
alone The specified jobs are ordered
individually. They are not associated
with any Group Scheduling table.
Note: group_order_ID, last and alone options can only be
used when -force parameter is set to Y.
newg A new group is created and the
specified jobs are ordered to that Group
Scheduling table. Default.
-debug level Activates a debug trace at the specified level.
Valid levels are 0 – 5. Default: 0
Performance is somewhat slower when operating in debug
mode. It is recommended that you activate debug mode only
when requested by Technical Support.
-quiet Suppresses display of the utility output. If specified, no
information messages are displayed during execution of the
command.
Parameter Description
-noduplication Allow jobs to be ordered and added to an existing ordered
Group Scheduling table only if those jobs have not already
been ordered in that instance of the Group Scheduling table.
This parameter can be specified only if last or
<group_order_ID> is specified for the -ingrouporderid
parameter.
Note: This parameter is relevant only for jobs in a Group
Scheduling table.
-autoedit Assigns an AutoEdit variable to a new Group Scheduling
table.
This parameter can be specified only if newg is specified for
the -ingrouporderid parameter.
For more information, see the description of AutoEdit Facility
in the Enterprise Controlstation User Guide. The following
information must be specified for each new AutoEdit
variable.
<variable> Name of the variable.
<expression> Value assigned to the variable.
Note
If neither ORDER nor FORCE is included in the command activating
this utility, the specified jobs are ordered.
Example 1
Example 2
The following command orders all jobs contained in the Scheduling table
ACCT100 whose job name begins with ga. Any jobs placed in the
Active Jobs file will have the date March 15, 2000 as their original
scheduling date:
Utilities 2-99
ctmorder -schedtab ACCT100 -jobname "ga*" \
-odate 20000315 -force y
Example 3
The following command forces all jobs contained in the Scheduling table
ACCT100 whose job name is prodyjob. Any jobs placed in the Active
Jobs file will have the date December 31, 2000 as their original
scheduling date:
Example 4
The following command forces the third job contained in the Group
Scheduling table ACCT200 whose job name parameter consists of
prodyjob. This job is placed in the Active Jobs file and will have the
date December 31, 2000 as its original scheduling date. This job is
added to an active group whose orderid is B2.
Example 5
Utilities 2-101
ctmpasswd
>ctmpasswd
1. Enter the old password for the CONTROL-M account. The system
will prompt you to enter the new password:
2. Enter the new password for the CONTROL-M account. Make sure
that the password consists of at least 6 characters. Note that you will
not see your entry on the screen. The system will then prompt you to
enter the password again:
Note
ctmping can be included in the Watchdog process. See “Watchdog
Facility” on page 1-44 for details.
Parameter Description
-nodeid Host name of the Agent platform to be pinged (tested).
At least one Node ID must be specified for each run of the
ctmping utility. Additional Node IDs can optionally be specified
to enable a single run of this utility to test communication with
more than one Agent platform.
-file Full path name of a file containing a list of Agents to be pinged.
Each line in the specified file contains the hostname or IP
address of an Agent.
Utilities 2-103
Table 2-39 ctmping – Parameters (Part 2 of 2)
Parameter Description
-discover Indicates whether to update the database.
Y – Update the database with information gathered by the
utility.
N – Do not update the database. Default.
-debug Activates a debug trace at the specified level. Valid levels:
0 through 5. Default: 0. Performance is slower when operating
in debug mode. It is recommended that you activate debug
mode only when requested by Technical Support and use the
specified level.
-quiet Suppresses display of utility output.
Example 1
Example 2
To connect and test communication with the Agent jacklin and collect
configuration information needed for the discovery process, specify the
following command:
Example 4
To connect and test communication with the Agent jacklin and generate
a debug trace without displaying the results on screen, specify the
following command:
Only the return code of the utility will indicate if it was successful. The
debug trace information is saved to the following file:
ctm-home\ctm\proclog\ping<PID>.<PID>
Utilities 2-105
ctmpsm
Note
The ctmpsm utility can also be invoked by the Command Line Interface,
as described in “Command Line Invocation” on page 2-115.
Q) Quit
Enter Option:
• Active Jobs File functions provide various views of the Active Jobs
file. Each view displays information about the jobs and provides
options to perform such actions on the jobs as Hold, Free, Delete,
Rerun, Why, Confirm, View or modify job details, and view the
CONTROL-M log.
Perform various tasks using information in the Active Jobs file. These
options are described in Table 2-40 below.
Table 2-40 ctmpsm - Menu Options for Active Jobs File (Part 1 of 2)
Utilities 2-107
Table 2-40 ctmpsm - Menu Options for Active Jobs File (Part 2 of 2)
All Active Jobs file options display the following menu at the bottom of
the screen:
Utilities 2-109
Table 2-41 ctmpsm - Active Jobs File Actions (Part 2 of 2)
72 Order Tables/Jobs Allows you to order Scheduling tables or jobs. You are
prompted to specify the Scheduling table, Job Name
(optional) and Odate for the table or job to order.
Scheduling Tables
-----------------
Table name Daily name Table type
1) supply Quarterly GROUP
2) temp REGULAR
3) inventory GROUP
4) Payroll Monthly GROUP
5) inventory SYSTEM GROUP
6) RE_SYSOUT vitaly REGULAR
Option []:
The options in Table 2-44 are available from the above screen.
Note
If a table that is associated with more than one User daily is modified
using ENTERPRISE/CS and then uploaded to CONTROL-M, that table
is removed from all User dailies except the one that is associated with it
in ENTERPRISE/CS.
Utilities 2-111
Table 2-44 ctmpsm - Options for Scheduling Functions
When the List Jobs # option is selected, output similar to the following
is displayed:
1) Jobname:DAYS_CAL_N, Memname:DAYS_CAL_NONE
2) Jobname:DAYS_30_FE, Memname:DAYS_30_FEB
3) Jobname:DAYS_28_29, Memname:DAYS_28_29_FEB
4) Jobname:NO_CALENDA, Memname:NO_CALENDAR
5) Jobname:DATES_0101, Memname:DATES_0101_0202
6) Jobname:DATES_2902, Memname:DATES_2902
7) Jobname:DAYS_CAL_M, Memname:DAYS_CAL_MINUS
8) Jobname:DAYS_CAL_P, Memname:DAYS_CAL_PLUS
9) Jobname:DAYS_CAL_W, Memname:DAYS_CAL_WITHOUT
10) Jobname:CALENDAR_O, Memname:CALENDAR_ONLY
11) Jobname:wdays_all , Memname:WDAYS_ALL
12) Jobname:wdays_1_2_, Memname:WEEKDAYS_1_2_3
Option []:
The options in Table 2-45 are available from the above screen.
Table 2-45 ctmpsm - Options in the Scheduling Table List Jobs Menu
The ctmpsm utility can display the sysout for a specified order ID and
runcount.
To display the sysout for a given order ID and runcount, invoke the
following command:
Utilities 2-113
Parameter Description
<order ID> The order ID of a job.
<number> A counter incremented by one each time a job is run.
Default: the runcount number of the most recent run of the
specified job.
Examples
To display the most recent sysout of the job whose order ID is 1234,
specify the following command:
To display the second sysout of the job whose order ID is 1234, specify
the following command:
The ctmpsm utility redirects the display of the sysout of a job to the
viewer defined by parameter CTMPSM_VIEWER. This parameter is
specified in the ctm/config.dat file. If no viewer is specified, the more
viewer opens in the active screen.
The format and valid values for each mode of the ctmpsm utility
command line interface are described in Table 2-46.
Mode Description
CHILD Lists dependent jobs with IN conditions that are created by the job whose order
ID is specified in this command.
Syntax:
ctmpsm -CHILD <order_ID> [<tasktype>]
order_ID Identifies the “parent” job.
Utilities 2-115
Mode Description
LISTALL Lists jobs in the Active Jobs file. The list can be filtered by time, application, and
member name. The list can be sorted by order ID or job name.
Syntax:
ctmpsm -LISTALL [TIME|APPLICATION|MEMNAME|ALL|ALLFIELDS] [-
SORT {ORDERID|JOBNAME}]
In addition to the order ID and the job name, one of the following fields can also
be included in the LISTALL output:
TIME _ Time execution started and ended.
APPLICATION _ Application to which the job belongs.
MEMNAME _ Member name for the job.
ALL – Includes ODAT and TIME fields.
ALLFIELDS – Includes ODAT, MEMNAME, and APPLICATION fields.
–SORT indicates the order in which the jobs should be listed. Valid orders are:
ORDERID, and JOBNAME.
LISTJOB List in Active Jobs file with a specified status. Jobs can be restricted by status:
OK, NOTOK, executing, cyclic, waiting for the end of a time interval, waiting for
confirmation.
–SORT indicates the order in which the jobs should be listed. Valid orders are:
ORDERID, and JOBNAME.
LISTGROUP Lists jobs in the specified group that are associated with the specified
application.
ctmpsm -LISTGROUP <application> <group>
Wildcards can used as part of the table name for this option.
* represents any number of characters.
? represents any single character.
-UPDATE Updates the User Daily name for a specific Scheduling table.
-ADD Adds a Scheduling table to the CONTROL-M database. The
Table name and User Daily name must be specified when
this option is used.
-DUDAILY Removes an instance of a scheduling table from the
CONTROL-M database.
• If the specified instance is the only instance of the table
(that is, that table is ordered by only one user daily), the
scheduling table and all its associated jobs are deleted.
• If the specified instance is not the only instance of the
table, then only the specified instance is removed from the
CONTROL-M database.
-REMOVE Deletes a specific Scheduling table and all its associated
jobs.
-LISTJOBS Lists jobs in a Scheduling table.
Utilities 2-117
Mode Description
LISTSYSOUT List the sysouts for an order ID. The list can be restricted by runcount number.
Syntax:
ctmpsm -LISTSYSOUT <order_ID> [SYSOUTNUMBER {<number>|ALL}]
order_ID Identifies the job whose sysouts are listed.
number Restricts the list to the sysout whose runcount is specified.
If ALL is specified, the output will contain only a list of all
sysouts related to the specified order ID.
LISTDETAILS Lists the details of the job associated with the specified order ID.
Valid syntax is:
LISTDETAILS <orderid>
UPDATEAJF Performs a specified command or updates conditions for a job in the Active Jobs
that is associated with a specified order ID.
Syntax
ctmpsm -UPDATEAJF <order ID> <command>
Where command is one of the following:
• HOLD _ Set a job’s status to HELD.
• FREE _ Free a previously held job.
• DELETE _ Mark a job for deletion.
• UNDELETE _ Undelete a job marked for deletion.
• RERUN _ Rerun a job.
• CONFIRM _ Confirm submission of a job.
• FORCEOK _ Force a job’s status to be OK.
• CONDADDIN <cond> <date> <AND|OR> _ Add the specified IN condition with
the specified date reference. You can include one or more additional IN
conditions by using the AND or OR conjunctional parameter.
• CONDADDOUT <cond> <date> <+|-> _ Add the specified OUT condition with
the specified date reference. Use + to indicate that the condition must be
present. Use - to indicate that the condition must not be present.
• CONDDELIN <cond> _ Delete the specified IN condition.
• CONDDELOUT <cond> _ Delete the specified OUT condition.
Note: Conditions specified using this mode are applied only to the specified
instance of the job in the Active Jobs file. Subsequent orders of that job are not
affected by these changes.
Utilities 2-119
ctmrpln
Format Description
Daily Report Displays jobs in the specified Scheduling table that are
scheduled to run on a specific day. Each job’s Mem Name
(or Job Name), Group and Description parameters are
also displayed.
Monthly Report Displays a table of all days in a specified month and marks
(with an asterisk “∗”) the days of the month on which jobs
in the specified Scheduling table are scheduled to run.
Jobs can be identified either by their Mem Name or Job
Name parameters.
Char Description
∗ The days on which the job is scheduled is indicated by an asterisk “∗”
Parameter Description
<Report_type> Specify one of the following values:
DM (or Creates a daily report, identifying each job by
D) its Mem Name parameter.
DJ Creates a daily report, identifying each job by
its Job Name parameter.
MM (or Creates a monthly report, identifying each job
M) by its Mem Name parameter.
MJ Creates a monthly report, identifying each job
by its Job Name parameter.
Y Creates a year report.
<Calendar> Specify one of the following values:
Y Creates the report using the calendar
specified in the job’s scheduling parameters.
N Creates the report ignoring the calendar
specified in the job’s scheduling parameters.
<Name> Creates the report using a calendar whose
name you specify (ignores the calendar
specified in the job’s scheduling parameters, if
any). Use this option to see the effect another
calendar would have on the schedule.
Utilities 2-121
Table 2-48 ctmrpln – Parameters (Part 2 of 2)
Parameter Description
<Schedtab> Name of the Scheduling table on which to base the report.
The Scheduling table name can include the following
mask characters:
* Represents any number of characters
(including no characters). Specify * by itself to
include all Scheduling tables. Any parameter
including * should be enclosed in quotation
marks.
? Represents any single character.
<Jobname> Contents of the job processing parameter Job Name of
the job or jobs to include in the report. The Job Name can
include mask characters (see <Schedtab> above). Specify
* by itself to include all jobs in the Scheduling table.
<Date> Date for the report:
• For daily reports: A date in yyyymmdd format.
• For monthly reports: A month in yyyymm format.
• For yearly reports: A year in yyyy or yy format.
Note: The ctmrpln utility supports only years from 1972 to
2037.
<Output> Full path name to which the report should be sent
(optional). If this parameter is not specified, the output is
routed to the default output device.
Example 1
Example 3
Utilities 2-123
ctmruninf
ctmruninf displays runtime data from the Statistical Details table of the
CONTROL-M database. An option is available to delete data from this
table. The jobs scanned for both options can be limited to a range of
dates as described below.
Note
Statistical data is only accumulated when the CONTROL-M system
parameter Statistics is set to Y.
The parameters for the above commands are described in Table 2-49.
Parameter Description
-list Displays data from the Statistical Summary table within the
dates specified by the From Date and To Date parameters.
The data listed can be limited with use of the Filter
subparameter (see below).
-delete Deletes data from the Statistical Summary table in the
range specified by the From Date and To Date parameters.
<From Date> Starting date of statistical data to be displayed/deleted.
The date is specified in yyyymmddhhmmss format.
<To Date> Ending date of statistical data to be displayed/deleted. The
date is specified in yyyymmddhhmmss format.
“∗” Asterisk enclosed in quotation marks. Specifies that the
utility should list all statistical data currently available,
without regard to date.
Parameter Description
<Filter> Specify one of the following options and its associated
subparameter or leave blank to display the statistics for all
jobs in the range.
-JOBNAME <jobname>
Identify the job by its Job Name parameter.
-MEMNAME <memname>
Identify the job by its Mem Name parameter.
-MEMLIB <memlib>
Identify jobs by their Me Lib parameter.
-NODEID <nodeid>
Identify jobs by their Node ID parameter (Agent platform).
Each of the subparameters in the filter can include the
following mask characters:
• * — Represents any number of characters (including no
characters). Any parameter including ∗ should be
enclosed in quotation marks (see example below).
• ? — Represents any single character
-total Displays a line that contains the total CPU and elapsed
times for the jobs selected.
Example 1
The following command displays runtime data for the period January 21,
2000 through January 25, 2000 (assuming that this data is available):
Utilities 2-125
Example 2
The following command causes the utility to display and total runtime
data for all jobs on Agent platform diana.
Example 3
The following command deletes the statistical data for January 31, 2000
Parameter Description
<Order_ID>a Order ID of a job, as displayed in the Job Details window
in ENTERPRISE/CS. The Order ID associates the
message with a specific job in the Active Network.
<Node_ID> Node ID of the agent platform. This parameter is used for
messages whose destination is either a user in the data
center or a user defined in the Shout Destination table. If
-ORDERID is also specified, this Node_ID will overwrite
the Node ID specified for the job with that Order ID.
<Destination> Name of a user in the data center or a valid destination
name in the Shout Destination table. Shout messages can
be sent to multiple destinations in the same command.
<Message_text> Free text to be sent to the destination. If the text is more
than one word, it must be enclosed in quotation marks.
Multiple messages can be sent in the same command.
<{R|U|V}> One letter character indicating the urgency of the
message where:
R Regular (Default)
U Urgent
V Very urgent
If this parameter is not specified, the urgency of the
message is Regular.
Utilities 2-127
Each parameter name can be shortened to the minimum number of letters
required to identify the parameter. For example: -ORDERID can be
shortened to -O.
Example 1
The following command sends the message “File not found” to the
Alerts window in ENTERPRISE/CS and associates it with a job whose
Order ID is 1234:
Example 2
Example 3
The following illustrates the use of the ctmshout utility in a job script
command to send the Shout message “Job started” to the Alerts window
in ENTERPRISE/CS.
The job processing definition for a certain job contains the following
AutoEdit Assignment parameter:
%%PARM1 = %%ORDERID
The script used to execute the job contains the following command:
ctmshtb sets the active Shout Destination table. The Shout Destination
table associates physical output destinations with logical destination
names specified in Shout and Do Shout statements in job processing
definitions. For more information, refer to “Shout Destination Tables” in
Chapter 1, Overview.
Activation of this utility changes the active Shout Destination table to the
table specified.
You can add, delete and modify Shout Destination tables using the
ctmsys utility, described earlier in this chapter. The ctmsys utility can
also be used to specify the active Shout Destination table interactively.
ctmshtb <Table>
Note
By defining CONTROL-M jobs that execute the ctmshtb utility at
specified times, the active Shout Destination table designation can be
changed automatically according to the schedule that suits your
installation.
Example
The following command sets the current active Shout Destination table
designation to SHIFTMAN:
ctmshtb SHIFTMAN
Utilities 2-129
ctmstats
Note
Statistical data is only accumulated when the CONTROL-M system
parameter Statistics is set to Y. For more information, see “System
Parameters” on page 5-3.
Parameter Description
Parameter Description
Example 1
The following command displays statistical data for the period January
21, 1999 through January 25, 1999 (assuming that this data is available):
Utilities 2-131
TIMESTAMP JOBNAME NODEID MEMNAME MEMLIB AVG CPU AVG ELAPSED
-------------- ---------- ------------ ---------- -------------- ------- -----------
19990122141214 acct12 diana pgmacct prod.acct.pgm 0.19 233.15
19990122032025 gen786 diana genx prod.general 0.12 6.12
19990121123111 acct14 diana pgmacct prod.acct.pgm 0.05 170.45
19990121113512 acct15 diana pgmacct prod.acct.pgm 0.14 145.23
Example 2
The following command displays statistical data for all jobs on Agent
platform diana:
Example 3
The following command deletes the statistical data for January 31, 1999:
Variable Description
<order id> The Order ID of a job waiting in the Active Jobs file (as
displayed in the Job Details window of ENTERPRISE/CS).
The Order ID displayed in ENTERPRISE/CS is a base 36
number. If you want to specify the Order ID here as a base
10 number, precede the number with an asterisk, and
enclose it in quotation marks (for example,“∗1234”).
Use “0” to indicate no specific Order ID.
<autoedit string> The AutoEdit variable or string enclosed in quotes.
Examples
Utilities 2-133
ctmsuspend
ctmsuspend {-s|-r}
Table 2-53 cmtsuspend – Options
Var Description
Example
ctmsuspend -r
ctmsys
+------------------------------------------------+
| CONTROL-M SYSTEM MAINTENANCE UTILITY |
| Main Menu |
+------------------------------------------------+
q) Quit
Enter option:
The options in this menu and in all other menus provided by this utility
can be selected by typing the option number or command letter and
pressing Enter.
Utilities 2-135
Shout Destination Tables
1) Create/Modify a Table
2) Set Active Table
3) List Tables
4) Delete Table
Enter option:
Step 2 Specify the name of the table to be created or modified (or press
<Enter> to accept the default).
If the name you specify is not the name of an existing Shout Destination
table, a new table will be created with the specified name.
Enter option:
Utilities 2-137
The following fields in the table are displayed:
Item Description
# Entry number in the table.
Destination Type One-letter code indicating the type of recipient:
U—Specific user. If the user is not logged onto the data
center when the Shout message is sent, the message is
placed in the user’s mail.
M—User’s mail.
T—Specific terminal or file.
O—System console.
L—CONTROL-M log.
E—Alert window of ENTERPRISE/CS.
P—Program which will perform the Shout operation.
Address Type One-letter code indicating whether the destination is on
the Server (S) or Agent (A) platform.
Logical Name Name used in the Shout or Do Shout parameter of the
job processing definition to identify the recipient of the
Shout message.
Physical Name For Destination Types U and M, name of a user in the
data center.
For Destination Type T, terminal ID or full path name
(max. 96 characters) of a file. If the file exists, the
message will be appended to the end of the file.
For Destination Type P, the full path name of the program
file/script which will perform the Shout operation.
For Destination Types O, L and E, no physical name is
specified, as each of these is a unique destination.
1. Specify n.
Logical Name:
Physical Name:
Dest Type:
Address Type:
Physical Name:
Utilities 2-139
2. Specify a new physical name for the entry. The table is redisplayed
with the modified entry.
2. Specify the name of the table to set as the active Shout Destination
table.
Note
To specify the active Shout Destination table via a batch job, run the
ctmshtb utility, described earlier in this chapter.
Utilities 2-141
To delete an existing Shout Destination table by name:
Note
It is not possible to delete the active Shout Destination table.
System Parameters
Note
These parameters are described in Chapter 5, “Customization
Parameters.”
The first group of parameters (and their current values) is displayed. See
Figure 2-7.
n) Next Page
s) Save and Return to Main Menu
c) Cancel
Utilities 2-143
Figure 2-8 CONTROL-M System Parameters (Page 2)
p) Previous Page
s) Save and Return to Main Menu
c) Cancel
ctmudchk checks whether all the jobs which should have been ordered by
a User Daily job are in the Active Jobs file. This utility facilitates
recovery from the interruption of a User Daily job.
When using the ctmudchk utility, the New Day procedure must not be
running (that is, the status of the data center in the Communication Status
window of ENTERPRISE/CS must not be “Formatting AJF”).
Parameter Description
-DAILY Name of the User Daily to be checked.
-ACTION Indicates whether jobs that are missing from the
Active Jobs file should be listed or ordered.
The following values can be specified for this
parameter:
LIST Lists the job name and the name of
the scheduling table for each
missing job.
ORDER Orders the missing jobs.
-FILE Indicates the path name for the output of the
ctmudchk utility. This parameter is required only if
LIST is specified for the ACTION parameter.
Example 1
Use the following command to check the Active Jobs file for jobs which
are ordered by the User Daily whose name is payroll. The Job Name and
Scheduling table are listed for each job that is not in the Active Jobs file.
Utilities 2-145
Example 2
Use the following command to check the Active Jobs file for jobs which
are ordered by the User Daily whose name is admin1. The utility orders
each job that is not in the Active Jobs file.
Return Codes
When using the ctmudlst utility, the New Day procedure must not be
running (that is, the status of the data center in the Communication Status
window of ENTERPRISE/CS must not be “Formatting AJF”).
Parameter Description
LIST Lists the User Daily last run date.
UPDATE Updates the User Daily last run date.
<User Daily> User Daily name.
“∗” Asterisk enclosed in quotation marks. Displays a list of all
User Daily names and corresponding last run dates.
<Date> Requested value for the last running date in yyyymmdd
format.
Example 1
The following command lists the last run date for User Daily payroll:
Utilities 2-147
Example 2
The following command changes the last run date for User Daily
inventory to Aug. 10, 1998:
The utility orders all Scheduling tables associated with a specific User
Daily name. Each job in the ordered Scheduling tables whose Scheduling
criteria are satisfied is placed in the Active Jobs file.
See “User Daily Jobs” on page 1-18, for more information and examples.
where <User Daily> is a User Daily name associated with one or more
Scheduling tables. This parameter is case-sensitive.
Example
The following command orders all Scheduling tables whose User Daily
parameter is prod:
ctmudly prod
Utilities 2-149
ctmvar
Special notes:
Syntax
Parameter Description
-action Indicates the action to be performed on the specified AutoEdit
variable. The possible actions are:
LOAD Loads AutoEdit variables from a file. When this
option is used, parameter -filename is required.
The format for each variable in the specified file is:
%%[\<gptble>[\<job>]]\<varname>=<expression>
• If the variable does not exist in the data center or
the specified group scheduling table or job, it is
created.
• If the variable already exists, it is updated with
the specified value.
SET Defines a new AutoEdit variable. When this option
is used, parameters -var and -varexpr are
required.
• If the variable does not exist in the data center or
the specified group scheduling table or job, it is
created.
• If the variable already exists, it is updated with
the specified value.
DELETE Deletes an AutoEdit variable. When this option is
used, the -var parameter is mandatory.
LIST Displays all Global AutoEdit variables for the data
center or all variables for the specified group
scheduling table specified in the -var parameter.
Example 1:
ctmvar -action LIST
Displays all Global AutoEdit variables for the data
center.
Example 2:
ctmvar -action LIST -var “%%\PAYROLL”
Displays all AutoEdit variables that are global for
the PAYROLL group scheduling table.
Utilities 2-151
Table 2-57 ctmvar – Parameters (Part 2 of 3)
Parameter Description
-var Name and location of the AutoEdit variable that the specified
action should be applied to.
The valid format for this parameter depends on the type of
variable being handled.
• For a variable that is global for an entire data center, valid
format is:
-var “%%\<var_name>”
• For a variable that is global for all jobs in a Group
Scheduling table, valid format is:
-var “%%\<group_table_name>\<var_name>”
• For variable in a specific job in a group scheduling table,
valid format is:
-var “%%\<group_table_name>\<jobname>\<var_name>”
Notes:
This parameter cannot be specified together with -action
LOAD.
For more information about AutoEdit variables, see the
AutoEdit chapter in the Enterprise Controlstation User Guide.
-varexpr Value to be assigned to the specified AutoEdit variable. The
specified value can be:
• a string (embedded in quotes)
• an integer (a numeric value)
• an AutoEdit expression (for example, with an AutoEdit
function)
• another (existing) global variable.
This parameter cannot be specified together with
-action LOAD.
For more information, see the AutoEdit chapter in the
Enterprise Controlstation User Guide.
-filename File containing the list of AutoEdit variables. The value
specified for this parameter must be a valid path and filename.
This parameter is only valid when specified together with -
action LOAD.
The syntax for each line in the specified file is
%%[\<gptble>[\<job>]]\<varname>=<expression>
Note: The entire pathname must be specified in this
parameter.
Parameter Description
-quiet Suppresses the display of the results.
-debug Sets a debug level for the utility. This parameter is used for
maintenance and troubleshooting purposes. The level, a
numeric value from 0 to 5, must be used only if requested and
specified by Technical Support.
Note: Performance is somewhat slower and requires a larger
number of resources when operating in debug mode. It is
recommended that you activate debug mode only when
absolutely necessary and revert to normal mode as soon as
possible.
Examples
Utilities 2-153
ctmwhy
ctmwhy displays a report stating why a job waiting in the Active Jobs
file is not being submitted for execution. This utility is equivalent to the
Why option available from the Job Node menu in the Enterprise
Controlstation window.
where <Order ID> is the Order ID of a job waiting in the Active Jobs
file (as displayed in the Job Details window of ENTERPRISE/CS).
Note
The Order ID as displayed in the Job Details window is a base 36
number. If you wish to specify the Order ID here as a base 10 number,
precede the number with an asterisk, and enclose it in quotation marks
(for example, “ ∗1234”).
Example 1
Specify the following command to determine why the job with Order ID
A4X is not being submitted for execution:
ctmwhy A4X
Example 2
Specify the following command to determine why the job with Order
ID 11 is not being submitted for execution. The Order ID in this example
is expressed as a base 10 number:
ctmwhy "∗37"
# Field Description
1 SEVERITY Severity of the alert. Possible values are:
• R Regular
• U Urgent
• V Very urgent
2 SEND TIME Time/date that the alert was issued (format
yyyymmddhhmmss).
3 USER NAME Name of the CONTROL-M user who invoked the
utility.
4 MSG TEXT Full text of the alert.
Parameter Description
-host_name Host name or IP address of the machine containing the
Network Management application.
-severity Severity of the alert (R, U, V)
-message Message to be sent.
Utilities 2-155
Special customization is required to support SNMP traps issued by
CONTROL-M:
• The following entry must be added to the /etc/services/ file (if not
already present):
snmp-trap 162/udp # snmp monitor trap port
ecactltb [<Output>]
<Output> is the full path name to which the report should be sent
(optional). If this parameter is not specified, the output is routed to the
default output device.
Example
ecactltb /ctm/user1/rprt.txt
Utilities 2-157
ecaqrtab
Note
If the resource name is longer than 20 characters, the resource is not
created.
ecaqrtab {LIST|ADD|DELETE|UPDATE}[<QR_Name>][<Max>][<Output>]
Parameter Description
LIST Displays the status of the specified Quantitative resources.
This information is also available from ENTERPRISE/CS in
the Quantitative Resources window.
ADD Defines a new Quantitative resource and sets the maximum
availability for the resource.
DELETE Deletes an existing Quantitative resource.
UPDATE Changes the maximum availability for an existing Quantitative
resource.
<QR_Name> Name of the Quantitative resource.
For the LIST option, the QR_Name can include mask
character ∗ to indicate any number of characters (including no
characters). If a mask character is specified, the name must
be enclosed in quotation marks (for example, “LVL∗”). You
can specify “∗” by itself to include all existing Quantitative
resources (default).
Parameter Description
<Max> Specifies the maximum availability for the specified resource.
This parameter should only be specified with the ADD and
UPDATE options
<Output> This parameter can only be specified for the LIST option. It
indicates the full path name to which the report should be
sent (optional). If this parameter is not specified, the output is
routed to the default output device.
ecaqrtab LIST[<QR_Name>][<Output>]
Table 2-61 describes the fields that are displayed for each Quantitative
resource that matches the specified resource name or mask.
Parameter Description
QR name Quantitative resource name (with @<Node ID> where
applicable).
Type For future use.
Max Avail Maximum number of units of this resource in the platform.
Reserved Number of units of the resource reserved for critical-path jobs.
Used Number of units of the resource currently in use or reserved. If
the ctmloadset utility is used in the data center, this number
can include usage of the resource by non-CONTROL-M jobs.
Free Number of units of the resource currently available for use.
This represents the difference between Max Avail and Used.
Example
Utilities 2-159
ecaqrtab LIST “*” or ecaqrtab LIST
+--------------------------------------------------------------+
Resource Name Type Max-Avail Reserved Used Free
+--------------------------------------------------------------+
CPU@linda L 10 0 10 0
CPU@linda L 20 0 15 5
MEM@diana L 10 0 0 10
Tape2 L 12 2 2 10
Example
Example
The following command specifies that the new maximum availability for
the existing Quantitative resource linerje2 on platform diana is 12 units:
Utilities 2-161
BMC Software, Inc., Confidential and Proprietary Information
Security 3
• Ordering a job.
• Commands affecting jobs in the Active Jobs file (for example, Hold,
Confirm, Rerun).
Security 3-1
Level of Application Security
CONTROL-M provides the following levels of application security for
users not explicitly defined in the CONTROL-M security database:
Overview
• Entities Authorization
User actions performed on various CONTROL-M entities (for
example, prerequisite conditions).
Security 3-3
Scheduling Table Authorization
Action Description
Delete Deletes an entire Scheduling table or a job contained in the
table.
Read Downloads a Scheduling table from the Server platform to the
ENTERPRISE/CS workstation.
Update Uploads a Scheduling table from the ENTERPRISE/CS
workstation to the Server platform.
OrderTable Orders or forces an entire Scheduling table or a job in the
table. For more information about when this authorization is
checked, see “Ordering a Scheduling Table” below.
Delete Deletes an entire Scheduling table or a job contained in the
table.
Note
In addition to the security checks described above, CONTROL-M checks
authorization for each job in the Scheduling table, as described in
“Active Jobs File Authorization” below.
Note
CONTROL-M requires that a user be assigned authorization to perform
actions even if that user is specified in the job’s Owner parameter.
Action Authorization
Order Order a job.
Force Force a job.
Rerun Select the Rerun option from the job Details menu.
Hold Select the Hold/Free option from the job Details menu.
Confirm Select the Confirm option from the job Details menu.
Delete Select the Delete option from the job Details menu.
Why Select the Why option from the job Details menu.
Security 3-5
Table 3-3 Active Jobs File Authorization (Part 2 of 2)
Action Authorization
Sysout Select the Sysout option from the job Details menu.
Log Select the Log option from the job Details menu.
Statistics Select the Statistics option from the job Details menu.
Zoom & Save Select the Zoom & Save option from the job Details menu.
Terminate Job Select the Kill job option from the job Details menu.
Note
When performing Order or Force actions on an entire table,
CONTROL-M checks Scheduling table authorizations, as described in
“Scheduling Table Authorization” on page 3-21, in addition to the
security checks described above.
For the other actions listed above (Rerun, Hold, Confirm, Delete, Why,
Sysout, Log, Statistics, Zoom-and-Save, Kill job), CONTROL-M
checks that the ENTERPRISE/CS user performing the action is
authorized to perform the specific action with regard to the job’s owner.
Entities Authorization
Security 3-7
Passing Global Conditions Between Data Centers
Note
The owner of each job processing definition must be defined as a user on
the Agent platform. Otherwise, CONTROL-M will not order or execute
the job.
Who Authorization
User Daily job’s owner Scheduling Table authorization: OrderTable for
the Scheduling table containing the jobs.
Owner of each job ordered Agent platform operating system authorization
by the User Daily job to execute the job script file.
Author of each job ordered Active Jobs File authorization: Order for the
owner of the job.
Table 3-6 Authorization – job submission from the New Day procedure
Who Authorization
CONTROL-M account Scheduling Table authorization: OrderTable for
owner the Scheduling table containing the jobs.
Owner of each job ordered Agent platform operating system authorization
by the User Daily job to execute the job script file.
Author of each job ordered Active Jobs File authorization: Order for the
owner of the job.
Who Authorization
ENTERPRISE/CS user Scheduling Table authorization: OrderTable for
the Scheduling table containing the jobs.
Owner of each job ordered Agent platform operating system authorization
or forced to execute the job script file.
Author of each job ordered Active Jobs File authorization to order/force:
or forced Order/Force for the owner of the job.
Security 3-9
Table 3-8 Authorization – Ordering/Forcing a job from ENTERPRISE/CS
Who Authorization
ENTERPRISE/CS user Scheduling Table authorization: OrderTable for
the Scheduling table containing the job.
Active Jobs File authorization to order/force a
job: Order/Force for the owner of the job.
Agent platform operating system authorization
to execute the job script file.
Owner of each job ordered Agent platform operating system authorization
or forced to execute the job script file.
Author of each job ordered Active Jobs File authorization: Order for the
or forced owner of the job.
Who Authorization
Owner of the job performing Scheduling Table authorization: OrderTable for
the Do Forcejob action Scheduling table containing the job(s) to be
forced.
Active Jobs File authorization: Force for the
owner of the job(s) being forced.
Owner of each job forced Agent platform operating system authorization
to execute the job script file.
Author of each job forced Active Jobs File authorization: Order for the
owner of the job.
Note
Modifications to authorizations by this utility are implemented only after
the utility is exited.
• If there are no authorizations defined for the specific user, the user
inherits the authorizations specified for the group.
Security 3-11
Certain functions of the ctmsec utility can be activated in batch mode
from the command line. For more information, see “Security
Maintenance Utility (Batch Mode)” on page 3-32.
Note
When working with CONTROL-M via the ENTERPRISE/CS
workstation, mask characters are available for all options. Mask
characters * and $ that are used when assigning authorizations in the
CONTROL-M Security database, are translated as mask characters
during runtime security checking. (For example, if User1 is granted full
Scheduling Table authorization for table ACC*, CONTROL-M allows
User1 to update and/or order any table whose name starts with ACC).
Valid mask characters are:
• ctmsec
-or-
+-----------------------------------------------+
| CONTROL-M SECURITY MAINTENANCE UTILITY |
| Main Menu |
+-----------------------------------------------+
1) User Maintenance
2) Group Maintenance
3) Scheduling Table Authorization
4) Active Jobs File Authorization
5) Entities Authorization
q) Quit
Enter option:
User Maintenance
Note
Each ENTERPRISE/CS user who performs actions affecting the
CONTROL-M database or jobs in the Active Jobs file must be defined in
the CONTROL-M Security database when full security is on. In addition,
all other users who invoke CONTROL-M Security utilities must be
defined in the Security database and assigned appropriate privileges.
Select Option 1 from the Security Maintenance Main menu. The User
Maintenance menu is displayed.
Security 3-13
Figure 3-2 User Maintenance Menu
Enter option:
User []:
Description []:
Group []:
User [User1]:
Security 3-15
To modify the Description or Group fields for an existing user:
User/Group [User1]:
User: User1
-----------------------
Modify User Information
1) Description :
2) Group :
s) Save and return to menu
c) Cancel and return to menu
Enter command, or specify item number to modify:
-or-
FROM user:
TO user:
Description []:
Group []:
Security 3-17
Group Maintenance
Select Option 2 from the Security Maintenance Main menu to display the
Group Maintenance menu.
Group Description
Group1 CONTROL-M Group
Group2
Press ENTER to continue:
Groupname []:
Description []:
Group [Group1]:
Group [Group1]:
Security 3-19
Group: Group1
Modify Group Information
-----------------------
1) Description :
s) Save and return to menu
c) Cancel and return to menu
You are prompted to supply a value for the field (maximum length 50
characters). This field is optional and is for documentation purposes
only.
-or-
For more information about the types of authorization that can be granted
using this option, see “Scheduling Table Authorization” on page 3-4.
+--------------------------------------+
| SCHEDULING TABLE AUTHORIZATION |
+--------------------------------------+
User/Group [User1]:
2. Specify the user or group for whom you are defining authorizations.
Security 3-21
Figure 3-4 Scheduling Table Authorization Menu
q) Quit
Enter option:
Table Name:
The Y setting enables authorization for the action (for example, Read), N
disables the authorization, and (D)efault uses the authorization defined
for the user’s group. If the user was previously authorized for this
scheduling table, the user’s current authorizations are displayed;
otherwise, all authorizations are set to N.
-or-
Table Name:
Security 3-23
2. Specify the name of the Scheduling table whose authorizations you
want to delete for this user or group (or press <Enter> to return to
the menu).
The user’s authorizations for this table are deleted from the Security
database, and the Scheduling Table Authorizations menu is
displayed. If the user belongs to a group, authorizations for the
Scheduling Table revert to the authorizations defined for the group.
For more information about the types of authorization that can be granted
using this option, see “Active Jobs File Authorization” on page 3-5.
+--------------------------------------+
| ACTIVE JOBS FILE AUTHORIZATION |
+--------------------------------------+
User/Group[]:
Specify the user or group for whom you are defining authorizations.
q) Quit
Enter option:
To list owners for whom the user has Active Jobs File authorizations:
Owner Node Group Hold Force Del Rerun Log Why Statist Sysout Order Conf Z&S Kill
----- ---------- ---- ----- --- ----- --- --- ------- ------ ----- ---- --- ----
Owner1 Node1 N Y Y Y N N N N Y N N Y
Owner2 Node2 Y Y Y Y Y Y Y Y Y Y N N
To create or modify Active Jobs File authorizations for the specified user:
Owner:
Security 3-25
The following prompt is displayed:
Node Group:
3. Specify the node group of the Agents where the job can be scheduled
to run (maximum 30 characters, case-sensitive).
Note
A value must be specified for the Node Group prompt. (Null is not a
valid value.) To indicate all node groups, specify an asterisk (*) for this
prompt.
1) Order :Y
2) Force :Y
3) Rerun :Y
4) Hold :N
5) Confirm :N
6) Delete :Y
7) Why :N
8) Sysout :N
9) Log :N
10) Statistics :N
11) Zoom & Save :N
12) Kill job :N
s) Save and return to menu
c) Cancel and return to menu
-or-
Owner:
2. Specify the name of the Job owner for whom authorizations should
be deleted (or press <Enter> to return to the menu).
Node Group:
3. Specify the name of the Node group of the Job owner for whom
authorizations should be deleted (or press <Enter> to return to the
menu).
The user authorizations for this owner on the Node group are deleted
from the Security database, and the Active Jobs File Authorization
menu is displayed.
Security 3-27
Entities Authorization
For more information about the types of authorization that can be granted
using this option, see “Entities Authorization” on page 3-7.
+----------------------------------------+
| CONTROL-M ENTITIES AUTHORIZATION |
+----------------------------------------+
User/Group [User1]:
2. Specify the user or group for whom you are defining authorizations.
q) Quit
Enter option:
To list Entity categories for which the user or group has authorizations:
Security 3-29
To create or modify Entity authorizations for the specified user or group:
Categories
----------
1) CALENDAR
2) LOG
3) QUANTITATIVE RESOURCE
4) CONDITION
5) CONTROL RESOURCE
q) Quit
Category number:
-or-
Categories
----------
1) CALENDAR
2) LOG
3) QUANTITATIVE RESOURCE
4) CONDITION
5) CONTROL RESOURCE
q) Quit
Category number:
The user or group’s authorizations for this category are deleted from
the Security database and the Entities Authorizations menu is
displayed.
Security 3-31
Security Maintenance Utility (Batch Mode)
Certain ctmsec Security Maintenance utility functions can be activated in
batch mode. These functions include listing, updating, and deleting
entries in the CONTROL-M Security database. These functions are
described in “Security Maintenance Utility (Interactive Mode)” on page
3-11.
User Authorization
The user authorization options of the ctmsec command are used to list,
update, delete, and copy users in the CONTROL-M Security database.
Note
If the user in the commands listed above is a CONTROL-M/Agent user,
then the <user> format is <username@node_id>.
Note
If the user in the commands listed above is a CONTROL-M/Agent user,
then the <user> format is <username@node_id>.
Security 3-33
Active Jobs File Authorization
The Active Jobs File authorization options of the ctmsec command are
used to assign authorizations to users and groups to perform actions on
jobs in the Active Jobs file.
Note
If the user in the commands listed above is a CONTROL-M/Agent user,
then the <user> format is <username@node_id>.
Entities Authorization
Note
If the user in the commands listed above is a CONTROL-M/Agent user,
then the <user> format is <username@node_id>.
Note
The file created using the EXPORT option of the ctmsec utility, can be
modified before security definitions are imported either back to the same
installation, or to a different CONTROL-M installation. This is different
from the file that is created using the Backup Security Definition Tables
option of the Security Authorization Menu (which cannot be modified).
For more information about exporting CONTROL-M Security Definition
tables, see “Security Authorization Menu” on page 4-29.
Security 3-35
Example
The file created using the -EXPORT option of the ctmsec utility contains
multiple ctmsec commands that describe the various security definitions
in your CONTROL-M installation. If necessary, these ctmsec commands
can be modified before the security definitions are imported either back
to the same installation, or to a different CONTROL-M installation.
To import security definitions execute the script file that was created
using the ctmsec utility.
For Example:
/home/controlm/securedata
Note
This procedure will work only with a file that was created using the
-EXPORT option of the ctmsec utility. If your input is a file created using
the Backup Security Definition Tables option of the Security
Authorization menu, then you must import using the Restore option in
that same menu. for more information, see Table 4-7, “Security
Authorization Menu,” on page 4-29.
ctm_restore_aut <filename>
where <filename> is the full path name of the file created by the
option chosen in step 1.
Note
The security definitions cannot be modified before they are imported to
the version 6.0.03 installation.
Security 3-37
BMC Software, Inc., Confidential and Proprietary Information
Maintenance 4
Maintenance 4-1
Starting/Stopping CONTROL-M Tasks
To start CONTROL-M functions in the data center, the following tasks
must be running on the Server platform:
Note
If CONTROL-M is implemented using an existing SQL Database Server,
starting and stopping the server is the responsibility of the database
administrator and is beyond the scope of this document.
Periodic Maintenance
The following procedures should be performed on a regular basis:
Maintenance 4-3
Checking Available Space in the CONTROL-M Database
You can check the available space in the CONTROL-M database using
the option Check Database in the Database Creation menu (described on
page 4-10).
You can also define a CONTROL-M job that automatically checks the
database on a regular basis and issues a Shout message if a problem is
detected. Such a job would call the script:
<controlm_home>/ctm/scripts/ctmdbcheck
This is the same script used by the Check Database option. Possible
messages generated by this script relating to the amount of available
space in the CONTROL-M database are:
The SQL database server writes a message to a log file when the server is
started or shut down, and when a database error occurs. This file is not
automatically truncated. If not manually truncated, the file will utilize a
large amount of disk space.
For Sybase:
<controlm_path>/sybase/data/errorlog
For Oracle:
<controlm_path>/oracle/admin/<$CONTROLM_DATABASE>/b
dump/alert_<$CONTROLM_DATABASE>.log
Note
In both the above mentioned paths, <controlm_path> is the home
directory of the CONTROL-M account owner.
<controlm_path>/ctm/proclog/
Note
If CONTROL-M/Server is operated in this manner for long time, these
log files will utilize a large amount of disk space. The CONTROL-M
administrator should delete these files when they are no longer needed.
Maintenance 4-5
CONTROL-M Menu System
The CONTROL-M Menu system enables you to access a variety of
functions and utilities used to maintain CONTROL-M.
The CONTROL-M Main menu is the entry point for accessing the
CONTROL-M Menu system.
q - Quit
Maintenance 4-7
CONTROL-M Manager Menu
The CONTROL-M Manager menu is used to start and stop the SQL
database server and CONTROL-M/Server. Selecting CONTROL-M
Main Menu => CONTROL-M Manager displays the following:
Maintenance 4-9
Database Creation Menu
q - Quit
SYBASE=/home/ctm/sybase
CONTROLM_USER=ctrlm
CONTROLM_DATABASE=ctrlm
DSQUERY=CTRLM
DSLISTEN=CTRLM
Build Database Builds a new CONTROL-M database.
CONTROL-M/Server must be shut down before selecting
this option. For a detailed description of the database build
process, see the “Build the Database” step in Chapter 3 of
the CONTROL-M/Server for Unix Installation Guide.
Maintenance 4-11
Table 4-3 Options of the Database Creation Menu
Note
If you are using a dedicated Oracle SQL database server, an additional
option called Archive Mode appears at the beginning of this menu. This
option is described below.
q - Quit
Archive Mode
Activates Oracle archive mode. In this mode, Oracle database logs are
written to a special backup destination when they are full, and before
they are overwritten by new information.
If you specify the same device for each backup, make sure the previous
backup is copied to the appropriate media for archive purposes.
Maintenance 4-13
If you choose to use Archive mode, it should be a choice for long term
use. If this option is activated and deactivated frequently, the archived
logs will not provide useful information for database restoration.
Note
If Archive mode is activated, database transactions may be performed
more slowly and archive files will require more disk space.
Backup Database
Sybase Backup
Enter the name of the backup device. The backup device must be either a
valid device defined in the SQL database, or the full path name of a file
to be created by the backup procedure. Use the option List Backup
Devices (see“List Backup Devices” on page 4-19) to display a list of
valid devices.
Oracle Backup
Step 3 If Archive mode is not active at your site, a Cold backup (described
below) is automatically performed.
You have the choice between two types of Oracle database backup; Hot
or Cold.
Cold Backup
• Can be used to restore the database to the state it was in when the
backup was performed.
Warning
CONTROL-M is automatically shut down when a Cold backup is
performed. After the backup is completed, CONTROL-M will have to be
manually restarted.
Hot Backup
• Can be used to restore the database to the state it was in after the last
completed transaction (the last COMMIT command executed).
Maintenance 4-15
• Requires that the directory you specify exist prior to starting the
backup.
Note
You can perform a Hot backup on a dedicated database. However, you
cannot perform a Hot backup on an existing database.
Enter the directory in which the archive process will store its Control
files.
Restore Database
Sybase Restore
Oracle Restore
Press <Enter> to accept the default directory, or type the name of the
directory in which the backup was saved.
For details about Hot and Cold backups, see Step 3 on page 4-15.
Maintenance 4-17
The restore procedure shuts down both CONTROL-M/Server and the
Oracle database server before performing the restore. After the restore is
completed, the restore procedure starts up only the Oracle database
server. CONTROL-M/Server must to be restarted manually after the
procedure is finished.
Note
If you wish to perform a restore from a Cold backup and Archive mode
is active, deactivate Archive mode (using option 1 of the Database
Maintenance menu) before performing the steps described above.
Warning
If you attempt to restore a dedicated Oracle database using the ctmdbrst
utility without previously having backed up the database, the database
will become unavailable. To access the database, enter the following
procedure from the CONTROL-M home directory command line:
svrmgrl
connect internal
dalter database mount
altere database open
exit
2. Use the option Database Creation => Build Database to rebuild the
database.
3. Use the Restore Database option to load the data into the new
database.
Note
This menu option is relevant only for sites using a Sybase database
server.
Note
This menu option is relevant only for sites using a Sybase database
server.
Adds a backup device to the list of devices available for backing up the
CONTROL-M database.
Note
This menu option is relevant only for sites using a Sybase database
server.
Maintenance 4-19
Table 4-4 Logical Device Description
Variable Description
<dev_logical_name> Logical name of the device.
{disk | tape} Disk or tape device.
<device_name> Path and name of the device.
<size_in_MB> Size of the device (optional).
This device can be either a disk file or a tape drive. (Backups to disk files
are faster and do not require operator intervention.)
Example
Note
This menu option is relevant only for sites using a Sybase database
server.
Deletes a device from the list of backup devices. The following prompt is
displayed:
Enter <dev_logical_name>:
Enter the logical name of the device to delete from the list. Upon
completion of the process, the following message is displayed:
Table 4-5 describes the menu options that can be used to extend the size
of different segments of the CONTROL-M database. These options can
be used while CONTROL-M/Server is active or when it is shut down.
See “Checking Available Space in the CONTROL-M Database” on page
4-4 for additional information.
Option Description
Extend Database Size Extends the data segment of the database.
Extend Temporary Extends the temporary storage area of the
Database Size database (tempdb).
Extend Database Log Size Extends the log segment of the database
(Sybase).
Extend Rollback Extends the log segment of the database
Tablespace Size (Oracle).
Note
The options in Table 4-5 can be applied only when CONTROL-M/Server
uses the dedicated Sybase Database Server supplied with CONTROL-M.
If CONTROL-M/Server is configured to use an existing (remote) server,
you can use the commands disk init and alter database to extend the
CONTROL-M database. To extend the log segment, the command
sp_logdevice is also used. These commands are described in the Sybase
Commands Reference Manual. Similarly, you can use these commands to
extend the CONTROL-M mirror database.
This option extends the size of the data segment only. The size of the log
segment is not extended.
Maintenance 4-21
1. Select option Extend Database Size from the Database Maintenance
menu. The following prompt is displayed:
For Sybase:
For Oracle:
1 - /disk2/controlm/oracle/oradata/ctrlm/rbs01.dbf
For Sybase:
For Oracle:
For Sybase:
For Oracle:
1 - /disk2/controlm/oracle/oradata/ctrlm/temp01.dbf
3. Supply a full path name or press <Enter> to accept the default. [0]
New Data File is the default in Oracle.
Maintenance 4-23
The file specified must not exist. The local file system where the file
will be located must have enough free space to accommodate the size
specified above. Upon completion of the process, the following
message is displayed:
For Sybase:
For Oracle:
SVRMGR> Connected.
SVRMGR> Statement processed.
SVRMGR> Server Manager complete.
The size of the log segment of the database should be approximately 1/3
of the data segment size.
For Sybase:
For Oracle:
1 - /disk2/controlm/oracle/oradata/ctrlm/rbs01.dbf
3. Supply a full path name or press <Enter> to accept the default. The
file specified must not exist. The local file system where the file will
be located must have enough free space to accommodate the size
specified above.
For Sybase:
For Oracle:
SVRMGR> Connected.
SVRMGR> Statement processed.
SVRMGR> Server Manager complete.
SYBASE=/home/ctm/sybase
CONTROLM_USER=ctrlm
CONTROLM_DATABASE=ctrlm
DSQUERY=CTRLM
DSLISTEN=CTRLM
Maintenance 4-25
Check Database
q - Quit
Option Description
Check Mirroring Indicates whether or not mirroring of the CONTROL-M
Status database is currently enabled.
Initialize Builds the CONTROL-M mirror database from the
Mirroring existing CONTROL-M database and configures
CONTROL-M to maintain the mirror database. This
procedure is described in Chapter 7, “Mirroring and
Failover.” CONTROL-M/Server must be shut down
before selecting this option.
Maintenance 4-27
Table 4-6 Options of the Database Mirroring Menu
Option Description
Disable Discontinues mirroring of the CONTROL-M database (if
Mirroring mirroring was previously initialized). To restore mirroring
after selecting this option, use option Initialize
Mirroring. This option is used in the following
circumstances:
Mirroring is enabled but CONTROL-M cannot be started
because it cannot attach to the mirroring SQL server.
-or-
Mirroring is no longer desired.
Use Mirror Configures CONTROL-M to use the mirror database as
Database its primary database. This option can be used in the
event that there was a failure of the primary
CONTROL-M database and mirroring was active.
CONTROL-M/Server must be shut down before you
select this option.
To resume using the primary database, use the option
Restore CONTROL-M Database from Mirror.
For more information, see Chapter 7, “Mirroring and
Failover.”.
Restore Rebuilds the CONTROL-M database using the mirror
CONTROL-M database. This option is used when there was a failure
Database from of the primary CONTROL-M database and mirroring
Mirror was active. CONTROL-M must be shut down before
selecting this option.
For more information, see Chapter 7, “Mirroring and
Failover.”.
Initialize Saves site specific information about the backup Server
Failover platform. This data is needed to start CONTROL-M on
the backup Server platform in case of failure of the
primary Server.
Start Failover Copies the saved site-specific information about the
backup Server platform to the Mirror database. This
data is needed to start CONTROL-M on the backup
Server using the Mirror database.
Stop Failover Restores the site-specific information about the primary
Server platform to the Mirror database. This data is
used to restore the primary database.
Quit Quits the Mirror Database menu and returns to the
CONTROL-M Main menu.
Option Description
Security Invokes the Security Maintenance utility (ctmsec). This
Maintenance utility is used to define users in the CONTROL-M Security
Utility database and assign authorizations for working with
CONTROL-M. For more information, see “Security
Maintenance Utility (Interactive Mode)” on page 3-11“.
Backup Security Exports Security Definition tables. Specify the full path
Definition name of the file. This function can be run only on the
Tables CONTROL-M/Server platform. A message confirming the
completion of the export to file process is displayed. Press
<Enter> to return to the Security Authorization menu.
Maintenance 4-29
Table 4-7 Security Authorization Menu (Part 2 of 2)
Option Description
Restore Restores Security Definition tables from a file created
Security using the Backup Security Definition Tables option of
Definition this menu. The restored definitions override all existing
Tables Security Definition tables.
Specify the full path name of the file. This function can be
run only on the CONTROL-M/Server platform. A message
confirming the completion of the import is displayed.
Note
The Backup Security Definition Tables and Restore Security
Definition Tables options in this menu can be used only to transfer or
backup existing security definitions.
q - Quit
All the parameters that appear in these menus are described in:
Option Description
Communication and Displays/updates CONTROL-M operational
Operational Parameters and communication parameters. This option is
described below.
System Parameters and Calls the ctmsys utility to view or update
Shout Destination Tables system parameters and Shout Destination
tables. This utility is described in Chapter 2,
“Utilities.”
Default Parameters for Displays/updates the default values of
Communicating With parameters used for communication with
Agent Platforms Agent platforms. When communicating with an
Agent platform, these values are used unless
overridden using the following option. This
option is described below.
Parameters for Displays/updates parameters for
Communicating With communicating with a specific Agent platform.
Specific Agent Platforms This option is used to assign values other than
the default parameter values for a specific
Agent platform. This option is described below.
Quit Quits the Parameter Customization menu and
returns to the CONTROL-M Main menu.
Note
For parameter changes to take effect, you must shut down and restart
CONTROL-M/Server.
Maintenance 4-31
Communication and Operational Parameters
Communication Parameters:
Operational Parameters:
Password:
Maintenance 4-33
For this change will take effect in CONTROL-M, you
will need to re-start CONTROL-M. Use ’shut-ctm’ and
’start-ctm’ to re-start CONTROL-M.
Note
Redefining the Communication Protocol parameter on a Unix Agent
platform requires that you re-customize the CONTROL-M/Agent
installation.
sql
truncate table CMR_STATIS
go
1) Polling Interval:
2) Communication Timeout:
3) Maximum Retries:
4) Retry Interval:
5) Server-to-Agent Port Number:
6) Communication Protocol Version:
Note
Use of this option does not require communication with the Agent
platforms. There is no verification that the specified Agent platform
exists at the time this option is used.
Maintenance 4-35
The following menu is displayed. The current value for each
parameter follows the parameter name:
1) Communication Timeout:
2) Maximum Retries:
3) Retry Interval:
4) Server-to-Agent Port Number:
5) Communication Protocol Version:
6) Check Interval(Available)
3. To exit, specify q.
The Node Group menu is used to maintain and view node groups. Node
groups are used by the CONTROL-M load-balancing function. Selecting
CONTROL-M Main Menu => Node Group displays the following
menu:
q - Quit
Option Description
List All Node Groups Displays a list of all existing node groups.
Edit Node Group Views, creates or modifies a node group. For
details, see the next section.
Delete Node Group Requests the name of an existing node group, and
then deletes the group.
Quit Quits the Node Group menu and returns to the
CONTROL-M Main menu.
This option is used to view, create or modify a node group. When this
option is selected, the following prompt is displayed:
Specify the name for a new node group or specify the name of an
existing node group whose member list you want to view or modify. The
following menu is displayed:
Maintenance 4-37
Edit Node Group Menu
-------------------
q - Quit
View Current Node Displays the node IDs included in the specified node
Group group.
Add Node ID Prompts you for the name of a node ID to add to the
specified group.
Delete Node ID Prompts you for the name of a node ID to delete
from the specified group.
The Agent Status menu is used to view and update the communication
status of Agent platforms. Selecting CONTROL-M Main Menu =>
Agent Status displays the following:
Option Description
List Last Known Status Prompts for the node ID of an Agent platform, and
of Agents Platform then displays the last known status of the platform
(Available, Unavailable or Disabled).
Change Agent Platform Prompts for the node ID of an Agent platform, and
Status to Available then changes the communication status of the
platform to Available.
Change Agent Platform Prompts for the node ID of an Agent platform, and
Status to Disabled then changes the communication status of the
platform to Disabled.
Delete Agent Platform Displays a list of all Agent platforms whose
Status Entry communication status is Disabled, and prompts for
the node ID of the platform you want to delete.
Ping Agent Platform Prompts for the node ID of an Agent platform and
then tests the communication link with the platform.
The response indicates whether the Agent platform
is available or unavailable.
This option cannot be used to test communication
with an Agent platform whose status is Disabled.
Discover Agent Prompts for the node ID of an Agent platform, and
then pings the agent and gathers information about
the Agent platform.
Quit Quits the Agent Status menu and returns to the
CONTROL-M Main menu.
The first four options in the above table do not require communication
with the Agent platforms. They do not verify that the Agent platforms
exist. As a result, the following may occur:
Maintenance 4-39
• If you request the status of a non-existent platform, the default status
of Available is displayed. If the status of the platform has been
changed to Disabled, the platform will appear in the list of platforms
that are Not Available.
Troubleshooting Menu
Troubleshooting Menu
-----------------------------
q - Quit
Option Description
Set Diagnostics Determines the diagnostic level for all CONTROL-M/Server processes or for
Level any specific process. For details, see “Set Diagnostics Level” on page 4-43.
Set Sleep Time Determines the sleep time for all CONTROL-M/Server processes or for any
specific process. For details, see “Set Sleep Time” on page 4-45.
Show Process Displays the status of CONTROL-M/Server processes. For details, see “Show
Flags (prf) Process Flags (prf)” on page 4-46
Option Description
Show All Displays all CONTROL-M/Server processes currently running. For details, see
Processes (shctm) “Show All Processes (shctm)” on page 4-47.
Show Displays the port numbers used by CONTROL-M/Server to communicate with
Communication ENTERPRISE/CS. Information similar to the following is displayed:
Environment ENTERPRISE/CS <-> CONTROL-M communication-port:
----------------------------------------------
INPUT_SPN=2371
OUTPUT_SPN=2370
Maintenance 4-41
Table 4-11 Options of the Troubleshooting Menu (Part 3 of 3)
Option Description
Erase Proclog Erases the contents of the current process log file for all active
Files CONTROL-M/Server processes or for any specific active process.
The following prompt is displayed:
Enter <process-name> [SU,TR,SL,CO,NS,LG,ALL]
Specify the two-character code for a specific process or ALL for all current
process log files. See “Set Diagnostics Level“ earlier in this table for more
information about process log files.
Show Calendar Displays a list of all Calendar names defined in the CONTROL-M database.
Names
Interactive SQL Starts an interactive SQL session that enables you to issue Sybase Database
Commands commands to perform actions in the CONTROL-M database. To end this
session, enter the command: quit.
This option should only be used when requested by Technical Support.
Communication Checks parameters and environmental conditions relevant to communication
Diagnostic Report between the Server platform and a specific Agent platform. This option is
typically used at the request of Technical Support to determine the cause of a
communication problem.
When this option is selected, you are prompted to supply the node ID of an
Agent platform. A diagnostic program is then executed and a report listing the
findings is generated.
Force Download Forces CONTROL-M to start download of the entire Active Jobs file to
ENTERPRISE/CS.
Check directory Checks the current directory and all sub-directories under it for permissions
permissions and displays a report similar to the following:
Code Description
SU Supervisor.
TR Tracker.
SL Selector and submitter.
NS Communication with Agent platforms.
CO Communication gateway.
CD New Day procedure, downloads, updates to the CONTROL-M
database.
CS Communication (user requests from ENTERPRISE/CS).
LG Utilities invoked from Agent platforms.
WD Watchdog process.
RT Inter-process Communication Router
Maintenance 4-43
Table 4-13 describes the parameters that are set when responding to these
prompts.
Parameter Description
<diagnostic-level> The diagnostic level ranges from 0 (no diagnostics) to
5 (highest level of diagnostics). Output from each
process is written to a separate process log file
named:
<controlm_path>/ctm/proclog/<proces
s-name>_LOG.<process-ID>
For example:
~controlm/ctm/proclog/SU_LOG.5609
Example
SL 130
Troubleshooting Report
Maintenance 4-45
8) TR (Tracker) Logs: Y
9) CD (New Day Procedure) Logs: Y
10) CO (Communication Gateway) Logs: Y
11) CS (Communication with ENTERPRISE/CS) Logs: Y
12) LG (Agent Utilities) Logs: Y
13) NS (Communication with Agents) Logs: Y
14) Database Error Log: Y
15) Logs of Failed Jobs within the Last 24 Hours: Y
16) Logs of All Jobs run within the Last 24 Hours: N
To change the information included in the report, enter the number of the
item to change and switch the flag from Y to N. Default options include
all information. Enter “R” to generate the report.
<controlm_path >/ctmtsrpt.<mmddyyhhmm>.tar.Z
where:
When selected, the Show Process Flags option displays the status of
CONTROL-M/Server processes as recorded in the CONTROL-M
database.
Note
The operating system identifier (in the above example, AIX) in the path
of the run module varies according to the type of Unix running on the
Server platform.
Maintenance 4-47
The columns displayed in this list are:
The following additional columns are displayed for the CS process (the
last line in the list above):
Note
Shut down CONTROL-M/Server before selecting this option.
The sleep time setting for CONTROL-M processes can affect the
functionality of CONTROL-M and the performance of your data center.
Sleep time is the length of time that a process lies dormant before
“waking up” to check if any request to perform an action was received.
When modifying certain CONTROL-M process sleep time settings, it is
important to consider the number of jobs that are processing, the job
schedule plan, and the overall load on the machine.
Maintenance 4-49
Table 4-16 Sleep Time Considerations
Sleep Time
Initial Sleep TIme Modification
Process Task Settings Considerations
SU Supervisor 60 Increase: Delay in startup, downloads, and
New Day procedure.
TR Job Tracking 15 Increase: Delay in freeing resources after job
ends and delay in Shout messages. Can be
increased during period of minimal job
processing.
Decrease: Additional CPU resources.
SL Job Selector 30/60 Increase: Delay in Job Submission and Shout
messages for late submission Can be
increased during period of minimal job
processing.
Decrease: Additional CPU resources.
NS Communication 120 No effect.
CO Communication 60 No effect.
CD New Day Procedure; 60 No effect.
Database uploads and
downloads
LG Utilities 360 No effect.
WD Watchdog 30 No effect.
RT Inter-process 60 No effect.
Communication Router
Customization Parameters 5
• System parameters.
• Communication parameters.
• Operational parameters.
• Agent Communication parameters.
• Database parameters.
• Mirroring parameters.
• Performance parameters.
• Configuration parameters.
CONTROL-M/Server ENTERPRISE/CS
Parameter Parameter Default Value
ENTERPRISE/CS TCP/IP Port TCP/IP Port Number 2370
Number
Local IP Host Interface Name TCP/IP Host Name Local hostname as returned by
Unix command hostname.
CONTROL-M/Server CONTROL-M/Agent
Parameter Parameter Default Value
Communication Protocol Communication Protocol TCP
Agent-to-Server Port Number Agent-to-Server Port Number 7005
Server-to-Agent Port Number Server-to-Agent Port Number 7006
Local IP Host Interface Name Authorized No default value. Specify the
CONTROL-M/Servers Interface Name of the machine
where CONTROL-M/Server is
installed.
System Parameters
Parameter Description
DBO Sybase password for the CONTROL-M database owner
Password (6 to 30 characters, alphanumeric). The characters you enter
are not echoed. This password is used by CONTROL-M
processes and utilities to access the CONTROL-M
database. Default: password.
Computer Platform type and model where CONTROL-M/Server is
System installed (for example, HP700).
Operating Operating system running on the Server platform (for
System example, AIX).
CONTROL-M Version number of the CONTROL-M/Server.
Version
Database Internal database scheme version number (not the Sybase
Version version number).
Sysout Log Location where CONTROL-M puts job log (Sysout) files after
Directory * a job’s execution (for example, /usr/controlm/ctm/sysout).
This directory is created during the installation procedure.To
change this location, create the new directory first (using the
Unix mkdir command). This parameter cannot be modified
while CONTROL-M is active.
Executable Location where CONTROL-M/Server expects to find all its
Path executable programs (for example,
/usr/controlm/ctm/exe_Solaris).
Parameter Description
Day Time * Installation start-of-day time used by CONTROL-M. This is
the time at which the CONTROL-M date (Odate) changes
and the New Day procedure is run. Default: +0700.
The Day Time parameter is specified using one of the
following formats:
+hhmm CONTROL-M date is changed at the specified time
after midnight.
-hhmm CONTROL-M date is changed at the specified time
before midnight.
Time is expressed in 24-hour format (for example, 2200 is
equivalent to 10 p.m.). This parameter is commonly set
using the +hhmm format.
Example
+0600 Specifies that the hours between midnight and 6:00
a.m. are considered part of the previous date’s work day
(that is, system date February 10th, 5:59 a.m. is still the
CONTROL-M work day February 9th).
-2200 Specifies that the hours between 10 p.m. and
midnight are considered part of the next date’s work day
(that is, at 10:00 p.m. on system date February 10th, the
CONTROL-M date changes to February 11th).
CONTROL-M Date that CONTROL-M/Server regards as the actual
Date working date (Odate). This date is determined using the
operating system date and the value of the parameter Day
Time (described above). The format is yyyymmdd (for
example, 20000215). The value is initially set to 00000000
by the installation procedure. The value is then updated by
the New Day procedure each time it runs.
Statistics * Whether or not job statistics should be written to the
CONTROL-M database. Valid values are Y (record job
statistics) and N (do not record job statistics). See “Runtime
Statistics” on page 1-28 for more information. Default: Y.
Maximum Number of times the CONTROL-M auto-recovery
Retries * mechanism can reactivate CONTROL-M/Server processes
in case of failure. If this number is exceeded,
CONTROL-M/Server is shut down. Default: 10.
Parameter Description
Start Day of Day of the week on which the work week at your site starts.
the Week * Valid values: 0 (Saturday), 1 (Sunday), …, 6 (Friday). This
parameter affects the usage of the job processing parameter
Weekdays (described in Chapter 5 in the Enterprise
Controlstation User Guide). Default: 2 (Monday).
Active Shout Currently-active Shout Destination table. Default: SYSTEM.
Table *
Full Whether CONTROL-M operates in a restricted or
Security * unrestricted level of security. Valid values:
Y (restricted) and N (unrestricted). Default: N.
• For restricted security (value Y), a user not defined in the
CONTROL-M security database does not have any
application authorizations.
• For unrestricted security (value N), a user not defined in
the CONTROL-M security database is regarded as having
all application authorizations.
A user for whom one or more authorizations have been
assigned in the security database can only perform the
actions for which the user is specifically authorized.
Maximum Maximum number of days that entries are retained in the
Days CONTROL-M log before being deleted by the New Day
Retained by cleanup procedure. Default: 2.
CONTROL-M
Log *
Max.Days to Number of days that job sysout files are retained for jobs
Retain executed by Agent platforms. After this period, all job sysout
Sysout Files * files are deleted by the New Day procedure. Default: 2.
Parameter Description
Ignore New Specifies whether the New Day procedure should ignore
Day prerequisite conditions whose reference date (day and
Conditions * month) matches the CONTROL-M date.
• When this parameter is N, the New Day procedure deletes
any prerequisite condition whose reference date matches
the CONTROL-M date. Default.
• When this parameter is Y, the New Day procedure
accesses a file containing prefixes of prerequisite
conditions that should be ignored (that is, not deleted) by
the daily cleanup procedure. (See “Ignore New Day
Conditions Parameter” below.)
Secure Socket Indicates if the SSL protocol is used for communications:
Layer • Disabled: CONTROL-M/Server does not communicate
using SSL.
• Enabled: CONTROL-M/Server uses only SSL for
communications.
• Inactive: CONTROL-M/Server does not use SSL, but will
communicate initially with a CONTROL-M/Agent using
SSL. The CONTROL-M/Server renegotiates the
communications link with the CONTROL-M/Agent to
non-SSL communications.
SSL support must be installed on CONTROL-M/Server for
the Enabled and Inactive settings to take effect.
After assigning the new CONTROL-M date, the New Day procedure
performs a selective cleanup of prerequisite conditions. By default, any
prerequisite condition whose reference date (month and day) is equal to
the new CONTROL-M date is deleted. This is done to prevent jobs from
being triggered by any prerequisite conditions remaining from the
previous year.
This cleanup function of the New Day procedure can conflict with user
intentions under certain circumstances. For example, if a job processing
definition contains the parameter Out Conditions with the Date field
containing the value Next, a prerequisite condition is created with a
reference date one or more days in the future. This prerequisite condition
would normally be deleted by the New Day procedure before it can be
used to trigger the submission of a job.
The Ignore New Day Conditions parameter specifies whether or not the
New Day procedure should delete all prerequisite conditions whose
reference date (day and month) matches the new CONTROL-M date.
The Ignore New Day Conditions parameter can be modified using the
ctmsys utility.
<home_dir>/ctm/data/dbs_ignrcond.dat
Note
If Ignore New Day Conditions parameter is set to Y but CONTROL-M
cannot locate the Ignore Conditions file, CONTROL-M behaves as if the
parameter is set to N (that is, all prerequisite conditions whose reference
date matches the new CONTROL-M date will be deleted).
Example 1
prq_rs_*rpt
pre_prn
srt_def_?
Communication Parameters
Parameter Description
Local IP Host Host interface name of the TCP/IP network interface card
Interface Name on the Server platform to use for communication with
ENTERPRISE/CS. This is typically the host name of the
Server platform. The default value for this parameter is the
default host interface name defined in the Server platform
operating environment. This parameter can also be
specified by its IP address (for example, 192.123.186.20).
This parameter should be modified only if the Server
platform contains more than one network interface card
(for example, Ethernet and Token-Ring). See additional
information about this parameter below.
Parameter Description
Agent-to-Server CONTROL-M/Server communicates with
Port Number CONTROL-M/Agent via two TCP/IP ports. One port is
used for data flowing from CONTROL-M/Server to
CONTROL-M/Agent. The other port is used for data
flowing in the reverse direction.
This parameter specifies the port used in the Server
platform for receiving data from the Agent platform.
The second port is specified using Server-to-Agent Port
Number parameter (described in See “Parameters for
Communicating With Agent Platforms” on page 5-13.)
Default: 7005.
The value for this parameter must match the value
assigned to Agent-to-Server Port Number parameter on
the Agent platform.
Verify that the port number specified for this parameter is
not used for any other purpose in the Server platform.
The value for this parameter must be a number between
1024 and 65533 inclusive.
Communication Protocol used to communicate with the Agent platforms.
Protocol Specify UDP or TCP. It is recommended that you use TCP
when there are many jobs running simultaneously
reporting to CONTROL-M/Server. The protocol specified
here must be the same as that specified on the Agent
platform. Default: TCP.
arp <host_name>
The system responds with the IP address mapped to the host name on the
local machine.
Note
Even if the same logical host name is specified for these two parameters,
the host name can be mapped to different IP addresses on the Server
platform and the ENTERPRISE/CS workstation. Use the arp command
(see above) to verify that the host name on each machine is mapped to
the same IP address.
You can also ensure that both machines are using the same address by
specifying the actual IP address of the network interface card for each of
these parameters. The IP address specified must be a local address on the
Server platform.
Operational Parameters
Parameter Description
Input Process Socket Port number used for communication between
Communication CONTROL-M processes. The parameter replaces the
Port Number Input Mailbox Key and Output Mailbox Key
parameters in earlier versions of CONTROL-M/Server.
As of CONTROL-M/Server version 6.0.00, all inter-
process communication is handled by the RT process.
Maximum Job Number of job state changes retained by
State Changes CONTROL-M/Server in the event communication with
ENTERPRISE/CS is interrupted. If the number of job
state changes that occur exceeds the value specified for
this parameter, CONTROL-M/Server will initiate a
download when communication with ENTERPRISE/CS
is resumed. Default: 1000.
ENTERPRISE/CS CONTROL-M communicates with Enterprise
TCP/IP Port Controlstation using a pair of consecutive TCP/IP ports
Number (for example, 2370 and 2371). The lower port is used
for data flowing from CONTROL-M to
ENTERPRISE/CS. The higher port is used for data
flowing in the reverse direction. Default: 2370.
This parameter is used to specify the lower of the two
port numbers and must correspond to the value
assigned to field TCP/IP Port Number in the definition of
the CONTROL-M data center in the ENTERPRISE/CS
Data Centers window. Verify that the two port numbers
are not used for any other purpose on the Server
platform. The value for this parameter must be a
number between 1024 and 65533 inclusive.
ENTERPRISE/CS ENTERPRISE/CS version number.
Release Version
Statistics Mode Mode used by the ctmjsa utility to collect summary
statistics. JOBNAME compiles statistics for each
CONTROL-M Job Name and Node ID where the job
was submitted. MEMNAME compiles them for each
CONTROL-M Mem Name/Mem Lib and Node ID.
Default: MEMNAME.
Parameter Description
Minimum Server Minimum number of communication server processes
Processes that the CONTROL-M/Server gateway process will run
concurrently. Default: 1.
Maximum Server Maximum number of communication server processes
Processes that the CONTROL-M/Server gateway process can run
concurrently. Default: 1.
Parameter Description
Polling Interval Time interval (in seconds) between requests from
CONTROL-M/Server for status updates from Agent
platforms that are executing jobs. Specify -1 to disable
polling. Default: 900.
Communication Maximum length of time (in seconds) that
Timeout CONTROL-M/Server should spend attempting to
communicate with an Agent platform before assigning it
the status Unavailable. Default: 120.
During this time, CONTROL-M/Server attempts to
communicate with the Agent platform x times, where x is
the value specified by parameter Maximum Retries.
Example
If the value of Communication Timeout is 120 and
Maximum Retries is 12, CONTROL-M/Server attempts to
communicate with the Agent platform once every 10
seconds (120/12) during the timeout period.
Maximum Number of communication retries to attempt in the period
Retries of time specified before assigning the status Unavailable
to an Agent platform. Default: 12.
Retry Interval Length of time to wait (in seconds) between attempts to
communicate with an Agent platform whose status is
Unavailable. Default: 90.
Server-to-Agent Port number in the Agent platform through which data is
Port Number received from the Server platform. The value assigned to
this parameter must correspond to the value assigned to
the field Server-to-Agent Port Number in the Configuration
file on the corresponding Agent platform. Default: 7006.
Communication Version of CONTROL-M Agent.
Protocol Specify 01 (2.2.4), 02 (2.2.5), or 03 (6.0.00). Default: 03.
Version
Sybase
Parameter Description
CONTROL-M Sybase name for the CONTROL-M database owner. The
Database Owner custom script creates this user in the database. This name
is used by CONTROL-M when accessing its database.
Default: ctrlm
DBO Password Sybase password for the CONTROL-M database owner (6
to 30 characters, alphanumeric). The characters you enter
are not echoed for security reasons. This password is
used by CONTROL-M processes and utilities to access
the CONTROL-M database. Default: password
Database Password (6 to 30 characters, alphanumeric) for the
Administrator’s Sybase database administrator (user sa). The characters
Password you enter are not echoed for security reasons. This
password is used by CONTROL-M utilities to access
restricted sections of the CONTROL-M database.
Default: password
Database (Data Amount of space (in MB) to allocate for the data portion of
Portion) Size the CONTROL-M database. Default: 20.
If the database will be located in a file system, the custom
script allocates the amount of space you specify plus an
additional 50% to accommodate the Sybase transaction
log. For example, if you specify 30 MB, the amount of
space actually allocated is 45 MB.
Sybase recommends that you use raw partitions for the
data device. In this case, the size of the raw partition must
be equal to the size of the Data portion plus 4 MB.
Parameter Description
Query Socket Sybase utilizes these two TCP/IP ports for communication
Port Number between CONTROL-M and Sybase SQL Server. The port
-and- numbers must be different from each other. If these port
Backup Socket numbers are already used by an existing application,
Port Number choose other values, each in the range 1024 to 65534
inclusive.
Query Socket and Backup Socket each comprise 2 ports.
Therefore, each value entered should be the lower port of
a pair of available ports. For example, if the Query Port
Socket is 7102, then port 7103 will also be used for Query
Port communications.
Default: 7102 and 7104
Master Device Type of disk storage (raw partition or file system) used for
Type the master Sybase database. (A raw partition installation
offers enhanced database integrity.) Default: FILE.
If you want Sybase to use a raw partition, type y in
response to the prompt. An additional prompt will be
displayed requesting the physical device name (described
below).
Master Physical For Master Device Type FILE: Full path name where the
Device/Path master Sybase database will be located.
Name Default: <controlm_home_dir>/sybase/data/master.dat
For Master Device Type RAW: Physical device name of
the raw partition on which the Sybase database will be
located.
Data Device Type of disk storage (raw partition or file system) used for
Type the CONTROL-M database. Default: FILE
Data Physical For Data Device Type FILE: Full path name where the
Device/Path CONTROL-M database will be located.
Name Default: /<controlm_home_dir>/sybase/data/ctrlm_ux.dat
For Data Device Type RAW: Physical device name of the
raw partition in which the CONTROL-M database will be
located.
Log Device Type Type of disk storage (raw partition or file system) used for
the CONTROL-M database log. Default: FILE.
Parameter Description
Log Physical For Log Device Type FILE: Full path name where the
Device/Path CONTROL-M database log will be located.
Name Default: /<controlm_home_dir>/sybase/data/ctrlm_log.d
at
For Log Device Type RAW: Physical device name of the
raw partition in which the CONTROL-M database log will
be located.
Sybase Directory in which the Sybase interfaces file is located.
Interface This path should be visible to CONTROL-M.
Directory
Sybase Server Name of the SQL server.
Name When you choose to modify this value, the custom script
reads the Sybase interfaces file and displays a list of the
available SQL servers. Specify the name of an SQL server
from the displayed list (contact your system administrator
for this information). Default: SYBASE
Remote Sybase Name of the host for an existing Sybase Database server
Host Name installation.
CONTROL-M Name for the CONTROL-M database. This name must be
Database Name unique. Default: ctrlm
CONTROL-M Name of the Sybase device on which the CONTROL-M
Database Data database will be created. (See the disk init command in
Device Name the Sybase Commands Reference Manual for information
about creating a Sybase device.) Default: ctrlm_ux
CONTROL-M Name of the Sybase device on which the CONTROL-M
Database Log database log will be created. (See the disk init command
Device Name in the Sybase Commands Reference Manual for
information about creating a Sybase device.)
Default: ctrlm_log
Oracle
Parameter Description
CONTROL-M Database The name of the Oracle SQL server (1 to 8
Instance name characters, alphabetic plus “_”). Default: ctrlm
Database User Name of CONTROL-M database user.
Default: controlm
User Password Password for the CONTROL-M database user (6 to
30 characters, alphanumeric). The characters you
enter are not echoed for security reasons. This
password is used by CONTROL-M processes and
utilities to access the CONTROL-M database.
Default: password
Tablespace size Total size of the CONTROL-M database.
Default: 250 MB
Oracle home directory Directory where Oracle binary files are stored.
Default: /<controlm_home_dir>/oracle
Size of CONTROL-M The size of each database log file. There are two
database log files files of equal size.
Default: 20 MB
Name of the Full path name of the CONTROL-M database data
Tablespace data file file.
Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/data.
dbf
Name of the first Full path name of the first database log file.
database log file Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/log0
1.dbf
Name of the second Full path name of the second database log file.
database log file Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/log0
2.dbf
Oracle CDROM name Name of CDROM device containing the Oracle
installation CDROM.
CONTROL-M Listener Oracle utilizes this TCP/IP port for communication
port number between CONTROL-M and Oracle SQL Server.
The port must be dedicated to this purpose.
Choose a number in the range 1024 to 65534
inclusive. Default: 1521
Parameter Description
Oracle SYSTEM user Password of the Oracle SYSTEM user.
password
CONTROL-M SYSTEM Full path name to the CONTROL-M SYSTEM
tablespace file tablespace file.
location Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/syst
em01.dbf
CONTROL-M SYSTEM Size of the CONTROL-M SYSTEM tablespace file.
tablespace size Default: 50 MB
CONTROL-M RBS Full path name to the CONTROL-M RBS
(Rollback Segment) tablespace file.
tablespace file Default:
location /<controlm_home_dir>/oracle/oradata/ctrlm/rbs0
1.dbf
CONTROL-M RBS Size of the CONTROL-M RBS tablespace file.
tablespace size Default: 50 MB
CONTROL-M TEMP Full path name to the CONTROL-M TEMP
tablespace file tablespace file.
location Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/temp
01.dbf
CONTROL-M TEMP Size of the CONTROL-M TEMP tablespace file.
tablespace size Default: 100 MB
CONTROL-M INDEX Full path name to the CONTROL-M INDEX
tablespace file tablespace file.
location Default:
/<controlm_home_dir>/oracle/oradata/ctrlm/indx
01.dbf
CONTROL-M INDEX Size of the CONTROL-M INDEX tablespace file.
tablespace size Default: 50 MB
Oracle Server Host The host machine name of an existing Oracle
name server.
Parameter Description
CONTROL-M Mirror Name for the CONTROL-M mirror database owner.
Database Owner The install_mirror script creates this user in the
(Sybase and Oracle) database. This name is used by CONTROL-M when
accessing the mirror database. Default: ctrlm
DBO Password Password for the CONTROL-M mirror database
(Sybase and Oracle) owner (6 to 30 characters, alphanumeric). The
characters you enter are not echoed for security
reasons. This password is used by CONTROL-M
processes and utilities to access the CONTROL-M
mirror database.
Mirror Sybase Name of the SQL server to which CONTROL-M will
Server Name connect for mirroring. When you choose to modify this
(Sybase) value, the install_mirror script reads the Sybase
interfaces file and displays a list of the available SQL
servers. Specify the name of an SQL server from the
displayed list (contact your system administrator for
this information). Default: CTRLM2
Mirror Host name of machine that runs the instance of the
Sybase/Oracle Host database SQL Server used for mirroring.
Name (Sybase and
Oracle)
Mirror TCP/IP query port number for the database SQL
Sybase/Oracle Port Server used for mirroring. If you are using a
Number (Sybase CONTROL-M dedicated database SQL Server for the
and Oracle) mirror database, you can find its Sybase/Oracle Port
Number in the QUERY_SPN field in the
<controlm_owner>/install/install_defs file.
Parameter Description
CONTROL-M Mirror Name of the Sybase CONTROL-M mirror database.
database name This name must be unique. Default: ctrlm
(Sybase)
Mirror Oracle The name of the Oracle mirror SQL server (1 to 8
Instance name (SID) characters, alphabetic plus “_”). Default: ctrlm
(Oracle)
CONTROL-M Mirror Name of the Oracle CONTROL-M mirror database.
tablespace name This name must be unique. Default: ctrlm
(Oracle)
CONTROL-M Mirror Name of the Sybase device on which the
database data CONTROL-M mirror database will be created.
device name Default: ctrlm_ux
(Sybase)
CONTROL-M Mirror Name of the Sybase device on which the
database log device CONTROL-M mirror database log will be created.
name (Sybase) Default: ctrlm_log
CONTROL-M Mirror Name of the Sybase device on which the
Database Data CONTROL-M mirror database will be created. (See
Device Name the disk init command in the Sybase Commands
(Sybase) Reference Manual for information about creating a
Sybase device.) Default: ctm
CONTROL-M Mirror Name of the Sybase device on which the
Database Log CONTROL-M mirror database log will be created.
Device Name (See the disk init command in the Sybase
(Sybase) Commands Reference Manual for information about
creating a Sybase device.) Default: ctmlog
Performance Parameters
Parameter Description
PRIORITY_SL_SCAN Indicates if job priority should be used during the
job selection process (when deciding which job
should run next. Valid values are:
0 - Use job priority. Default
1 - Do not use job priority. This setting increases
CONTROL-M performance.
SL_BREAK_INT Specify how many jobs to scan in the selection
process before checking for jobs in the post
processing queue. The lower the value, the faster
the performance. The downside is that jobs at the
bottom of the queue will take longer to be
scheduled. Value range: 1-99999. Default: 100
PP_THRESHOLD Specify the maximum number of jobs that can wait
in the post processing queue before post
processing is initiated. The lower the value, the
faster the jobs get post processed, but jobs at the
bottom of the queue will take longer to be
processed. Value range: 1-99999. Default: 10
The sleep time setting for CONTROL-M processes can also affect the
performance and functionality of CONTROL-M. For example, setting
the sleep time of the Selector (SL) and/or Tracking (TR) process to 5,
will improve performance, but CONTROL-M will consume more CPU.
For more information, see “Sleep Time Considerations” on page 4-49.
Configuration Parameters
Parameter
Name {Valid Values} Explanation
CTM_PRM_KPA {Y, N}
_ACTIVE Indicates whether the Heartbeat monitor operates in active
(Y) or passive (N) mode. Default: Y (Active)
CTM_PRM_KPA {n}
_BETWEEN Time in seconds between heartbeat checks. Default: 300.
_MSGS
CTM_PRM_KPA {n}
_ROUNDTRIP_ Time in seconds to wait for a confirmation from
TIMEOUT ENTERPRISE/CS. If confirmation does not arrive, a
timeout is generated and the connection is severed.
Default: 300.
The following parameters are used for the Watchdog Process. (For
more information, see “Watchdog Facility” on page 1-44.) Parameter
CTM_PRM_ENABLE_UE must be set to Y to enable the WD process.
General Parameters
User Exits 6
Note
A special category of user exits can be defined for the Watchdog facility.
For more information, see “Watchdog Facility” on page 1-44.
Valid
Parameter Name Values Description
CTM_PRM_ENABLE_UE {Y, N} Indicates whether or not CONTROL-M user exits are
enabled. This parameter must be set to Y to enable
all user exits. Default: Y
CTM_PRM_ENABLE_UExxx {Y, N} Indicates whether or not the Associated UExxx user
exit is enabled (where xxx = 101-106).
• UE101 Job Ordering User Exit
• UE102 Job Submission User Exit
• UE103 Before New Day Procedure User Exit
• UE104 After New Day Procedure User Exit
• UE105 Before User Daily User Exit
• UE106 After User Daily User Exit
Default: N
CTM_PRM_SCRIPT_UExxx string Name of the UExxx user exit script (where
xxx = 101-106). These scripts must reside in the
~<controlm_owner>/ctm/ue_exit directory.
Default: ctm_exitxxx.sh
CTM_PRM_TIMEOUT_UExxx {n} Time (in seconds) to wait for the associated user exit
script to run before it is terminated. Default: 20
seconds
Note
User exits are implemented only if they have been enabled by setting the
appropriate configuration parameters (described in Table 6-2, “Exit
Configuration Parameters,” on page 6-3).
2. The name of the text file is passed as the $1 parameter to the user
exit script in the ue_exit directory.
3. The user exit script is run. This script is often used to modify the
contents of the text file. However, it can also be used to perform any
other action (for example, to copy information from the text file to
another location).
The following is a sample text file in the format that is passed to the
CTMUE101 exit:
JOBNAME daily_job
JOBNO 30
DESCRIPT
APPLIC STRESS
APPLGROUP STRESS
SCHEDTAB STRESS
AUTHOR ctm600
OWNER ctm600
PRIORITY 0
CRITICAL N
CYCLIC N
RETRO N
AUTOARCH N
TASKCLASS
CYCLICINT 0
TASKTYPE C
DATEMEM
NODEGRP
PLATFORM
NODEID
DOCLIB
DOCMEM
MEMLIB
MEMNAME
OVERLIB
CMDLINE ./stress_cmd_spl.ctm600
MAXRERUN 0
MAXDAYS 0
MAXRUNS 0
FROMTIME
BMC Software, Inc., Confidential and Proprietary Information
Example
The following exit script changes the Days parameter (DAYSTR) for jobs
that were scheduled on the first day of the month, so that these jobs will
be ordered on the second day of the month.
#!/bin/ksh
cp $1 /tmp/ue101.$$
sed -e ’s/DAYSTR 1/DAYSTR 2/’ /tmp/ue101.$$ > $1
The following is a sample text file in the format that is passed to the
CTMUE102 exit:
JOBNO 0
ORDERNO 19450
PRIORITY 1039
CRITICAL N
TASKTYPE C
CYCLIC N
CONFIRM_R N
CONFIRMED N
RETRO N
AUTOARCH N
TASKCLASS
HOLDFLAG N
STATUS N
STATE E
CYCLICINT 0
APPLGROUP dw_S_A_AAS
NODEGRP
NODEID fire
MEMLIB /mdw/oper/tgt/scripts/shells
MEMNAME dw##r#####
OVERLIB /mdw/oper/tgt/scripts/shells/overlib_all
CMDLINE sleep 30
ODATE 19960229
PROCID
RERUN_NO 0
OSCOMPSTAT 0
OSCOMPMSG
NEXTTIME
PREVDATE
NEXTDATE
STARTRUN
BMC Software, Inc., Confidential and Proprietary Information
Example
The following exit script checks if the job has a Owner of root and
changes the Owner for these jobs to nobody.
#!/bin/ksh
cp $1 /tmp/ue102.$$
sed -e ’s/OWNER root/OWNER nobody/’ /tmp/ue102.$$ > $1
The flat text file that is passed to the exit contains the name of the Daily
(SYSTEM), time, and original scheduling date (Odate) of the procedure.
The following is a sample text file in the format that is passed to the
CTMUE103 exit:
DAILY_NAME SYSTEM
TIME 1300
ODATE 20001121
Example
The following exit script runs a procedure that performs various actions
before the New Day procedure is run.
#!/bin/ksh
/opt/controlm/scripts/run_pre_New_Day_proc
The following is a sample text file in the format that is passed to the
CTMUE104 exit:
DAILY_NAME SYSTEM
TIME 1319
ODATE 20001121
Example
The following exit script runs a procedure that performs various actions
after completion of the New Day procedure.
#!/bin/ksh
/opt/controlm/scripts/run_post_New_Day_proc
The flat text file that is passed to the exit contains the name of the User
Daily, time, and original scheduling date (Odate) of the User Daily job.
The following is a sample text file in the format that is passed to the
CTMUE105 exit:
DAILY_NAME my_daily
TIME 1321
ODATE 20001121
The flat text file that is passed to the exit contains the name of the User
Daily, time, and original scheduling date (Odate) of the User Daily job.
The following is a sample text file in the format that is passed to the
CTMUE105 exit:
DAILY_NAME my_daily
TIME 1322
ODATE 20001121
Failover Planning
• You can rebuild the CONTROL-M primary database from the mirror
database.
Use Mirror Used when the primary database has failed or become
Database damaged. CONTROL-M/Server operates using the mirror
database. See “Operating CONTROL-M/Server with the
Mirror Database” on page 7-30.
Restore Restores normal function after the primary database has
CONTROL-M been repaired. Copies mirror database to primary
Database from database. CONTROL-M/Server operates using the
Mirror primary database. After restoring, you must run the
Initialize Mirroring option to re-enable mirroring. See
“Restoring the Primary Database and Initializing Mirroring”
on page 7-31.
To prepare the mirror database, verify the requirements listed here, and
perform the specified configuration steps.
Note
Database and account names that you create must conform to Sybase
naming conventions.
1. Verify that the Sybase SQL Server used for mirroring will be
running, both when initializing mirroring, and whenever
CONTROL-M/Server is operational.
2. When building a database from scratch, you will need the password
of the Sybase system administrator for installation.
• Sybase Host Name - Host name of the machine that runs the
Sybase SQL Server to be used for mirroring.
If you change the value of any of these parameters, the change will
not be implemented until you shut down and restart Sybase SQL
Server. For more information about Sybase parameters see
descriptions of dsedit, sp_configure, and reconfigure in the Sybase
Commands Reference Manual.
• Unix system paths or raw partitions for the temp and log
datafiles. These paths must be unique.
• Sybase device names for the temp and log databases. These
names must be unique for the database server. Use the
sp_helpdevice command to view existing devices on the
database server.
If you will be building a database, you must supply values for the
database owner, database name, devices and file/partition paths:
5. Every platform type uses a different character set for Sybase. If the
character set for the primary database and mirror database are not the
same, the character set for the primary database must be installed on
the mirror Sybase SQL Server. Use the dsedit Sybase utility to
configure the character set for the existing SQL Server.
To prepare the mirror database, verify the requirements listed here, and
perform the specified configuration steps.
Note
Database and account names that you create must conform to Oracle
naming conventions.
1. Verify that the Oracle SQL Server and the listener for the mirror
database will be running, both when initializing mirroring, and
whenever CONTROL-M/Server is operational.
2. When building a database from scratch, you will need the password
of the Oracle system administrator for installation.
• Oracle Host Name - Host name of the machine that runs the
Oracle SQL Server to be used for mirroring.
• Oracle Port Number - TCP/IP query port number for the Oracle
SQL Server used for mirroring.
echo $ORACLE_SID
cat $ORACLE_HOME/network/admin/tnsnames.ora
4. The tablespace name and database owner name must each be unique
for a particular Oracle SQL Server. However, the tablespace name
and the DBO name can be identical to each other. Therefore, when
selecting names for the CONTROL-M mirror database, verify that
the tablespace name and owner name are each unique for the
particular Oracle SQL Server.
Requirements and preparatory steps for the failover server are described
in “Preparing a Failover Server” on page 7-12.
Step 2 Enter the following command to open the CONTROL-M Main Menu:
ctm_menu
q - Quit
q - Quit
The options of the Database Mirroring menu are divided into procedures
implemented on the primary CONTROL-M/Server, and procedures
implemented on the secondary, failover CONTROL-M/Server. Table 7-3
summarizes the Database mirroring options.
Note
Most options on the Database Mirroring menu change system variables
in the user environment (in file .cshrc). To start CONTROL-M/Server in
the current window after running these options, specify the command
source ~/.cshrc to restore user environment variables.
This section describes the procedures for initializing the mirror database
and failover server.
Note
During the procedure to initialize the CONTROL-M mirror database:
for Sybase: a new entry is automatically added to the interfaces file with
the Sybase Server Name MIRROR.
for Oracle: a new entry is automatically added to the tnsnames.ora file
with the Oracle Server Name ctrlm_mirror.
Step 1 Verify that the secondary database server conforms to the requirements
for mirroring as described in:
+----------------------------------------+
|Copy/Build the CONTROL-M Mirror database|
+----------------------------------------+
Note
If you are initializing database mirroring for the first time, you must
select the build option to create the mirror database. You cannot use the
copy option until the mirror database has been built.
If you selected the copy option, Figure 7-3 shows the Mirroring
Parameters screen for Sybase Database Servers.
Mirroring Parameters:
Verify that the Mirroring Parameters match the port, host, and database
values of the target mirror database server. Modify the values as
necessary. Table 7-4 describes the parameters. Parameter values must
conform to Sybase naming conventions.
Parameter Description
CONTROL-M Name of the CONTROL-M Mirror database owner. This
Mirror Database name is used by CONTROL-M when accessing the mirror
Owner database.
When building a new mirror database, the initialization
script creates this user on the database server.
When copying to an existing database, this user must
already be defined on the database server.
DBO Password Password for the CONTROL-M Mirror database owner (6
to 30 characters, alphanumeric). The characters you enter
are not echoed for security reasons. This password is
used by CONTROL-M processes and utilities to access
the mirror database.
Parameter Description
Mirror Database Amount of space (in MB) to allocate for the data portion of
(Data Portion) the CONTROL-M Mirror database.
Size This value is taken from the current size of the primary
database. It cannot be modified. Verify that the secondary
database server can host a database of this size.
Sybase Full path to the Sybase interfaces file on the primary
Interface system. This value is displayed, but cannot be modified.
Directory
Mirror Sybase Name of the host computer for the mirror Sybase
Host Name Database server.
Mirror Sybase The communications port on which the secondary
Port Number database server listens for queries.
Mirror Sybase Name of the mirror database server. This entry is
Server Name automatically added to the primary database’s interfaces
file. This value is displayed, but cannot be modified.
CONTROL-M Name for the CONTROL-M Mirror database. This name
Mirror Database must be unique.
Name When building a new mirror database, the initialization
script creates this user on the database server.
When copying to an existing database, this user must
already be defined on the database server.
CONTROL-M Name of the Sybase device on which the CONTROL-M
Mirror Database Mirror database will be created.
Data Device
Name
CONTROL-M Name of the Sybase device on which the CONTROL-M
Mirror Database Mirror database log will be created.
Log Device
Name
Data Physical Full path or physical device name where the mirror
Device Path database will be located on the secondary database
Name server. Specifying a pathname initiates a File-based
installation. Specifying a device name initiates an
installation to a Raw partition.
Log Physical Full path or physical device name where the mirror
Device Path database’s log database will be located on the secondary
Name database server. Specifying a pathname initiates a File-
based installation. Specifying a device name initiates an
installation to a Raw partition.
If you selected the copy option, Figure 7-5 shows the Mirroring
Parameters screen for Oracle Database Servers.
Mirroring Parameters:
Mirroring Parameters:
Verify that the Mirroring Parameters match the port, host, and database
values of the target mirror database server. Modify the values as
necessary. Parameters are described in Table 7-5. Parameter values must
conform to Oracle naming conventions.
Parameter Description
CONTROL-M Mirror Name of the CONTROL-M Mirror database owner.
Database Owner This name is used by CONTROL-M when
accessing the mirror database.
When building a new mirror database, the
initialization script creates this user on the database
server.
When copying to an existing database, this user
must already be defined on the database server.
Database Owner Password for the CONTROL-M database user.
Password The characters you enter are not echoed for
security reasons. This password is used by
CONTROL-M processes and utilities to access the
CONTROL-M database.
Mirror Oracle Host The host machine name of an existing Oracle
Name server.
Parameter Description
Mirror Oracle Port Oracle utilizes this TCP/IP port for communication
Number between CONTROL-M/Server and Oracle
Database Server. The port must be dedicated to
this purpose.
Mirror Orcale Instance The name of the Oracle Database Server.
Name (SID) To find out this name use the following command
on the mirror database server:
echo $ ORACLE_SID
Tablespace name Name of a defined tablespace on the database
server that will be used by the mirror database.
Step 10 When you are satisfied with the values of all the parameters, specify b
and press <Enter>.
Please confirm that you wish to build a new CONTROL-M Mirror database [y/n]:
+----------------------------------------------+
| CONTROL-M Database Mirroring Customization |
+----------------------------------------------+
Working...
Building CONTROL-M database ...
Building the CONTROL-M database requires the System Administrator’s password.
Do you wish to continue? [y]: y
Note the system parameters that need to be changed, then press <Enter>
to complete the copy/rebuild procedure. You will need to manually
change these system settings after the copy/build procedure.
If the database you wish to build does not exist on the secondary
database server, the following message is displayed:
ATTENTION !!!
The data tablespace file location is on the Server Host Machine
Enter the full path and name of the tablespace file, or press <Enter> to
accept the default path and file . The filename must conform to Oracle
naming conventions.
Please confirm that you wish to copy the contents of CONTROL-M primary
database to CONTROL-M Mirror database [y/n] :y
+-----------------------------------------------+
| CONTROL-M Database Mirroring Customization |
+-----------------------------------------------+
Working...
copying database contents......................................
In order to complete this procedure after exiting the menu, please execute
‘source ~/.cshrc’ command.
Step 14 Exit the current session and start a new login session, or specify the
command source ~/.cshrc to reset user environment variables in the
current window.
Step 4 Exit the current session and start a new login session, or specify the
command source ~/.cshrc to reset user environment variables in the
current window.
Note
This is intended as a temporary solution to restore CONTROL-M/Server
operation as quickly as possible. At the first opportunity, the primary
database should be restored and CONTROL-M/Server should be
re-configured to use the primary database.
...........................................................
In order to complete this procedure after exiting the menu, please execute
’source ~/.cshrc’ command
Step 6 Exit the current session and start a new login session, or specify the
command source ~/.cshrc to reset user environment variables in the
current window.
These procedures assume that a failover server has already been installed
and initialized on a secondary platform. Two procedures are used during
failover situations:
Warning
Do not start the secondary CONTROL-M/Server while the primary
CONTROL-M/Server is running, or before the Start Failover procedure
finishes executing. If the secondary CONTROL-M/Server is started too
early, the following message is displayed:
Continue [y/n] :
Note
At the first opportunity, the primary CONTROL-M/Server environment
should be returned to operational status. The primary database should be
restored and CONTROL-M/Server should be restarted on the primary
environment.
Failover Stopped
Example
Explanation: This message indicates that the job is being modified to a non-
cyclic job. A cyclic job that is executing at the time the New Day procedure is
started is changed to a non-cyclic job. This is because CONTROL-M cannot
determine what action to take regarding this job while it is executing.
System Action: The job completes its current cycle and is changed to a non-
cyclic job.
User Response: If the job should continue executing as a cyclic job modify the
job processing parameter Cyclic accordingly.
System Action: All other CONTROL-M processes that were suspended during
the New Day procedure are resumed.
Explanation: The New Day procedure has finished cleaning up the Active
Jobs file. This message is issued by the New Day procedure just before it starts
inserting new job orders into the Active Jobs file.
User Response: If the New Day procedure has already run today, no user
action is required. If the last running date of the New Day procedure is later than
today’s date, run the ctmudlst utility and modify the last running date.
User Response: Hold all jobs using this resource and run the ecaqrtab utility
to adjust the usage count in the table so that it matches the actual usage count.
User Response: Allow the jobs using this resource to terminate. If the problem
persists, notify your BMC Software technical support representative.
User Response: Allow the jobs using this resource to terminate. If the problem
persists, notify your BMC Software technical support representative.
Explanation: The job was deleted from the Active Jobs file because it
existed in the Active Jobs file without being submitted for more than the number
of days specified in the MAXWAIT parameter.
Explanation: The User Daily job was run for the first time. When a new
User Daily job is run (that is, the User Daily job is run for the first time), the last
run date is nonexistent and therefore cannot be accessed. No user action is
required. At the end of this run (as at the end of all runs), a new last run date will
automatically be generated.
Explanation: The specified User Daily job cannot run due to a date
inconsistency. The inconsistent date can be due to one of the following:
User Response: If the User Daily job has already been run today, no user
action is required. If the last running date of the User Daily job is later than
today’s date, run the ctmudlst utility (see Chapter 2, “Utilities”) to modify the
last running date according to your requirements.
Explanation: The owner of the job does not have a home directory in the
data center. No home directory is defined in the data center for the user specified
in the job processing parameter Owner for this job.
User Response: Define a home directory for the job owner; then rerun the job.
• Mem Lib <mem_lib> does not exist – the path/library was not found.
• Mem Name <mem_name> does not exist – the script was not found.
• User <userr_name> does not exist – there was a security violation.
• Owner <owner_name> does not exist – there was a security violation
• Owner <owner_name> is not allowed to execute this script – there was
a security violation
• The script <script_name> does not have execute permissions – there
was a security violation
Explanation: This information message indicates that the job ended its
execution at the specified time with the given return code and the given run
count of the job.
Explanation: A job cannot be found in the system. After the job was
submitted, it could not be located by the system (that is, the job has
disappeared). The job’s status, and the location of its log, cannot be determined.
The job may have been stopped by a user, or the Agent platform on which the
job was running may have been rebooted.
User Response: Either rerun the job, or force the job if the job processing
definition has changed since the last New Day procedure or User Daily job.
• SYSOUT LOST
The job’s sysout file cannot be located.
• DISAPPEARED
The job that was executing cannot be located by CONTROL-M.
• COMSTAT=OK
The job’s completion code indicated that the job ended OK.
• COMSTAT=NOTOK
The job’s completion code indicated that the job ended not OK.
• NOT SUBMIT
Job Submission failed. This might have resulted from a Server/Agent
communication problem.
Explanation: A job terminated with the status OK. This statistical message
is written to the sysout file when a job terminates with the status OK and the
CONTROL-M system parameter Statistics has been set to Y.
Explanation: This information message indicates that the job was submitted
for execution at the specified time to the specified Agent platform.
User Response: Rerun the job or force the job on a different Agent platform.
User Response: Determine why the file was not found. Create the file or
correct the pathname specified for the AutoEdit variable.
Explanation: The sysout file of the specified job was copied to location
<location>. This message is issued following a successful SYSOUT or DO
SYSOUT copy operation.
Explanation: The sysout file of the specified job was moved to location
<location>. This message is issued following a successful SYSOUT or DO
SYSOUT move operation.
Explanation: The sysout file of the specified job was released to the print
queue. This message is issued following a successful SYSOUT or DO
SYSOUT release operation.
Explanation: The sysout file for the specified job was deleted. This message
is issued following a successful SYSOUT or DO SYSOUT delete operation.
Explanation: The sysout file for the specified job cannot be opened. Either
the sysout file could not be found, or it is corrupt. Since the sysout file could not
be opened, the job’s output cannot be analyzed.
System Action: The sysout file is not opened, the job is not analyzed, and the
job fails.
User Response: Check if the file is missing, and rerun the job if applicable. If
other information in the system indicates that the job has run successfully (for
example, other output data, new files), use available maintenance utilities to
adjust condition values to the state in which they would be if the job had been
analyzed.
Explanation: The sysout file for the specified job could not be
copied.CONTROL-M was unable to perform the specified SYSOUT or DO
SYSOUT copy action. Possible reasons are operating system security
restrictions, or lack of disk space.
Explanation: The sysout file for the specified job could not be moved.
CONTROL-M was unable to perform the SYSOUT or DO SYSOUT move
action. Possible reasons are operating system security restrictions, or lack of disk
space.
Explanation: The sysout file for the specified job could not be printed.
CONTROL-M was unable to perform the SYSOUT or DO SYSOUT release-
to-print action. Possible reasons are the print queue is stopped, closed or
nonexistent.
User Response: Try to correct the print queue problem. If you cannot, notify
your ENTERPRISE/CS administrator.
Explanation: The sysout file for the specified job could not be deleted.
CONTROL-M was unable to perform the SYSOUT or DO SYSOUT delete
action. Possible reasons are that the file does not exist, or that the user is not
authorized to delete the file.
User Response: Check if the file actually exists. If it does, check the job
owner’s authorization (both system and CONTROL-M authorization). If
necessary, contact your ENTERPRISE/CS administrator.
5133 ENDED OK
Explanation: This information message indicates that the job has terminated
with status OK. Following job execution and post-processing, CONTROL-M
has analyzed the results and has assigned the completion status OK to the job.
User Response: Examine the job log (SYSOUT) to determine why the job
terminated with a status of NOTOK.
Explanation: The job’s sysout file cannot be located. The sysout file is
required to determine which post-processing actions, if any, are required for the
job.
User Response: Determine what happened to the sysout. Once the cause of the
problem has been corrected, resubmit the job.
Explanation: This information message indicates that the job ended OK.
CONTROL-M assigns the job a status of OK based on the job’s
completion code.
Explanation: This information message indicates that the job ended not OK.
CONTROL-M assigns the job a status of NOTOK based on the job’s
completion code.
Explanation: This information message indicates that the job was assigned a
status of Ended OK because it is a dummy job.
User Response: Verify the existence of the script file, and check
CONTROL-M and operating system security restrictions.
5216 <shout_text>
-or-
User Response: Determine the source of the problem (missing job processing
definition, missing Scheduling table, incorrectly specified Do Forcejob
statement, and so forth). Correct the problem and re-execute the Force.
-or-
-or-
<node_ID> was not specified correctly in the job processing definition or in the
node group.
User Response: Verify that the node ID specified in the job processing
definition or in the node group is valid. Determine the cause of the failed
communication and correct it.
A communication failure has occurred between the Server platform and the
specified Agent platform.
-or-
The node ID was not specified correctly in the job processing definition or in the
node group.
User Response: Verify that the node ID specified in the job processing
definition or in the node group is valid. Determine the cause of the failed
communication and correct it. After correcting the problem, use the Agent Status
menu to change the status of the Agent platform to Available.
User Response: When desired, use the utility to change the status of the Agent
platform to Available.
Explanation: A User Daily job attempted to order a job from a table that it
is unauthorized to access. This is a security violation.
System Action: Access to the scheduling table is denied to the User Daily job.
User Response: Either modify the script file protection accordingly, or grant
the owner execution privileges.
User Response: If you still want to perform the specified operation, contact
your security manager for the required authorization.
5260 – 5330 See Appendix C, “Messages and Codes”, in the Enterprise Controlstation User
Guide.
5500 – 5599 See Appendix C, “Messages and Codes”, in the Enterprise Controlstation User
Guide.
Glossary
Active Jobs File (AJF) The Active Jobs file lists all jobs scheduled for submission in the
current day. Each job in the Active Jobs file is not submitted
until all conditions contained in the job processing definition for
the job are satisfied. The Active Jobs file is contained in the
CONTROL-M database.
Glossary 1
CONTROL-M Log Log containing a complete audit trail of every significant event
occurring in the CONTROL-M production environment.
Data Center (or A Server platform and all the Agent platforms that it handles.
CONTROL-M Data
Center)
Download (of active Transmission of the Active Jobs file and other elements of the
environment) CONTROL-M database to the ENTERPRISE/CS database. This
allows ENTERPRISE/CS to provide the user with a graphical
display of the current situation in the data center. Download
occurs upon completion of the New Day procedure, after which
updates are issued to maintain the accuracy of the graphical
display.
BMC Software, Inc., Confidential and Proprietary Information
Global Condition A prerequisite condition that is passed between data centers via
ENTERPRISE/CS. Global conditions allow jobs in one data
center to be dependent on completion of a job in another data
center.
Heartbeat Monitor Special monitor which verifies that TCP/IP communication with
ENTERPRISE/CS is functional.
Job Processing Set of user-defined parameters for each job which provide
Definition CONTROL-M with detailed instructions for processing the job.
Job processing definitions are organized into Scheduling tables.
Glossary 3
Manual Conditions The Manual Conditions file contains prerequisite conditions
File which are required by jobs in the Active Jobs file but which will
not be available (that is, added to the Conditions/Resources
table) unless there is some form of manual intervention. These
conditions include conditions which are never added
automatically by scheduled jobs because manual confirmation is
always desired, as well as conditions which are normally added
automatically, but the jobs which add them are not scheduled for
the day.
New Day Procedure Formerly “General Daily Procedure”. Daily scheduling and
housekeeping procedures which run on the Server platform. The
CONTROL-M date is advanced to the next day when this
procedure runs.
Odate (Original Jobs managed by CONTROL-M are assigned a date when they
Scheduling Date) are ordered (placed in the Active Jobs file). This date, referred to
as the Odate, is the CONTROL-M date at the time the job is
ordered and represents the date on which the job should be
submitted for execution. Odate is also the default date assigned
to prerequisite conditions at the time they are created. The
variable ODAT (representing the Odate) is used when defining
job dependencies to insure that a job waiting for completion of
another job is only triggered by a job with the same working
date.
Glossary 5
User Daily Job User-defined job which can be used to automate the ordering of
production jobs.
Index
A users 3-13
AG_PORT_NUM
account parameter agent parameter 5-28
SAP (ctmcreate) 2-33 agconfig.dat file
SAP (ctmdefine) 2-58 description 5-22
ACTION parameter Agent communication parameters
ctmudchk utility 2-145 defaults 4-34
ctmvar utility 2-151 description 5-13
Active Jobs file modifying 4-35
ad hoc jobs 2-25 Agent platform
ctmpsm utility 2-107, 2-109 deleting 2-15
downloading 4-42, 4-48 status 2-15
erasing contents 4-48 Agent platforms
forcing download 4-42 communication parameters 5-13
listing job details 2-107 communication status 1-6, 2-103, 4-38,
New Day procedure 1-13 A-11
options 2-108 configuration information 2-103
security 3-5, 3-24 ctmping utility 2-103
Active shout table definition 1-2
system parameter 5-5 disabled A-22
ad hoc jobs identification 1-6
creating 2-25 Shout messages to 2-138
Add Backup Device option Agent Status menu
Database Maintenance menu 4-19 description 4-38
adding AGENT_DIR
backup devices 4-19 agent parameter 5-28
groups 3-18 Agent-to-Server
prerequisite conditions 2-21 port number 5-10
Index 1
ALARM_DEST
server parameter 5-23
B
application security 3-1 backing up
appname parameter CONTROL-M database 2-37
Oracle Applications (ctmcreate) 2-34 backup
Oracle Applications (ctmdefine) 2-60 Oracle 4-14
Archive Mode option Sybase 4-14
Database Maintenance menu 4-13 Backup Database
archive_info parameter option
SAP (ctmcreate) 2-33 Database Maintenance menu 4-14
SAP (ctmdefine) 2-58 Backup Socket port number
archive_object parameter Sybase 5-16
SAP (ctmcreate) 2-33 batch mode
SAP (ctmdefine) 2-58 Security Maintenance utility 3-32
archive_sapobject parameter binary files
SAP (ctmcreate) 2-33 ctmdbrst utility 2-17, 2-19
SAP (ctmdefine) 2-58
arp command
IP address locator 5-11 C
asap parameter
SAP jobs (ctmcreate) 2-33 CDROM name
SAP jobs (ctmdefine) 2-58 Oracle parameter 5-18
ASCII files character set
ctm_restore_bcp utility 2-19 Sybase SQL server 7-6
ctmexdef utility 2-64 Check Database option
authorization. See security Database Maintenance menu 4-26
Authorization menu, Security 4-29 Check Kernel Configuration parameter 4-41
Authorized CONTROL-M/Servers file checking
host names 1-12 free disk space 2-62
overview 1-9, 1-12 User Daily jobs 2-145
usage A-9 waiting jobs 2-154
AutoEdit variables CHILD mode
ctmstvar utility 2-133 ctmpsm utility 2-113
ctmvar utility 2-150 cleanup. See maintenance
quote marks 2-29, 2-52, 2-76, 2-133 closing. See stopping
AUTOEDIT_INC_ SEC parameter 5-23 CMN_PRM_CD_IPC_IN
Available status communication parameter 5-26
agent platform 1-7 CMN_PRM_CD_IPC_OUT
communication parameter 5-26
Index 3
CONTROL-M database description 1-2
backing up 2-37, 4-14 discovery 1-6
checking data usage 2-45 interrupted communication 1-8
checking integrity 2-39, 4-4 CONTROL-M/Server
creation menu 4-10 see also Server
defining jobs 2-47 agent interaction 1-5
extending 4-21 backup server 7-33
maintenance 4-4 host name 1-12, 5-9, 5-28
Oracle parameters 5-18, 7-23 messages and codes A-1
overview 1-4 parameters 5-1
owner parameter (Sybase) 5-15, 7-19 processes 2-134, 4-43
parameters 4-25, 5-15, 5-17 recovery 1-11
percent utilization 2-39 Shout messages 2-138
recovery procedure 7-29 starting 4-2, 4-8
restoring 2-44, 4-16 stopping 4-2, 4-8
statistics 2-77, 2-124 TCP/IP port number 5-12
Sybase parameter 5-17, 7-20 Windows NT 1-9
CONTROL-M date creating
Day Time parameter 5-4 see also ctmcreate, defining
description 1-13 ad hoc jobs 2-25
Odate 1-13 application-specific jobs 2-31
CONTROL-M log CONTROL-M database 4-10
cleanup by New Day procedure 1-14 files 2-66
deleting entries 2-91 Manual Conditions file 2-82
description 1-31 csh command
fields B-1 environment variables 2-10
listing entries 2-91 path modification 2-13
messages A-1 CTLTABCOUNT
recorded times 1-8 messages and codes A-6
Shout destination 1-27 CTM_AGSTAT utility
Shout utility 2-138 Agent status 2-15
CONTROL-M Mirror database parameters description 2-15
5-21 ctm_backup_bcp utility
CONTROL-M SYSTEM tablespace comparison with ctmdbbck 2-17
parameters 5-19 exporting database data 2-17
CONTROL-M version CTM_CB_TIMEOUT
system parameter 5-3 server parameter 5-23
CONTROL-M/Agent CTM_GROUP_ADJUST_DUMMY
see also Agent platforms server parameter 5-23
configuration 1-12
Index 5
ctmldnrs utility CTMS_HOSTNAME
Manual Conditions file 2-82 agent parameter 5-30
ctmloadset utility CTMS_PORT_NUM
load balancing 1-10 agent parameter 5-30
resource usage 2-86 ctmsec utility 3-11
ctmlog utility see also Security Maintenance utility
CONTROL-M log 2-91 User Maintenance option 3-13
problem detection 1-39 ctmshout utility
CTMLOG_DEL_CHK message distribution 2-127
configuration parameter 5-24 ctmshtb utility 1-26
ctmordck utility Shout destination table 2-129
job processing definition list 2-94 ctmstats utility 1-30
ctmorder utility statistical summary table 2-130
description 2-96 ctmstvar utility
forcing a job 2-98 AutoEdit variables 2-133
CTMORDER_FORCE ctmsuspend utility
server parameter 5-24 ENTERPRISE/CS communication
ctmpasswd utility 2-134
database passwords 2-102 ctmsys utility
ctmping utility parameter modification 5-7
Agent configuration information 2-103 system parameters 2-135
communication status 1-7 ctmudchk utility
Watchdog facility 1-48 ordering jobs 2-145
ctmpsm utility User Daily job check 2-145
Active Jobs file 2-107 ctmudlst utility
job listing 2-113 Date Control record 1-21
mode descriptions 2-113 description 2-147
Production Support menu 2-106 messages and codes A-5, A-7
Resource Table options 2-110 ctmudly utility
scheduling function options 2-110 User Daily jobs 1-18, 2-149
Scheduling tables 2-111 CTMUE101 user exit
syntax 2-113 job ordering 6-5
ctmrpln utility CTMUE102 user exit
description 2-120 job submission 6-7
ctmruninf utility 1-30 CTMUE103 user exit
Statistical Details table 2-124 New Day procedure 6-9
CTMS_ADDR_MODE CTMUE104 user exit
agent parameter 5-29 New Day procedure 6-10
CTMS_COMVERSION CTMUE105 user exit
agent parameter 5-30 User Daily jobs 6-11
Index 7
DEBUG_LEVEL messages and codes A-5
agent parameter 5-28 enabling
server parameter 5-28 user exits 6-3
defining ENDED time
see also creating, ctmdefine CONTROL-M log 1-8
application-specific jobs 2-57 ENTERPRISE/CS
CONTROL-M jobs 2-47 ctmsuspend utility 2-134
deleting description 1-1
backup devices 4-20 release version 5-12
CONTROL-M log entries 2-91 Shout messages 2-138
files 2-66 TCP/IP port number 5-12
groups 3-18 entity authorization
prerequisite conditions 1-14, 2-21, 4-48, Security Maintenance utility 3-28
5-6 environment variables
statistics 1-14, 2-124 required 2-9
users 3-13 setting 2-10
dependencies. See prerequisite conditions event logger
description parameter problem detection 1-39
Oracle Applications (ctmcreate) 2-34 executable path
Oracle Applications (ctmdefine) 2-60 system parameter 5-3
diagnostic level Executable Path parameter 5-3
setting 4-49 EXIT_STATUS_DIR
Disabled status agent parameter 5-30
communication 1-7 exits
Disappeared status CTMUE101 6-5
agent platform 1-7 CTMUE102 6-7
messages and codes A-10, A-16 CTMUE103 6-9
discovery process 1-6, 2-103 CTMUE104 6-10
disk space CTMUE105 6-11
see also df command CTMUE106 6-11
downloading Watchdog facility 1-45, 1-47
Active Jobs file 4-42, 4-48 exporting
Drop Backup Device option job definitions 2-64
Database Maintenance menu 4-20 Extend Database Size option
Database Maintenance menu 4-21
extending
E CONTROL-M database 4-21
Index 9
In conditions Jobno field
see prerequisite conditions CONTROL-M log B-1
Index tablespace file jobs
Oracle parameter 5-19 CTMUE101 user exit 6-5
init_prflag 4-48 CTMUE102 user exit 6-7
Input process communication port number Disappeared status 1-7
operational parameter 5-12 order options 1-24
install_mirror script 7-17 ordering 6-5
interaction ordering by New Day procedure 1-14
see also communication ordering manually 1-23
Server-Agent 1-5 retroactive ordering 1-22
ioa_appl parameter sample flow 1-2
Oracle Applications (ctmcreate) 2-34 scheduling 1-15
Oracle Applications (ctmdefine) 2-59 submitting 6-7
IOALOG events terminating 2-81
problem detection 1-40 User Daily 1-18
IOALOG_DEL_INT jobs ordering
server parameter 5-25 manually 2-96
IP address jobs submission
arp command 5-11 failure A-16
communication parameter 5-9
K
J
Kernel Configuration parameter, Check 4-41
job status killing
Disappeared A-11 ctmkilljob utility 2-81
messages and codes A-10
job submission
error messages A-9 L
job_in_file parameter
SAP (ctmcreate) 2-33 language parameter
SAP (ctmdefine) 2-58 SAP (ctmcreate) 2-33
job_mode parameter SAP (ctmdefine) 2-59
SAP (ctmcreate) 2-33 Last Run date
SAP (ctmdefine) 2-58 Date Control record 1-21
jobcount parameter level, Restricted security 3-2
SAP (ctmcreate) 2-33 LIBMEMSYM file
SAP (ctmdefine) 2-59 AutoEdit variable A-11
Jobname field List All Devices option
CONTROL-M log B-1 Database Maintenance menu 4-19
BMC Software, Inc., Confidential and Proprietary Information
Index 11
Max Wait parameter mirror database data device
New Day procedure 1-13 Sybase parameter 5-21
Maximum Days Retained by CONTROL-M mirror database log device
Log Sybase parameter 5-21
system parameter 1-14, 5-5 mirroring
Maximum Days to Retain Sysout Files failure A-4
system parameter 1-14, 5-5 server environment 1-11
Maximum job state changes mode
operational parameter 5-12 Sysout file access 5-30
Maximum Retries parameter modifying
description 5-4, 5-14 see also changing
Maximum server processes see also creating
operational parameter 5-13 see also editing
Memname field see also updating
CONTROL-M log B-1 environment variables 2-9
menu, Production Support 2-106 monitoring
menu, Security Authorization 4-29 Quantitative resources 2-86
menus Monthly report
CONTROL-M main menu 4-6 ctmpln utility 2-120
Database Creation 4-10 MSGID field
Message field CONTROL-M log B-1
CONTROL-M log B-1
messages
see also shout messages N
messages and codes
description A-1 Network Management applications
prefixes A-1 ctm2snmp utility 2-155
messages, distribution of New Day procedure
ctm2snmp utility 2-155 Active Jobs file 1-13
Minimum server processes CTMUE103 user exit 6-9
operational parameter 5-13 CTMUE104 user exit 6-10
mirror database Daylight Savings Time 1-35
extending 4-21 description 1-13
messages and codes A-4 group scheduling 1-17
Oracle 5-20 ordering jobs 1-14
parameters 5-20 prerequisite conditions cleanup 5-6
port numbers 5-20, 7-4 purging log files 1-32
QUERY_SPN field 7-4 restarting 4-41
Sybase 5-20, 7-4 scheduling 1-15
synchronization 7-35 sysout files cleanup 1-14
UDLAST parameter 1-14
BMC Software, Inc., Confidential and Proprietary Information
Index 13
Polling interval parameter SAP (ctmcreate) 2-33
communication 5-14 SAP (ctmdefine) 2-59
description 5-14 print_destination parameter
polling_interval parameter SAP (ctmcreate) 2-33
SAP (ctmcreate) 2-34 SAP (ctmdefine) 2-59
SAP (ctmdefine) 2-59 print_expiration parameter
port numbers SAP (ctmcreate) 2-33
Agent-to-Server 5-10 SAP (ctmdefine) 2-59
backup socket 5-16 print_immediately parameter
CONTROLM/Server 4-41 SAP (ctmcreate) 2-33
ENTERPRISE/CS TCP/IP 5-12 SAP (ctmdefine) 2-59
mirror database 5-20, 5-21 print_numcolumns parameter
query socket 5-16 SAP (ctmcreate) 2-33
Server-to-Agent 5-14 SAP (ctmdefine) 2-59
post-processing print_numlines parameter
performance parameters 5-21 SAP (ctmcreate) 2-33
PP_THRESHOLD SAP (ctmdefine) 2-59
performance parameter 5-22 print_recipient parameter
prefixes SAP (ctmcreate) 2-33
messages and codes A-1 SAP (ctmdefine) 2-59
prerequisite conditions print_release parameter
adding 2-21 SAP (ctmcreate) 2-33
cleanup 5-6 SAP (ctmdefine) 2-59
ctmcontb utility 2-21 printcopies parameter
deleting 1-14, 2-21, 4-48, 5-6 Oracle Applications (ctmcreate) 2-34
listing 2-21 Oracle Applications (ctmdefine) 2-60
unscheduled 2-82 PRINTER_NAME
print_archmode parameter agent parameter 5-28
SAP (ctmcreate) 2-33 printername parameter
SAP (ctmdefine) 2-59 Oracle Applications (ctmcreate) 2-34
print_authorization parameter Oracle Applications (ctmdefine) 2-60
SAP (ctmcreate) 2-33 printstyle parameter
SAP (ctmdefine) 2-59 Oracle Applications (ctmcreate) 2-34
print_banner parameter Oracle Applications (ctmdefine) 2-60
SAP (ctmcreate) 2-33 PRIORITY_SL_SCAN
SAP (ctmdefine) 2-59 performance parameter 5-22
print_banner_page parameter server parameter 5-26
SAP (ctmcreate) 2-33
SAP (ctmdefine) 2-59
print_copies parameter
Index 15
reports
ctmcontb utility 2-21
S
ctmlog utility 2-92 SAP
ctmordck utility 2-95 job parameters (ctmcreate) 2-33
ctmrpln utility 2-120 job parameters (ctmdefine) 2-58
description 2-6 Savings Time, Daylight 1-33
ecactltb utility 2-157 SCHEDTAB mode
ecaqrtab utility 2-159 ctmpsm utility 2-117
resources scheduling function options
see Control resources ctmpsm utility 2-110, 2-111
see Quantitative resources scheduling jobs
Resource Table options New Day procedure 1-15
ctmpsm utility 2-110 performance parameters 5-21
respapp parameter scheduling tables
Oracle Applications (ctmcreate) 2-34 authorization 3-21
Oracle Applications (ctmdefine) 2-60 ctmpsm utility 2-113
respname parameter defining jobs 2-47
Oracle Applications (ctmcreate) 2-34 listing jobs 2-120
Oracle Applications (ctmdefine) 2-60 security 3-4
Restore Database option scope
Database Maintenance menu 4-16 AutoEdit variables 2-150
restoring script, install_mirror 7-17
CONTROL-M database 2-44, 4-16 Secure Socket Layer
ctmdbrst utility 2-44 ctmsys utility 2-142
Restricted security level 3-2
Retro parameter
job processing 1-22
Retry Interval parameter
description 5-14
Rollback segment tablespace file
Oracle parameter 5-19
RUNCNT
rerun counter A-10
RUNINF_PURGE_LIMIT
server parameter 1-14, 5-25
RUNINF_PURGE_MODE
server parameter 5-25
runtime statistics 1-28
Index 17
Sleep Time viewing 2-130
considerations 4-49, 5-22 Statistics Mode parameter
resetting 4-48 description 1-29, 2-77, 5-12
SNMP traps Statistics Summary table
ctm2snmp utility 2-155 ctmjsa utility 1-30
space usage statistics, runtime 1-28
database 2-45 STATS_TIME
spool parameter server parameter 5-25
SAP jobs (ctmcreate) 2-34 step_num parameter
SAP jobs (ctmdefine) 2-59 SAP jobs (ctmcreate) 2-34
SQL server SAP jobs (ctmdefine) 2-59
see also Oracle SQL server stopping
see also Sybase SQL server CONTROL-M/Server 4-2, 4-8
SSL ctmkilljob utility 2-81
see also Secure Socket Layer Sybase SQL server 4-9
stack trace SUBMITTED AT time
debugging 1-42 CONTROL-M log 1-8
problem detection 1-39 Subsystem field
proclog file 1-42 CONTROL-M log B-1
stageparm parameter Support menu, Production 2-106
Oracle Applications (ctmdefine) 2-60 Sybase
stageparm parameter backing up 4-14
Oracle Applications (ctmcreate) 2-35 Sybase interface directory
Start Day of the Week parameter 5-5 database parameter 5-17
starting Sybase parameter
CONTROL-M/Server 4-2, 4-8 log physical device 5-17, 7-20
Sybase SQL server 4-9 Master physical device 5-16
Statistical Details table owner 5-15, 7-19
ctmjsa utility 1-30 Sybase SQL server
Statistical Summary table character set 7-6
ctmstats utility 2-130 considerations 7-4, 7-7
statistics database mirroring 7-4
compiling 2-77 database name 5-17
ctmjsa utility 1-30 database parameters table 5-15
deleting 1-14, 2-124 dedicated 7-4
listing 2-77, 2-124 maintenance 4-4
overview 1-28 starting 4-9
runtime 1-28 stopping 4-9
summary mode 5-12
systems parameter 1-29, 5-4
Index 19
Unavailable status unauthorized A-23
agent platform 1-7 User Maintenance option
Unknown status ctmsec utility 3-13
agent platform 1-8 User password
unordered jobs Oracle parameter 5-18, 7-22
listing 2-145 userexits
User Daily jobs 2-145 enabling 6-3
Unrestricted security level username parameter
description 3-2 Oracle Applications (ctmcreate) 2-34
UPDATEAJF mode Oracle Applications (ctmdefine) 2-34,
ctmpsm utility 2-118 2-60
UPDATEGROUP mode utilities
ctmpsm utility 2-119 ctm_backup_bcp 2-17
UPDATETABLE mode ctm_restore_bcp 2-19
ctmpsm utility 2-119 ctm2snmp 2-155
User Daily ctmcontb 2-21
AutoEdit variable %%PARM1 1-20 ctmcreate 2-25
ctmordck utility 2-94 ctmdbapasswd 2-36
CTMUE105 user exit 6-11 ctmdbbck 2-37
CTMUE106 user exit 6-11 ctmdbcheck 2-39
Date Control record 1-21 ctmdbrst 2-44
example 1-19 ctmdbspace 2-45
interruptions 1-23 ctmdbtrans 2-46
reordering jobs 2-145 ctmdefine 2-47
scheduling 1-15 ctmdiskspace 2-62
workflow 1-18 ctmexdef 2-64
User Daily jobs ctmfw 2-66
checking 2-145 ctmgrpdef 2-75
ctmudly utility 2-149 ctmjsa 2-77
last run date 2-147 ctmkilljob 2-81
listing job definitions 2-94 ctmldnrs 2-82
unordered jobs list 2-145 ctmloadset 2-86
user exits ctmlog 2-91
see also exits ctmordck 2-94
configuration parameters 5-27, 6-3 ctmorder 2-96
location 6-1 ctmping 2-103
Watchdog facility 1-47 ctmpsm 2-106
workflow 6-3 ctmrpln 2-120
user ID ctmruninf 2-124
see also owner ctmsec 3-13
Index 21
WD_ERROR_HANDLER_SCRIPT_FILE
Watchdog facility 1-49
WD_ERROR_HANDLER_TIMEOUT
Watchdog facility 1-49
WD_HEARTBEAT_INTERVAL exit
Heartbeat check 1-45
WD_INTERVAL parameter
Watchdog facility 1-49
WD_USEREXIT__CMD_LINE parameter
Watchdog exit 1-47
WD_USEREXIT__ERROR_MSG
Watchdog exit 1-47
WD_USEREXIT__INTERVAL parameter
Watchdog exit 1-47
WD_USEREXIT__RUN_STATE parameter
Watchdog exit 1-47
WD_USEREXIT__SCRIPT_FILE
Watchdog exit 1-47
WD_USEREXIT__SUSPEND_STATE
Watchdog exit 1-47
WD_USEREXIT__TIMEOUT parameter
Watchdog exit 1-47
WD_USEREXIT_NUMBER parameter
Watchdog facility 1-44
Windows NT
CONTROL-M/Server 1-9
workflow
CONTROL-M jobs 1-2
New Day procedure 1-13
scheduling jobs 1-15
User Daily jobs 1-18
write permission
assigning 2-14
Y
Yearly report
ctmpln utility 2-120