TotalNET Advanced Server 5.2 Reference Manual

tnstype

This command allows you to specify service types that TAS services define. You can list, read the attribute values of, add, modify, and delete service types.

This release of TAS supports file, print, terminal, and NVT services. The LM-NT-OS/2 realm uses file and terminal services, the NetWare realm uses file, terminal, and NVT services, and the AppleTalk realm uses file and print services.

Location

TNHOME/usr/sbin

Usage

tnstype [-L [-r realm]]
tnstype [-R [-r realm [-t type [{-a attribute}]]]]
tnstype [(-A|-M) -r realm -t type {-a attribute=value}]
tnstype [-D -r realm -t type]

Options

Note

You cannot delete a service type from a realm if a service of that type exists in the realm.

Attributes

description

This attribute describes the service. It has no default.

Usage:

tnstype -M -r realm -t type -a description="string"

fixed-socket

This attribute specifies the fixed socket number for the NetWare service configured to the IPX/SPX protocol. Currently, this attribute exists only for backward compatibility by service types developed before the existence of the generalized IPX SAP protocol. For example, the NetWare file service always has socket number 0x651.

Usage:

tnstype -M -r realm -t type -a fixed-socket=number

protocol

This attribute defines the protocol for the defined service type. Choose from the following:

Usage:

tnstype -M -r realm -t type -a protocol=protocol

type

This attribute defines the physical type code for the service type of the LM-NT-OS/2 and NetWare realms, a 16-bit hexadecimal number. The AppleTalk realm has a code number string. This attribute has no default.

Usage:

tnstype -M -r realm -t type -a type=physical-type-code

Examples

  1. Use one of the following commands to list service types available for the entire system:


    tnstype
    tnstype -L

    Sample Output:

    NB

     

    file

     

    term

    NW

     

    term

     

    nvt

     

    file

  2. Use the following command to list all services and their attribute values:


    tnstype -R
  3. Use the following command to list the value of the attribute protocol, for terminal services in the NetWare realm:


    tnstype -R -r NW -t term -a protocol
  4. Use the following command to add the file service type to the AppleTalk realm:


    tnstype -A -r AT -t file
  5. Use the following command to delete the nvt service type from the NetWare realm:


    tnstype -D -r NW -t nvt