Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyadm(1M) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pmadm(1M)

sacadm(1M)

sttydefs(1M)

ttymon(1M)






       ttyadm(1M)                                                ttyadm(1M)


       NAME
             ttyadm - format and output port monitor-specific information

       SYNOPSIS
             /usr/sbin/ttyadm [-b] [-c] [-r count] [-h] [-i msg] [-m modules]
                   [-p prompt] [-t timeout] [-o] -d device -l ttylabel -s service
             /usr/sbin/ttyadm -V

       DESCRIPTION
             The ttyadm command formats data from ttymon(1M) and writes it
             to standard output, from where it can be used by the
             sacadm(1M) and pmadm(1M) commands to update the administrative
             file for ttymon.  The Service Access Facility (SAF) requires
             each port monitor to provide such a command.

             ttyadm is the front-end for the ttymon Daemon Mode.  [See
             ttymon(1M)].

             -b            Sets the ``bidirectional port'' flag.  When this
                           flag is set, the line can be used in both
                           directions.  ttymon will allow users to connect
                           to the service associated with the port, but if
                           the port is free, uucico, cu, or ct can use it
                           for dialing out.

             -c            Sets the connect-on-carrier flag for the port.
                           If the -c flag is set, ttymon will invoke the
                           port's associated service immediately when a
                           connect indication is received (that is, no
                           prompt is printed and no baud-rate searching is
                           done).

             -d device     device is the full pathname of the device file
                           for the TTY port.

             -h            Sets the hangup flag for the port.  If the -h
                           flag is not set, ttymon will force a hangup on
                           the line by setting the speed to zero before
                           setting the speed to the default or specified
                           value.

             -i message    Specifies the inactive (disabled) response
                           message.  This message will be sent to the TTY
                           port if the port is disabled or the ttymon
                           monitoring the port is disabled.



                           Copyright 1994 Novell, Inc.               Page 1













      ttyadm(1M)                                                ttyadm(1M)


            -l ttylabel   Specifies which ttylabel in the /etc/ttydefs
                          file to use as the starting point when searching
                          for the proper baud rate.

            -m modules    Specifies a list of pushable STREAMS modules.
                          The modules will be pushed, in the order in
                          which they are specified, before the service is
                          invoked.  modules must be a comma-separated list
                          of modules, with no white space included.  Any
                          modules currently on the stream will be popped
                          before these modules are pushed.

            -o            Enables support for port initialization in some
                          modems.  The call to dial is for the Reset class
                          in Devices.  For example, the devices file entry
                          can be:

                                Reset tty00,M - 9600 label

                          where label is either a built-in function (801,
                          Sytek, TCP, DK, CS) or standard function whose
                          name appears in the first field in the Dialers
                          file.

            -p prompt     Specifies the prompt message, for example,
                          ``login:''.

            -r count      When the -r option is invoked, ttymon will wait
                          until it receives data from the port before it
                          displays a prompt.  If count is equal to zero,
                          ttymon will wait until it receives any
                          character.  If count is greater than zero,
                          ttymon will wait until count newlines have been
                          received.

            -s service    service is the full pathname of the service to
                          be invoked when a connection request is
                          received.  If arguments are required, the
                          command and its arguments must be enclosed in
                          double quotes.

            -t timeout    Specifies that ttymon should close a port if no
                          input data is received in timeout seconds from
                          the beginning of a connect indication.




                          Copyright 1994 Novell, Inc.               Page 2













       ttyadm(1M)                                                ttyadm(1M)


             -V            Displays the version number of the current
                           /usr/lib/saf/ttymon command.

          Exit Codes
             If successful, ttyadm will generate the requested information,
             write it on the standard output, and exit with a status of 0.
             If ttyadm is invoked with an invalid number of arguments or
             invalid arguments, or if an incomplete option is specified, an
             error message will be written to the standard error and ttymon
             will exit with a non-zero status.

          Files
             /etc/ttydefs
             /etc/uucp/Dialers
             /usr/lib/locale/locale/LC_MESSAGES/uxcore.abi
                   language-specific message file [See LANG on environ
                   (5).]

       USAGE
             When using the -b option with the -r 0 option, only one
             character needs to be given in order to return a prompt.

       REFERENCES
             pmadm(1M), sacadm(1M), sttydefs(1M), ttymon(1M)

       NOTICES
             -r should not be used with a modem configured for a switched
             carrier.  If the -r count is too low, the tty line may go into
             an infinite echo loop, which will cause the RX/TX lights to
             flash wildly.


















                           Copyright 1994 Novell, Inc.               Page 3








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026