|
||||||||||||||||||
1. Introduction to Printing in the Solaris Operating System 2. Planning for Printing in the Solaris Operating System (Tasks) 3. Setting Up Printing Services (Tasks) 4. Setting Up Printers (Tasks) 5. Administering Printers by Using Solaris Print Manager and LP Print Commands (Tasks) 6. Administering Printers That Use Network Printing Protocols (Tasks) 7. Customizing Printing Services and Printers (Tasks) 8. Administering Character Sets, Filters, Forms, and Fonts (Tasks) 9. Administering Printers by Using the PPD File Management Utility (Tasks) 10. Setting Up and Administering Printers From the Desktop (Tasks) Introduction to the OpenSolaris Print Manager Managing Printers and Printer Queues (Task Map) Getting Started With the OpenSolaris Print Manager Setting Up Printers by Using the OpenSolaris Print Manager Managing Printer Groups and Print Jobs (Task Map) Managing Print Manager and Printer Preferences (Task Map) Managing Print Manager and Printer Preferences 11. Printing in the Solaris Operating System (Reference) 12. Troubleshooting Printing Problems (Tasks) |
Managing Network Device Discovery Services (Task Map)
How Auto‐Discovery of Devices WorksDiscovery of devices, including printers, is accomplished through the Hardware Abstraction Layer (HAL) device registry (database) component. HAL uses D-BUS messaging to notify interested applications about changes to its registry. D-BUS is a messaging bus that passes messages between applications and broadcasts signals that interested applications are able to detect. This messaging service is used by HAL and a number of other applications. HAL provides the framework for device discovery and notification of device configuration changes on a system. In the Solaris release, this support has been extended to detecting printers that are added or removed from a local system. The HAL daemon, hald, provides a view of devices that are attached to a local system. This view is updated automatically, as a system's hardware configuration changes, by hotplugging or by other methods. HAL's internal database, also called the HAL device tree, is where device information is stored and maintained. HAL devices are uniquely identified in the HAL database through a Universal Device Identifier (UDI). This database is populated with properties of each device in the HAL database. The automatic printing configuration feature works with the HAL daemon by listening for sysevents. When a hotplug-capable printer is added to a system, HAL creates a new node in the HAL device tree, as shown in the following example: /org/freedesktop/Hal/devices/pci_0_0/pci1022_74606/pci108e_534d_3_1/printer_2_0_if0/print When the device node has been successfully registered in the HAL database, HAL signals interested applications that the device is available. Device removal works similarly. For more information about HAL, see http://opensolaris.org/os/project/tamarack/. The network device discovery components are standard service interfaces that are offered by classes of network‐attached devices. This module is capable of actively scanning a network for new devices. The service is directly controlled through the svcadm interface. For more information, see the svcadm(1M) man page. svcadm(1M). To determine the device type, an active scan is performed through a Simple Network Management Protocol version 1 (SNMPv1) broadcast. Be default, the SNMP based network‐attached printer discovery service probes the network for printers every 60 seconds. This property is configurable. See Configuring Auto-Discovery Settings for Network-Attached Printers. During this active scan, SNMP determines the device type by attempting to connect to the device. Note - Only active device discovery is available in this Solaris OS. Passive device discovery through the Multicast DNS (mDNS) is not available. Adding Newly Discovered Printers From the DesktopYou can use OpenSolaris Print Manager to configure newly discovered directly attached or newly discovered network‐attached printers from the desktop. By default, the system automatically discovers directly attached USB printers. The system also discovers network‐attached printers, if the network device discovery service has been enabled. See How to Enable the Network Device Discovery Service.
Note - In the OpenSolaris 2008.11 release, attempts to enable the HAL add‐on module from the desktop or by using SMF commands, cause the system to revert to maintenance state. This problem does not occur if you are running a supported Solaris Express Community Edition release. To enable this service in the OpenSolaris 2008.11 release, you must first install the SUNWSmmgr package. For detailed instructions, go to http://www.opensolaris.org/os/project/indiana/resources/relnotes/200811/x86/. Notification of Printing Events in the DesktopThe panel notification icon is a printer icon that is displayed in panel notification area of the desktop to notify you when:
To get more information, click the printer icon.
Note - Notification messages that are not manually closed disappear after 5 seconds. Preferences for notification messages can be viewed and changed in the Printer Preferences dialog. For more information, see Managing Print Manager and Printer Preferences. Panel Notification Icon Context MenuThe following table describes the menu items that are available when you right-click the panel notification icon.
For more information about viewing or changes preferences for notifications, see Managing Print Manager and Printer Preferences. How to Enable the Network Device Discovery ServiceBy default, the OpenSolaris Print Manager automatically discovers and configures USB printers that are directly connected to your system. Print Manager also has the ability to discover and configure printers that are on a network after the network device discovery service has been enabled. Note - Note that in the OpenSolaris 2008.11 release, this service cannot be enabled from the desktop until you install the SUNWSmmgr package. If you attempt to enable the service before installing this package, the system reverts to maintenance state. For detailed instructions, go to http://www.opensolaris.org/os/project/indiana/resources/relnotes/200811/x86/.
How to Initiate the Network Device Discovery Services by Using SMFThis procedure describes how to initiate, as well as disable, the network device-discovery/printers service (the HAL add-on module) by using the SMF.
How to Determine Which Printers Are Known to the System
Example 10-1 Determining Which Printers Are Known to the SystemThis 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% Example 10-2 Obtaining Additional Details about Printers That Are Known to the Systemzsh% 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% |
|||||||||||||||||
|