| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- manage the fault injection test harness
th_managenameinstancecommand
th_managepathcommand
th_manage applies the action specified bycommand to the instance specified byinstance of the driver specified byname (or the driver instance specifiedbypath). The driver instance must be running fault injection specifications (errdefs) definedbyth_define(1M).
th_manage supports several commands that operate on the driver instance specified byname andinstance (orpath). The commands are:
Awaken allth_define processes, causing them to display their current status and exit if the errdef is now defunct (that is, ifcount,failcount, andacc_chk are all zero).
Awaken allth_define processes. Ifcount andfailcount are already zero, then setacc_chk to zero, so thatth_define exits once it has displayed its status.
Awaken allth_defineprocesses.count,failcount andacc_chk are all set to zero so that allth_define commands exit once they have displayed their status.
Awaken allth_define processes. Ifcount is already zero, setfailcount andacc_chk to zero, so thatth_define exits once it has displayed its status.
List all the access handles.
Begin or resume execution of all errdefs.
Suspend all errdefs for thisname andinstance (orpath).
Example 1 Useful Commands
To begin the tests, enter:
#th_managefoo0start
To check the status of the errdefs, enter:
#th_managefoo0broadcast
This causes eachth_define process to print out its current status.
If the driver has reported a fatal error, you can take thedriver offline usinglibdevice, clear the error condition by entering:
#th_managefoo0clear_acc_chk
or
#th_managefoo0clear_errors
and bring the driver online again usinglibdevice.
To terminate testing, enter:
#th_managefoo0clear_errdefs
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |