TotalNET Advanced Server 5.2 Reference Manual

tnpref

This command allows you to manage printer references made to file services. It performs the following functions: list, read the attribute values of, create, and delete printer references.

Within TAS, each file service has a list of printers it exports. Since any number of distinct file services for distinct realms can export the same printer name, exported printers receive a list of printer references. The real printers and attributes have system-level definition (see "tnprinter"). AppleTalk file services do not use printer references, because AppleTalk uses independently configured print services.

Location

TNHOME/usr/sbin

Usage

tnpref [-L [-r realm [-s service]]]
tnpref [(-A|-D) [-r realm [-s service [-p printer]]]]

Options

-p printer

Specify a printer name. 

Examples

  1. Use either of the following commands to list all available printer references for all file services in all realms:


    tnpref
    tnpref -L

    Sample Output:

    NB 

     

    lmpac:file 

     

     

    blahprn 

     

    lmpacman:tty:term 

     

     

    blark:file 

    NW 

     

    nwmyhost:file 

     

     

    lhpprn 

     

    blahprn 

     

    nwmyhost:term 

    nwmyhost:nvt 

     

     

  2. Use the following command to list all printer references for the file service test in the NetWare realm:


    tnpref -L -r NW -s test:file

    Sample Output:


    lhpprn
    blahprn
  3. Use the following command to add the printer hpprn to the LM-NT-OS/2 realm file service myhost:


    tnpref -A r NB -s myhost:file -p hpprn
  4. Use the following command to delete the printer reference hpprn from the file service nwmyhost in the NetWare realm:


    tnpref -D -r NW -s nwmyhost:file -p hpprn