You can use SMIT to define your customized cluster event
script.
About this task
Pre and post event scripts can be specified directly by entering the full path to your script, or
you can define a custom event as described below. You can specify multiple scripts or custom event
names separated by commas.
If you do not want to configure custom events and simply specify a full path instead, you can
proceed directly to Configuring pre-event and post-event processing.
To define your customized cluster event scripts:
Procedure
- From the command line, enter
smit sysmirror
- In SMIT, select and
press Enter.
- Enter the field values as follows:
Table 1. Add
a Custom Event Command fields
| Field |
Value |
| Cluster Event Name |
Enter a name for the command. The name can have a maximum of
64 characters. |
| Cluster Event Description |
Enter a short description of the event. |
| Cluster Event Script Filename |
Enter the full pathname of the user-defined script to execute. |
- Press Enter to add the information to PowerHA® SystemMirror®custom class
in the local PowerHA SystemMirror Configuration
Database (ODM).
- Go back to the Events menu and select Verify
and Synchronize Cluster Configuration (Advanced) to synchronize
your changes across all cluster nodes.
Note: Synchronizing
does not propagate the actual new or changed scripts; you must add
these to each node manually.