MIMIX Monitor
MIMIX Monitor
MIMIX Monitor
Version 7.0
Using MIMIX Monitor
Published: September 2010 level 7.0.01.00 Copyrights, Trademarks, and Notices
2
Contents
Version 7.0
Using MIMIX Monitor
Who this book is for..................................................................................................... 8
What is in this book............................................................................................... 8
The MIMIX documentation set .................................................................................... 8
SNA and OptiConnect Support Discontinued.............................................................. 9
Sources for additional information............................................................................. 10
How to contact us...................................................................................................... 11
Chapter 1 MIMIX Monitor overview 12
Monitor concepts....................................................................................................... 13
Components of a monitor.................................................................................... 13
Switching concepts.................................................................................................... 14
Support for switch automation............................................................................. 15
The MIMIX Model Switch Framework ................................................................. 16
Additional switch information............................................................................... 16
Monitor objects supplied with MIMIX......................................................................... 17
Basic operation.......................................................................................................... 20
Interface exit program processing....................................................................... 20
Master monitor .................................................................................................... 21
Monitor processing.............................................................................................. 22
Interval master monitor........................................................................................ 25
Group monitor processing................................................................................... 25
Additional switch definition operations ................................................................ 28
Chapter 2 Checklist: preparation 29
Security considerations ............................................................................................. 30
Preparing for a switch................................................................................................ 31
Requirements for switching................................................................................. 32
Starting the MIMIXSBS subsystem........................................................................... 33
Accessing the MIMIX Main Menu.............................................................................. 34
Chapter 3 Working with monitors 36
Starting and ending the master monitors .................................................................. 37
Starting the master monitor on the local system................................................. 37
Ending the master monitor on the local system.................................................. 37
Starting and ending the interval master monitor.................................................. 38
Displaying a list of monitors on a system.................................................................. 39
Actions available for monitors ............................................................................. 39
Monitor status values .......................................................................................... 40
Starting a monitor...................................................................................................... 42
Ending a monitor....................................................................................................... 43
Running condition and event programs for a monitor ............................................... 44
Enabling or disabling a monitor................................................................................. 45
Enabling a monitor .............................................................................................. 45
3
Disabling a monitor.............................................................................................. 45
Placing a monitor on hold.......................................................................................... 47
Releasing a held monitor........................................................................................... 48
Working with the message log.................................................................................. 49
Other operations available from a 5250 emulator..................................................... 50
Displaying monitor status details......................................................................... 50
Changing monitors .............................................................................................. 51
Copying monitors ................................................................................................ 51
Deleting a monitor ............................................................................................... 51
Displaying a monitor............................................................................................ 52
Printing a monitor ................................................................................................ 52
Renaming a monitor............................................................................................ 52
Working with information for a monitor................................................................ 52
Exporting and importing monitors........................................................................ 53
Exporting a monitor ....................................................................................... 53
Importing a monitor........................................................................................ 54
Working with monitor job logs ............................................................................. 55
Chapter 4 Creating user-defined monitors 57
Common parameters on the CRTMONOBJ command............................................. 57
Creating monitors...................................................................................................... 61
Creating a time monitor....................................................................................... 61
Tips for time monitors.................................................................................... 62
Creating a journal monitor................................................................................... 63
Creating a message queue monitor .................................................................... 65
Creating an interval monitor ................................................................................ 66
Creating a group monitor..................................................................................... 68
Event classes ............................................................................................................ 71
Predefined conditions for event classes and their associated parameters ......... 71
Interval monitors (*INTERVAL) ........................................................................... 72
When to use an interval monitor.................................................................... 73
J ournal monitors (*J RN)...................................................................................... 74
When to use a journal monitor....................................................................... 74
Extended journal monitors (*EXDJ RN) ............................................................... 75
Message queue monitors (*MSGQ) .................................................................... 75
When to use a message queue monitor........................................................ 76
Time monitors (*TIME) ........................................................................................ 76
When to use a time monitor........................................................................... 76
Group monitors (*GROUP).................................................................................. 77
When to use a group monitor........................................................................ 77
Predefined monitors (*PREDFN)......................................................................... 77
Chapter 5 Working with switch definitions 79
Accessing the Work with Switch Definitions display.................................................. 80
Creating switch definitions......................................................................................... 81
Creating a switch definition for TCP .................................................................... 81
Creating a switch definition for hardware switching ............................................ 82
Creating a switch definition for type *NONE........................................................ 83
Changing a switch definition...................................................................................... 85
Deleting a switch definition........................................................................................ 86
4
Displaying a switch definition.................................................................................... 87
Printing a switch definition......................................................................................... 88
Working with monitors for a switch definition............................................................ 89
Starting monitors for a switch definition............................................................... 89
Ending monitors for a switch definition................................................................ 89
Switching users manually.......................................................................................... 91
Synchronizing settings in the switching hardware............................................... 92
Displaying status for a switch definition..................................................................... 94
Running the event program for a switch definition.................................................... 95
Accessing the Work with Device Entries display....................................................... 96
Adding all devices to a switch definition.............................................................. 96
Adding a device entry.......................................................................................... 96
Changing a device entry...................................................................................... 96
Removing a device entry..................................................................................... 97
Displaying a device entry .................................................................................... 97
Printing a device entry......................................................................................... 97
Displaying and ending the switch screen.................................................................. 98
Displaying the switch screen............................................................................... 98
Ending the switch screen .................................................................................... 98
Changing the logon message during a switch..................................................... 98
Chapter 6 Using the MIMIX Model Switch Framework 100
Phases of switching in MIMIX Model Switch Framework........................................ 101
Operating requirements........................................................................................... 103
Securing your MIMIX Model Switch Framework environment................................. 104
MIMIX Model Switch Framework commands.......................................................... 105
Configuring an automated switch............................................................................ 106
About the RUNSWTFWK command....................................................................... 107
RUNSWTFWK success and failure indicators ........................................................ 108
Events and status: RUNSWTFWK command is invoked.................................. 109
Events and status: Starting a planned switch to a backup system.................... 109
Events and status: Starting an unplanned switch to a backup system.............. 110
Events and status: Starting the switch synchronization .................................... 111
Events and status: Returning to the production system.................................... 112
Enabling the MIMIX Model Switch Framework........................................................ 114
Disabling the MIMIX Model Switch Framework....................................................... 114
MIMIX Model Switch Framework messages ........................................................... 115
Completing a switch after encountering errors........................................................ 116
MIMIX Model Switch Framework status codes ....................................................... 117
MIMIX Model Switch Framework user exit programs.............................................. 121
Orphaned data and objects..................................................................................... 122
Chapter 7 Working with the UPS monitor 123
UPS monitor highlights............................................................................................ 124
Checklist: UPS configuration................................................................................... 126
Evaluating battery time requirements...................................................................... 127
Ensuring the UPS monitor is always active............................................................. 129
Setting system values for the UPS monitor............................................................. 130
Setting the job priority for the UPS monitor............................................................. 131
Accessing the UPS monitor menu........................................................................... 132
5
Configuring the UPS monitor................................................................................... 133
Changing warning message text............................................................................. 135
Starting and ending the UPS monitor...................................................................... 136
Testing the UPS configuration................................................................................. 137
Updating the available UPS power.......................................................................... 138
Testing power changes ........................................................................................... 139
Displaying status for the UPS monitor..................................................................... 141
Changing the UPS subsystem................................................................................ 143
Removing the UPS monitor from the controlling subsystem............................. 143
Chapter 8 Programming for monitors 144
Adding messages to the MIMIX message log......................................................... 145
What to include in your programs............................................................................ 146
Programming for switching................................................................................ 146
Programming for the UPS monitor .................................................................... 146
Interface exit program............................................................................................. 147
Required parameters......................................................................................... 147
Condition program................................................................................................... 149
Required parameters......................................................................................... 149
Event program......................................................................................................... 150
Required parameters......................................................................................... 150
MIMIX Monitor User Access API ............................................................................. 152
MMUSRACCS member..................................................................................... 152
Authorities and locks ......................................................................................... 152
Required parameters......................................................................................... 152
MON0100 format......................................................................................... 153
MON0200 format......................................................................................... 154
Field descriptions......................................................................................... 154
Additional data structures........................................................................................ 156
Detail information format................................................................................... 156
Message Queue (*MSGQ) ................................................................................ 156
Interval (*INTERVAL) ........................................................................................ 157
J ournal (*J RN)................................................................................................... 157
Time (*TIME)..................................................................................................... 158
Group (*GROUP) .............................................................................................. 158
Error code structure........................................................................................... 159
Field descriptions .................................................................................................... 160
Monitor program examples...................................................................................... 163
Interface exit program example......................................................................... 163
Condition program example.............................................................................. 164
Event program example.................................................................................... 165
Chapter 9 Resolving problems 167
Gathering information before reporting a problem.................................................. 168
Obtaining MIMIX and IBM i information from your system................................ 168
Appendix A MIMIX Monitor commands 169
MIMIX Monitor commands by group....................................................................... 169
Master monitor commands................................................................................ 169
Monitor commands............................................................................................ 169
Switch definition commands.............................................................................. 170
6
Switch device entry commands......................................................................... 170
MIMIX Model Switch Framework commands.................................................... 170
UPS monitor commands ................................................................................... 171
Appendix B Hardware switching devices 172
Hardware switch configurations .............................................................................. 173
Local configuration - SM900A switch................................................................ 173
Remote configuration........................................................................................ 174
Switching hardware requirements..................................................................... 174
Planning for switching hardware............................................................................. 177
Related communications procedures...................................................................... 180
Defining local communications.......................................................................... 180
Defining remote communications...................................................................... 181
For autodial V.25BIS modems..................................................................... 181
For other (non-autodial) modems................................................................ 182
Appendix C Work sheets for switching hardware 184
Work sheet A: rack cards and cables...................................................................... 184
Work sheet B: device and port assignments........................................................... 185
Work sheet C: port layout........................................................................................ 185
Appendix D Copying configuration data 187
Supported upgrade paths for copying configuration data........................................ 187
Checklist: copy monitor configuration data from a previous release....................... 187
Using the CPYCFGDTA command for MIMIX Monitor...................................... 187
Index 190
7
8
Who this book is for
The Using MIMIX Monitor book is for MIMIX administrators who have a need to set up
custom monitoring for a MIMIX environment or who need to support a switching
environment which uses the MIMIX Model Switch Framework.
What is in this book
The Using MIMIX Monitor book identifies the monitors that are shipped with or
created by MIMIX products and provides operational tasks for working with monitors.
This book also describes monitoring concepts, procedures for creating user-defined
monitors and provides programming information for creating exit programs to be
called by monitors.
This book also describes the switching environment provided by MIMIX Model Switch
Framework, commands for using the switch framework, and the events and status
indicators possible during each phase of a switch performed by a switch framework.
This book also describes how to configure switch definitions to support hardware
switching.
The MIMIX documentation set
The following documents about MIMIX products are available:
Using License Manager
This book describes software requirements, system security, and other planning
considerations for installing MIMIX software and software fixes. The preferred way
to obtain license keys and install software is by using AutoValidate and the MIMIX
Installation Wizard. However, if you cannot use them, this book provides
instructions for obtaining licenses and installing software from a 5250 emulator.
This book also describes how to use the additional security functions from Vision
Solutions which are available for MIMIX products and commands through License
Manager. Also, to support compatible previous releases, this book includes
requirements and troubleshooting information for MIMIX Availability Manager.
MIMIX Administrator Reference
This book provides detailed conceptual, configuration, and programming
information for MIMIX Enterprise and MIMIX Professional. It includes checklists
for setting up several common configurations, information for planning what to
replicate, and detailed advanced configuration topics for custom needs. It also
identifies what information can be returned in outfiles if used in automation.
MIMIX Global Operations
This book provides high level concepts and operational procedures for MIMIX
Global users in an IBM i cluster environment. This book focuses on addressing
problems reported in status and basic operational procedures such as starting,
ending, and switching.
MIMIX Operations - 5250
SNA and OptiConnect Support Discontinued
9
This book provides high level concepts and operational procedures for managing
your high availability environment using MIMIX Enterprise or MIMIX Professional
from a 5250 emulator. This book focuses on tasks typically performed by an
operator, such as checking status, starting or stopping replication, performing
audits, and basic problem resolution.
Using MIMIX Monitor
This book describes how to use the MIMIX Monitor user and programming
interfaces available with MIMIX Enterprise or MIMIX Professional. This book also
includes programming information about MIMIX Model Switch Framework and
support for hardware switching.
Using MIMIX Promoter
This book describes how to use MIMIX commands for copying and reorganizing
active files. MIMIX Promoter is available with MIMIX Enterprise only.
MIMIX for IBM WebSphere MQ
This book identifies requirements for the MIMIX for MQ feature which supports
replication in IBM WebSphere MQ environments. This book describes how to
configure MIMIX for this environment and how to perform the initial
synchronization and initial startup. Once configured and started, all other
operations are performed as described in the MIMIX Operations - 5250 book.
SNA and OptiConnect Support Discontinued
With the release of MIMIX V7.0, MIMIX no longer supports configurations using SNA
or OptiConnect for communications. The parameters are still available within MIMIX
version 7.0, however, this functionality will not be tested for MIMIX V7.0. Vision
Solutions will only assist customers to determine possible workarounds with issues
arising from the use of SNA or OptiConnect for communication in MIMIX V7.0.
10
Sources for additional information
This book refers to other published information. The following information, plus
additional technical information, can be located in the IBM System i and i5/OS
Information Center.
From the Information center you can access these IBM Power
TM
Systems topics,
books, and redbooks:
Backup and Recovery
API Programming
How to contact us
11
How to contact us
For contact information, visit our Contact CustomerCare web page.
If you are current on maintenance, support for MIMIX products is also available when
you log in to Support Central.
It is important to include product and version information whenever you report
problems.
MIMIX Monitor overview
12
CHAPTER 1 MIMIX Monitor overview
MIMIX Monitor enables you to customize and control events in your MIMIX and IBM
Power
TM
Systems environments. It is shipped and installed with MIMIX Enterprise
and MIMIX Professional.
Several monitors are shipped with MIMIX to perform specific functions within your
MIMIX environment. MIMIX Monitor also provides the capability to create your own
monitors to perform a specific action by triggering an event when a specified condition
occurs on your system. Each monitor is characterized by an event class that you can
use to watch for specific predefined conditions.
This book describes the function of shipped monitors, how to perform system
operations on monitors, and how to program your own monitors. This book also
describes how to use features for switching that interact with the capabilities of MIMIX
Monitor.
You can use MIMIX Monitor to:
Aid in automating your Power
TM
Systems operations and processes. MIMIX
Monitor can often eliminate your need to manually intervene when a specific
condition occurs on your system.
Check the health of your production system and move the processes to a backup
system when unplanned downtime occurs.
Off-load your production system during planned downtime. MIMIX Monitor can
automate switching operations between your production system and your backup
system.
You can use MIMIX Monitor from a backup system with other equipment to switch
hardware devices or software interfaces from a failed production system to the
backup system. MIMIX Monitor determines the need to switch to a backup system by
examining specific objects in a configuration that indicate the status of the production
environment or an interface to determine when switching to a backup system is
necessary. You can also use this configuration for planned switching.
These objects may or may not indicate the health of a production system. When the
object cannot be recovered, condition and event programs start the actions you want
to perform. When you use this capability in a switching operation, you can have
multiple monitors examining different conditions. When all of these conditions occur,
this can trigger a switch from your production system to your backup system.
Monitor concepts
13
Monitor concepts
MIMIX Monitor manages the following types of monitors:
Monitor objects supplied with MIMIX
User-defined monitor objects
Third party-supplied monitor objects
All monitor objects identify a condition and wait for it to occur on the system. When a
monitor object detects the condition, it causes the system to take action as specified
in the event program.
MIMIX Monitor enables you to customize monitor objects to the workflow and
environment of your enterprise. You can define monitors to run immediately,
continually, at scheduled intervals, or after a particular event. You can group monitor
objects together to coordinate activity among multiple monitor objects and to control
switching operations.
Components of a monitor
You can define a monitor for just about anything. When you define a monitor, you are
creating a monitor object. The monitor object identifies the:
Event class
Information that defines the event
Programs to call when the event occurs
Event classes are predefined conditions that trigger running programs associated
with a monitor. Each monitor object identifies an event class (EVTCLS parameter)
and a set of parameters that defines the event. This set of parameters that define the
event is referred to as the predefined condition. For example, the predefined
condition for a time monitor includes the time of day and the day or date to run the
specified programs.
MIMIX Monitor supports monitor objects based on the following event classes:
*INTERVAL, *J RN, *EXDJ RN, *MSGQ, *TIME, *GROUP, and *PREDFN. For more
information, see Event classes on page 71.
In addition to the event class and the parameters that define it, each monitor object
must have one or more of the following programs:
Condition program
Event program
Interface exit program
Although each type of program is optional, every monitor must have either a condition
program or an event program before the monitor can be started. If you create a
monitor to use only an interface exit program, your program needs to control all
operations of the monitor, including running the monitor.
The condition program defines the system or program activities to be performed and
is called when the predefined conditions are met. The condition program can be used
14
to check additional conditions before the event program is run. Any additional
conditions to check that are included in the condition program are referred to as user-
defined conditions. If you do not specify a condition program, the monitor will call
the event program without any further conditional checking.
The event program defines the event or action to initiate when the conditions (both
predefined and user-defined) occur. An event program is used to handle the triggered
event by taking some user-defined action.
When you use a monitor in a switching scenario, the event program contains your
switching commands and program calls.
The interface exit program provides an optional way of associating additional
programming or information with a monitor. Except where noted, the interface exit
program is called before (pre-exit) and after (post-exit) each requested operation for a
monitor object. In effect, an interface exit program can determine which operations
(either selecting an option on a display or running a command) will be processed for a
monitor and what activities will occur before and after the requested option is
processed. Additional displays that may require a response could be programmed to
appear before or after you see the display for the selected option.
For more information, see the following topics in the chapter Programming for
monitors on page 144
What to include in your programs on page 146
Condition program on page 149
Event program on page 150
Interface exit program on page 147
Switching concepts
Switching is commonly used to maintain high availability and prevent unplanned
downtime. Planned switches can also be performed for system maintenance,
backups, or for workload balancing.
Two features of MIMIX can assist you with switching in a MIMIX environment:
Switch definitions for automating and customizing switching. Switch definitions
permit the customization of your switching environment. Switch definitions identify
the participating systems, the devices, applications, commercially available
switching hardware, or TCP/IP addresses to be switched, and an event program
containing your customized switching program. A group monitor associated with
the switch definition provides the capability of defining multiple events that will
participate in the decision to switch.
MIMIX Model Switch Framework. The MIMIX Model Switch Framework provides a
consistent framework for performing planned or unplanned switches through a set
of commands and programs. MIMIX Model Switch Framework is the basis on
which newer, simplified switching user interfaces operate, such as the MIMIX
MIMIX Switch Assistant