TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-134
#DEVICEINFO Built-In Function
#DEVICEINFO Built-In Function
Use #DEVICEINFO to obtain information about a device.
option
identifies the specific information you are requesting. It must be one of these:
AUDITED
requests the value of the AUDITED flag of the specified device or file. If the
AUDITED flag is set for a device, files audited by the TMF subsystem can
reside on the device. If the AUDITED flag is set for a file, the file is audited by
TMF. For more information, see the TMF Reference Manual.
DEVICETYPE
requests the device type.
RECORDLENGTH
requests the device physical record length, in bytes.
SUBTYPE
requests the device subtype.
Device type and subtype are represented as decimal integers; see the
Guardian Procedure Calls Reference Manual for the type and subtype values.
device-name
is the syntactically correct name of a device to be examined (or the process that
drives it).
file-name
is the syntactically correct name of a file stored on the device to be examined.
Result
#DEVICEINFO returns the information requested by the options. If you specify more
than one option, #DEVICEINFO lists the items of information, separated by spaces, in
the same order as the option requests. If you specify a device or file that does not
exist, or if an error occurs, #DEVICEINFO returns the following:
•
0 for AUDITED, DEVICETYPE, and SUBTYPE
•
132 for RECORDLENGTH
#DEVICEINFO / option [ , option ] ... /
{ device-name | file-name }