Quick Reference for Helpful SVR4 CMDs

#  init 0        - command will shutdown system.
#  init 6        - command will shutdown and then reboot system
------------------------------------------------------------------
#  pkgadd -d diskette1        - command to load driver from disk drive A
#  pkgadd -d diskette2        - command to load driver from disk drive B

#  pkgrm -n package            - remove installed package

Example: pkgrm -n epca
------------------------------------------------------------------
#  pkginfo                         - lists all installed packages
#  pkginfo -l package      - long listing of package (gives driver version)

Example: pkginfo -l epca
------------------------------------------------------------------
PMADM COMMAND
#  pmadm -l                                             -list all active ttymons
#  pmadm -e -p pmtag -s svctag           -re-enable port - does not add port
#  pmadm -d -p pmtag -s svctag           -disable port
#  pmadm -r -p pmtag -s svctag            -remove port

Example: pmadm -e -p ttymon3 -s i1a
-------------------------------------------------------------------
Quick Reference for Helpful Files
/etc/saf/ttymon3/_pmtab             - similar to /etc/inittab
-------------------------------------------------------------------
Example _pmtab from Univel system:

# VERSION=2
i1a:u::reserved:reserved:login: /dev/term/i1a:::/usr/bin/shserv:: 9600:ldterm:login\: :::::#
i1b:u::reserved:reserved:login: /dev/term/i1b:::/usr/bin/shserv:: 9600:ldterm:login\: :::::#

Example from Unixware 7.0:

# VERSION=2
a07s:u::reserved:reserved:login:/dev/term/a07s:b::/usr/bin/shserv:: 9600_8N:ldterm,ttcompat:login\::::::#

Example from Solaris 2.5 system:

# VERSION=1
b003m:ux:root:reserved:reserved:reserved:/dev/dty/b003m:r:1: /usr/bin/login::9600::login\: ::::# 
-------------------------------------------------------------------
/var/saf/ttymon3/log - port monitor log file for ports on port monitor ttymon3
-------------------------------------------------------------------
#uname -a - lists the Operating System version number
-------------------------------------------------------------------
Command to enable a terminal in SVR4 or SVR5:

pmadm -a -p ttymonx -s a01s -fu -i root -v `ttyadm -V` -m "`ttyadm -d /dev/term/a01s -l 9600 -s /usr/bin/login -T termtype`"

For Solaris use a001s instead of a01s:

pmadm -a -p ttymonx -s a001s -fu -i root -v `ttyadm -V` -m "`ttyadm -d /dev/dty/a001s -l 9600 -s /usr/bin/login -T termtype`"

Where:
ttymonx - is the port monitor tag such as zsmon. a01s - is the name of the port. Refer to your Digi manual for your device names. 
-l 9600 - sets the port for a baud rate of 9600. 
-T termtype sets the terminal type (this is optional).

The above command will enable the port for 9600 8,1,N. Consult your documentation if you wish to change these parameters.

Command to enable a modem in SVR4 or SVR5:

pmadm -a -p ttymonx -s a01m -fu -i root -v `ttyadm -V` -m "`ttyadm -d /dev/term/a01m -l 38400 -s /usr/bin/login -T termtype -b -r 1`"

For Solaris use a001m instead of a01m:

pmadm -a -p ttymonx -s a001m -fu -i root -v `ttyadm -V` -m "`ttyadm -d /dev/dty/a01m -l 38400 -s /usr/bin/login -T termtype -b -r 1`"

Where:

ttymonx - is the port monitor tag such as zsmon. a01s - is the name of the port. Refer to your Digi manual for your device names. 
-l 38400 - sets the port for a baud rate of 38400.
-T termtype sets the terminal type (this is optional).
-b -r 1 - set the port for modem operation.
The above command will enable the port for 9600 8,1,N. Consult your documentation if you wish to change these parameters.

Last updated: Aug 08, 2017

Recently Viewed

No recently viewed articles

Did you find this article helpful?