System Administration Guide: Solaris Printing

ProcedureHow to Set Printer Option Values That Remain Over a System Reboot

  1. Become superuser, lp, or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Set one or all options.


    # svccfg
    svc:> select svc:/application/print/server
    svc:/application/print/server> setprop property = value
    .
    .
    .
    svc:/application/print/server> quit
    

    For each option that you want to set, repeat the setprop property = value command on a separate line.

  3. Verify that the option has been correctly set by displaying the current values of the print server properties.


    # svcprop svc:/application/print/server
    
  4. Restart the print scheduler.

    • If the print scheduler is not running, use the following commands:


      # svcadm refresh svc:/application/print/server
      # svcadm enable svc:/application/print/server
      
    • If the print scheduler is running, use the following commands:


      # svcadm refresh svc:/application/print/server
      # svcadm restart svc:/application/print/server
      

    To determine if the print scheduler is running, run the svcs application/print/server command.


Example 5–4 Setting Printer Option Values That Remain Over a System Reboot

This example shows how to set the number of filters to 1. This option will remain set over a system reboot, or if you restart the print scheduler.


# svccfg
svc:> select svc:/application/print/server
svc:/application/print/server> setprop lpsched/num_filters = count: 1
svc:/application/print/server> quit

This example shows how to set all options.


# svccfg
svc:> select svc:/application/print/server
svc:/application/print/server> setprop lpsched/num_filters = count: 1
svc:/application/print/server> setprop lpsched/num_notifiers = count: 1
svc:/application/print/server> setprop lpsched/fd_limit = count: 4096
svc:/application/print/server> setprop lpsched/reserved_fds = count: 2
svc:/application/print/server> quit

The following is a sample script that sets all options.


#!/bin/ksh

svccfg <<-EOF
select svc:/application/print/server
setprop lpsched/num_filters = count: 1
setprop lpsched/num_notifiers = count: 1
setprop lpsched/fd_limit = count: 4096
setprop lpsched/reserved_fds = count: 2

EOF