HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

s
scsimgr(1M) scsimgr(1M)
scsimgr get_attr -N attr_scope
For instance, if you add the scope corresponding to all disk devices from HP:
’/escsi/esdisk/0x0/HP
, to list attributes which can be set at this level
and their values, run the following command:
scsimgr get_attr -N ’/escsi/esdisk/HP ’ settable
For description of attributes, refer to the manpage of the
scsimgr plug-in for the
corresponding driver.
disable/enable
Disables/enables a SCSI object. Upon disable, the object cannot be used to transfer I/Os. If
the disabled object is a LUN, all pending I/Os are aborted for that LUN. Currently sup-
ported SCSI objects are LUNs and LUN paths.
The SCSI object can be disabled either administratively by invoking the disable command,
or by the SCSI stack upon detection of certain types of critical errors. When this condition
has occurred, HP-UX logs a message in
syslog which informs the user that a SCSI object
has been disabled. In the case of the SCSI stack disabling the SCSI object, the system
administrator, after resolving the problem on the device, can invoke the
enable command
to resume data transfers on the SCSI object.
Usage:
scsimgr enable identifier
scsimgr [-f] disable identifier
Note:
disable and enable operations are currently only supported on block devices and their LUN
paths.
identifier identifies either a LUN or a LUN path.
erase Pre-erase the whole medium for magneto-optical devices that support write without erase.
Usage:
scsimgr [-f] erase identifier
Note: identifier identifies only a LUN.
get_attr Displays information of global attributes or attributes of a SCSI object or a group of SCSI
objects. All the values of the attribute (current, saved and default) are displayed. The
displayed values can be restricted by using the appropriate keyword (in other words --
current, saved, and default).
All settable or read-write attributes are system-wide; in other words, they do not depend on
the kernel instance used to boot the system. The output is guaranteed to remain
unchanged across scsimgr releases for an attribute name-value pair.
The -v option displays a brief description for each attribute.
The -p option displays the values of the attributes requested on a single line and separated
with the colon delimiter (:). By default the current value is displayed. Saved and default
values can be requested using the corresponding keyword. The -p option requires a list of
attributes using the "-a attribute"option.
If no identifier or keyword for a group of SCSI objects is specified, get_attr displays glo-
bal generic attributes (in other words, global attributes common to all class and interface
drivers).
If an identifier or a keyword for a group of SCSI objects is specified, get_attr displays
generic attributes (in other words, attributes commonly defined for all class or interface
drivers). It also displays class and/or interface driver specific attributes if any, if the driver
provides a scsimgr plug-in module. So there is no need to specify "-d driver"todisplay
driver specific attributes. However, to display global attributes maintained by a class or
interface driver, you must specify the option "-d driver" without any SCSI object identifier
or keyword for a group of SCSI objects.
The list of generic attributes currently supported by scsimgr is described in the Table:
scsimgr Attributes section later in this manpage. To view the list of specific attributes
314 Hewlett-Packard Company 6 HP-UX 11i Version 3: February 2007