man ptal-devid (Administration système) - hpoj reference: CWptal-devid
NAME
hpoj reference: CWptal-devid
SYNOPSIS
ptal-devid [devname] [-previous] [[modifiers] queries]...
DESCRIPTION
The CWptal-devid command-line utility displays the entire device ID string of a device, or specific fields if requested.
OPTIONS
- •
- CWCIdevnameCW is the optional PTAL device name
- •
- CWCImodifiersCW affect subsequent CWCIqueriesCW and may be one of:
- •
- CW-previous Retrieves previous device ID string if possible
- •
- CW-short Displays field values only
- •
- CW-long Displays leading field name through semicolon (default)
- •
- CWCIqueriesCW request specific fields to be displayed instead of the entire string, and may be zero or more of:
- •
- CW-field CIfieldnameCW Queries specific field
- •
- CW-mfg Queries manufacturer fields
- •
- CW-mdl Queries model fields
- •
- CW-cmd Queries command-set fields
- •
- CW-sern Queries serial-number fields
EXAMPLES
All of the following examples are for a USB-connected HP OfficeJet G85. In the first example, line breaks were added between fields in this document for clarity. Normally, the entire device ID string is printed as one line, and it should line-wrap on your display.
$ ptal-devid mlc:usb:OfficeJet_G85 MFG:Hewlett-Packard; MDL:OfficeJet G85; CMD:MLC,PCL,PML,SCL; CLASS:PRINTER; DESCRIPTION:Hewlett-Packard OfficeJet G Series; 1284.3M:f7f,f7f; 1284.4DL:4d,4e,1; SERN:SGA9A10174VF; VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K0,C0,DP,NR,KP053,CP061; AiO:0; DW-PCL;
$ ptal-devid mlc:usb:OfficeJet_G85 -long -mfg -mdl -cmd
MFG:Hewlett-Packard; MDL:OfficeJet G85; CMD:MLC,PCL,PML,SCL;
$ ptal-devid mlc:usb:OfficeJet_G85 -short -mfg -mdl -cmd
Hewlett-Packard OfficeJet G85 MLC,PCL,PML,SCL
NOTES
If no modifier or CWCIqueryCW switches are specified, then by default the entire device ID string is displayed. Otherwise, only the requested field(s) are queried. Blank lines are displayed in the place of requested fields that aren't present. The CW-short and CW-long modifiers must be specified before the query options you want them to affect. The CW-previous switch is useful for determining what model is attached in cases where CWptal-mlcd is unable to establish communication with the device. It has no effect on JetDirect-connected devices. If you specify CW-previous, then it must come after the device name (if specified) and before all other options. Currently, both CWptal-mlcd and JetDirect cache the device ID string, and the device ID string is not re-read from the device each time you invoke CWptal-devid. To get a fresh copy of the device ID string, you must either power-cycle or disconnect/reconnect the device, both of which interrupt the communication session with the device. However, disconnecting/reconnecting the network cable will not help.