Chapter 16:
KCS Client Configuration
274
Console Server & RIM Gateway User Manual
15.2 Advanced Portmanager
Opengear’s
portmanger
program manages the
console server
serial ports. It routes network connection to serial ports,
checks permissions, and monitors and logs all the data flowing to/from the ports.
15.2.1 Portmanager commands
pmshell
The
pmshell
command acts similar to the standard
tip
or
cu
commands, but all serial port access is directed
via
the
portmanager.
Example: To connect to port 8
via
the portmanager:
# pmshell -l port08
pmshell
Commands:
Once connected, the pmshell command supports a subset of the '~' escape commands that tip/cu support. For
SSH you must prefix the escape with an additional ‘~’ command (i.e. use the ‘~~’ escape)
Send Break: Typing the character sequence '~b' will generate a BREAK on the serial port (if you're doing this
over ssh, you'll need to type "~~b")
History: Typing the character sequence '~h' will generate a history on the serial port.
Quit pmshell: Typing the character sequence '~.' will exit from pmshell.
Set RTS to 1 run the command:
pmshell --rts=1
Show all signals:
# pmshell
–signals
DSR=1 DTR=1 CTS=1 RTS=1 DCD=0
Read a line of text from the serial port:
# pmshell
–getline
Note:
V3.5.2 and later firmware has includes
pmshell
chooser escape command so you can now hit
~m
from connected
serial port to drop back to
pmshell
pmchat
The
pmchat
command acts similar to the standard
chat
command, but all serial port access is directed
via
the
portmanager.
Example: To run a chat script
via
the portmanager:
# pmchat -v -f /etc/config/scripts/port08.chat < /dev/port08
For more information on using
chat
(and
pmchat
) you should consult the UNIX man pages:
http://techpubs.sgi.com/library/tpl/cgibin/getdoc.cgi?coll=linux&db=man&fname=/usr/share/catman/man8/chat.8.html
pmusers
The
pmusers
command is used to query the portmanager for active user sessions.
Example: To detect which users are currently active on which serial ports:
# pmusers
This command will output nothing if there are no active users currently connected to any ports, otherwise it will respond
with a sorted list of usernames per active port:
Port 1:
user1
Summary of Contents for ACM5000
Page 3: ......
Page 10: ...Table of Contents 10 Console Server RIM Gateway User Manual...
Page 11: ......
Page 94: ...Chapter 5 Firewall Failover and Out of Band 94 Console Server RIM Gateway User Manual...
Page 119: ......
Page 149: ......
Page 191: ......
Page 205: ......
Page 225: ......
Page 303: ......
Page 313: ......
Page 323: ......