![]() |
HP OpenVMS systems documentation |
| Previous | Contents | Index |
OpenVMS and Windows execute the User Action procedure somewhat differently, as explained in the following paragraphs. |
The following notes pertain to writing and executing User Action commands or command procedures. These notes apply to User Actions on both OpenVMS and Windows systems.
AMGR/KOINE -- 13-Apr-2001 15:33:02.531 --<0,CFGDON>KOINE configuration done AMGR/KOINE -- 13-Apr-2001 15:33:02.531 --<0,CFGDON>KOINE configuration done (User Action issued for this event on the client O/S) |
The User Action procedure and arguments are passed as string values to the DCL command interpreter as follows:
SUBMIT/NOPRINTER/LOG user_action_procedure arg_1 arg_2 arg_3 arg_4
where:
| Argument | Description |
|---|---|
| arg_1 | Node name of the node that generated the event. |
| arg_2 | Date and time that the event was generated. |
| arg_3 | Name of the event. |
| arg_4 | Description of the event. |
The Availability Manager does not interpret the string contents. You can supply any content in the User Action procedure that DCL accepts in the OpenVMS environment for the user account running the Data Analyzer. However, if you include arguments in the User Action procedure, they might displace or overwrite arguments supplied by the Availability Manager.
A suitable batch queue must be available on the Data Analyzer computer to be the target of the SUBMIT command. See the HP OpenVMS DCL Dictionary for the SUBMIT, INITIALIZE/QUEUE, and START/QUEUE commands for use of batch queues and the queue manager.
The following is an example of a DCL command procedure:
$ if (p3.eqs."DSKOFF").and.(p1.eqs."PAYROL") $ then $ mail/subject="''p2' ''p3' ''p4'" urgent_instructions.txt call_center,finance,adams $ else $ mail/subject="''p2' ''p3' ''p4'" instructions.txt call_center $ endif |
The pn numbers in the DCL procedure correspond in type, number, and position to the arguments in the preceding table.
You might use a procedure like this one to notify several groups if the
payroll disk goes off line, or to notify the call center if any other
event occurs.
7.6.2.2 Executing a Procedure on a Windows System
The user action procedure and arguments are passed as string values to the Windows command interpreter as follows:
"AT time CMD/C user_action_procedure arg_1 arg_2 arg_3 arg_4"
where:
The file name must follow Windows file-naming conventions. However, due to the processing of spaces in the Java JRE, HP recommends that you do not use spaces in a path or file name. HP recommends that you use a batch file to process and call procedures and applications. |
The Availability Manager does not interpret the string contents. You can supply any content in the string that the Windows command-line interpreter accepts for the user account running the Data Analyzer. However, if you include arguments in the User Action procedure, they might displace or overwrite arguments supplied by the Availability Manager.
You cannot specify positional command-line switches or arguments to the AT command, although you can include switches in the User Action procedure substring as qualifiers to the user-supplied command. This is a limitation of both the Windows command-line interpreter and the way the entire string is passed from the Availability Manager to Windows.
The Schedule service must be running on the Data Analyzer computer in order to use the AT command. However, the Schedule service does not run by default. To start the Schedule service, see the Windows documentation for instructions in the use of the CONTROL PANEL->SERVICES->SCHEDULE->[startup button].
To set up a user action, follow these steps:
c:\send_message.bat |
Figure 7-17 User Action Example
The command line parameters are automatically added when Availability Manager passes the command to the command processor.
The contents of "send_message.bat" are the following:
net send affc17 "P4:system event: %1 %2 %3 %4"
|
On the target node, AFFC17, a message similar to the following is displayed:
You can now apply the User Action to one node, all nodes, or a group of
nodes, as explained in Section 7.6.2.
7.7 Customizing Security Features
The following sections explain how to change these security features:
OpenVMS Data Collector nodes can have more than one password: each password is part of a security triplet. (Windows nodes allow you to have only one password per node.) |
You can change the passwords that the Windows Data Analyzer uses for
OpenVMS Data Collector nodes and for Windows Data Collector nodes. The
following sections explain how to perform both actions.
7.7.1.1 Changing a Data Analyzer Password for an OpenVMS Data Collector Node
When you click Customize OpenVMS... on the Customize menu of the Application window, the Availability Manager displays a default customization page. On it is a tab marked Security, which, if you select it, displays the OpenVMS Security Customization page shown in Figure 7-18.
Figure 7-18 OpenVMS Security Customization Page
To change the default password for the Data Analyzer to use to access OpenVMS Data Collector nodes, enter a password of exactly 8 uppercase alphanumeric characters. The Availability Manager will use this password to access OpenVMS Data Collector nodes. This password must match the password that is part of the OpenVMS Data Collector security triplet (see Section 7.7.2).
When you are satisfied with your password, click OK.
Exit the Availability Manager, and restart the application for the password to
take effect.
7.7.1.2 Changing a Data Analyzer Password for a Windows Data Collector Node
When you click Customize Windows NT... on the Customize menu of the Application window, the Availability Manager displays a Windows Security Customization page (Figure 7-19).
Figure 7-19 Windows Security Customization Page
To change the default password for the Data Analyzer to use to access Windows Data Collector nodes, enter a password of exactly 8 alphanumeric characters. Note that this password is case sensitive; any time you type it, you must use the original capitalization.
This password must also match the password for the Windows Data Collector node that you want to access. (See Section 7.7.3 for instructions for changing that password.)
When you are satisfied with your password, click OK.
Exit and restart the Availability Manager for the password to take effect. affc
7.7.2 Changing Security Triplets on OpenVMS Data Collector Nodes
To change security triplets on an OpenVMS Data Collector node, you must
edit the AMDS$DRIVER_ACCESS.DAT file, which is installed on all Data
Collector nodes. The following sections explain what a security triplet
is, how the Availability Manager uses it, and how to change it.
7.7.2.1 Understanding OpenVMS Security Triplets
A security triplet determines which nodes can access system data from an OpenVMS Data Collector node. The AMDS$DRIVER_ACCESS.DAT file on OpenVMS Data Collector nodes lists security triplets.
On OpenVMS Data Collector nodes, the AMDS$AM_CONFIG logical translates to the location of the default security file, AMDS$DRIVER_ACCESS.DAT. This file is installed on all OpenVMS Data Collector nodes.
A security triplet is a three-part record whose fields are separated by backslashes (\). A triplet consists of the following fields:
The exclamation point (!) is a comment delimiter; any characters to the right of the comment delimiter are ignored.
All Data Collector nodes in group FINANCE have the following AMDS$DRIVER_ACCESS.DAT file:
*\FINGROUP\R ! Let anyone with FINGROUP password read
!
2.1\DEVGROUP\W ! Let only DECnet node 2.1 with
! DEVGROUP password perform fixes (writes)
|
The configuration files for DECamds and the Availability Manager are separate; only one set is used, depending on which startup command procedure you use to start the driver. See Installing the Availability Manager on OpenVMS Alpha Systems and Running DECamds and the Availability Manager Concurrently for a further explanation of the configuration file setup for both DECamds and the Availability Manager. |
On each Data Collector node on which you want to change security, you must edit the AMDS$DRIVER_ACCESS.DAT file. The data in the AMDS$DRIVER_ACCESS.DAT file is set up as follows:
Network address\password\access
|
Use a backslash character (\) to separate the three fields.
To edit the AMDS$DRIVER_ACCESS.DAT file, follow these steps:
$ ANALYZE/SYSTEM SDA> SHOW LAN |
SDA> SHOW LAN/DEVICE=xxA0 |
The following security triplets are all valid; an explanation follows the exclamation point (!).
*\1decamds\r ! Anyone with password "1decamds" can monitor *\1decamds\w ! Anyone with password "1decamds" can monitor or write 2.1\1decamds\r ! Only node 2.1 with password "1decamds" can monitor 2.1\1decamds\w ! Only node 2.1 with password "1decamds" can monitor and write 08-00-2b-03-23-cd\1decamds\w ! Allows a particular hardware address to write 08-00-2b-03-23-cd\1decamds\r ! Allows a particular hardware address to read node |
OpenVMS Data Collector nodes accept more than one password. Therefore, you might have several security triplets in an AMDS$DRIVER_ACCESS.DAT file for one Data Collector node. For example:
*\1DECAMDS\R *\KOINECLS\R *\KOINEFIX\W *\AVAILMAN\C |
In this example, Data Analyzer nodes with the passwords 1DECAMDS and KOINECLS would be able to see the Data Collector data, but only the Data Analyzer node with the KOINEFIX password would be able to write or change information, including performing fixes, on the Data Collector node. The Data Analyzer node with the AVAILMAN password would be able to perform switched LAN fixes.
If you want, you can set up your AMDS$DRIVER_ACCESS.DAT file to allow anyone in the world to read from your system but allow only certain nodes to write or change process or device characteristics on your system.
After editing the AMDS$DRIVER_ACCESS.DAT file, you must stop and then restart the Data Collector. This action loads the new data into the driver. |
The Availability Manager performs these steps when using security triplets to ensure security among Data Analyzer and Data Collector nodes:
Table 7-4 describes how the Data Collector node interprets a security triplet match.
| Security Triplet | Interpretation |
|---|---|
| 08-00-2B-12-34-56\HOMETOWN\W | The Data Analyzer has write access to the node only when the Data Analyzer is run from a node with this hardware address (multiadapter or DECnet-Plus system) and with the password HOMETOWN. |
| 2.1\HOMETOWN\R | The Data Analyzer has read access to the node when run from a node with DECnet for OpenVMS Phase IV address 2.1 and the password HOMETOWN. |
| *\HOMETOWN\R | Any Data Analyzer with the password HOMETOWN has read access to the node. |
To change the Data Collector password in the Registry, follow these steps:
| Previous | Next | Contents | Index |