HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
o
olrad(1M) olrad(1M)
When performing an OL* operation on a slot,
olrad runs pref_replace and prep_replace scripts
in the pre-OL* phase and
post_add and
post_replace driver scripts in post-OL* phase.
There are no
preface and prepare driver scripts for OLA (online add).
For a given OL* operation on a slot,
pref_replace driver scripts are run for the affected slots (if any)
irrespective of the type of operation being performed on the given slot.
An audit trail is logged onto
NetTL log file whenever an OLA/OLR operation is initiated. This informa-
tion is also written to standard output.
Logging
olrad uses the NetTL subsystem to log errors and audit trail for all OLA/R operation performed on
various slots.
olrad makes use of the sysadmin subsystem formatter to format the log messages.
The following details are not logged:
• CRA report when performing OLA/R,
• CRA report when using the
-C
option,
• Output of view information options such as -v, -c, -g, -h, -q, and -n.
EXAMPLES
Adding a New Card
1. Get the information about all the OLA/R capable slots. Make note of the slot_id field:
/usr/bin/olrad -q
2. Prepare to add:
/usr/bin/olrad -a slot_ID
3. Physically insert the card into the slot.
4. Post add:
/usr/bin/olrad -A slot_ID
Replacing a Card
1. Get information about all the OLA/R capable slots. Make note of the slot_id field:
/usr/bin/olrad -q
2. Prepare to replace:
/usr/bin/olrad -r slot_ID
3. Replace the faulty card in the slot with a working card. The new card must be identical as the card
being replaced.
4. Post Replace:
/usr/bin/olrad -R slot_ID
RETURN VALUE
olrad returns the cra-return values when invoked for -C (cra-only) option. The valid values are as fol-
lows:
0 CRA_SUCCESS
1 CRA_WARNING
2 CRA_DATA_CRITICAL
3 CRA_SYS_CRITICAL
4 CRA_ERROR
For all other options olrad returns the following:
0 Successful completion.
-1 On failure. olrad also logs a message on the NetTL log file and to standard error.
FILES
NetTL log file containing olrad audit trail and errors.
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 1M−−579