On the system that you want to get information about discovered printers, type:
system% hal-find-by-capability --capability printer |
The output shows you all of the printers that have been discovered by the system.
To obtain additional details about discovered printers, type:
zsh% for udi in $(hal-find-by-capability --capability printer) ; do ; lshal --show $udi --long ; done |
Or, if you are using a shell that does not support the use of $(command), type:
sh% for udi in `hal-find-by-capability --capability printer` ; do ; lshal --show $udi --long ; done |
This example shows all of the devices discovered by the system, snoopy.
snoopy% hal-find-by-capability --capability printer
/org/freedesktop/Hal/devices/pci_0_0/pci1022_7460_6/pci108e_534d_3_1/printer_2_printer_0
snoopy%
|
zsh% for udi in $(hal-find-by-capability --capability printer) ; \
do ; lshal --show $udi --long ; done udi = \
'/org/freedesktop/Hal/devices/pci_0_0/pci1022_\
7460_6/pci108e_534d_3_1/printer_2_printer_0'
info.claimed.uid = 24656 (0x6050) (int)
info.claimed.service = 'gnome-volume-manager' (string)
info.claimed = true (bool)
printer.commandset = {'PJL', 'MLC', 'BIDI-ECP', 'PCLXL', 'PCL',
'PDF', 'PJL', 'MIME', 'POSTSCRIPT'} (string list)
printer.description = 'Hewlett-Packard color LaserJet 4650' (string)
printer.serial = '00000D920NSL' (string)
printer.product = 'hp color LaserJet 4650' (string)
printer.vendor = 'Hewlett-Packard' (string)
printer.device = '/dev/printers/1' (string)
info.capabilities = {'printer'} (string list)
info.category = 'printer' (string)
info.solaris.driver = 'usbprn' (string)
solaris.devfs_path =
'/pci@0,0/pci1022,7460@6/pci108e,534d@3,1/printer@2:printer' (string)
info.product = 'printer' (string)
info.udi =
'/org/freedesktop/Hal/devices/pci_0_0/pci1022_7460_6/pci108e_534d_3_1/printer_2_printer_0'...)
info.parent =
'/org/freedesktop/Hal/devices/pci_0_0/pci1022_7460_6/pci108e_534d_3_1/printer_2_if0_0'...)
zsh%
|