System Administration Guide: Solaris Printing
Previous Next

Obtaining Information About Discovered Printers

How to Obtain Information about Discovered Printers by Using the Command Line

  • 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.

Example 10-2 Obtaining information About Discovered Printers by Using the Command Line

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%

How to Obtain Additional Details About Discovered Printers by Using the Command Line

  • On the system that you want to obtain additional information 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

    After a printer has been discovered, configure the print queue by using the automatic printing configuration feature in the GNOME Desktop Environment or by using the lpadmin command. To configure the print queue in the GNOME Desktop Environment, see How to Add a Newly Discovered Printer in the GNOME Desktop Environment. To configure the print queue by using LP print commands, see How to Add a New Directly Attached Printer by Using LP Print Service Commands.

Example 10-3 Obtaining Additional Details about Discovered Printers by Using the Command Line
    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%
Previous Next