We did a perl pm tool package that uses Net::Telnet and integrates the
PPP decoder ring from the Livingston web site.
pluto 08:52:43 eigenstr > pm
Usage: pm [-host <portmaster-name>] command
Where command is one of the following:
w | who | whoson [<user>]
kick <user>
snoop <user>
cmd | command <pm command>
reset <port>
debug
login
Here's a sample of the output from `pm w':
Modems in use: 16/38 (42.1%) Ports in use: 22/46 (47.8%)
Sr Md If Username Down/Up v/^ Connect Type Host Login Idle
-- -- -- -------- --------- --- ---------------- --------------- ------ ------
0 0 0 stalter 31.2/31.2 0/1 LAPM/NONE ppp20.mixi.net 4:36 0
1 1 1 csigw 40.0/24.0 0/0 LAPM/V42BIS gw.commandsyste 12:51 0
2 2 2 csiind 28.8/26.4 15/ LAPM/V42BIS csi.mixi.net 12days 0
3 4 3 jawinger 26.4/31.2 1/4 LAPM/V42BIS ppp46.mixi.net 1:11 0
4 5 4 innomail 19.2/19.2 0/0 LAPM/V42BIS 208.131.233.189 1:40 0
5 6 5 badvlad 26.4/28.8 0/1 LAPM/V42BIS ppp8.mixi.net 1:28 0
6 7 6 natrgatr 26.4/31.2 0/5 LAPM/V42BIS ppp10.mixi.net 49 0
7 8 7 profed 28.8/31.2 0/2 LAPM/V42BIS ppp12.mixi.net 1:06 1
8 9 8 lassiter 28.8/28.8 0/0 LAPM/V42BIS ppp44.mixi.net 52 7
9 12 9 epco 21.6/28.8 0/0 LAPM/V42BIS ppp28.mixi.net 10 0
11 14 11 computec 28.8/31.2 0/1 LAPM/V42BIS ppp40.mixi.net 19 0
12 16 12 wolfe 28.8/28.8 0/0 MNP/MNP5 ppp22.mixi.net 6 0
13 17 13 rtd1293 28.8/31.2 0/0 LAPM/V42BIS ppp16.mixi.net 14 0
15 19 15 genfed 28.8/28.8 0/0 LAPM/V42BIS ppp13.mixi.net 8 0
16 20 16 cbarton 26.4/28.8 0/0 LAPM/NONE/Stac ppp18.mixi.net 28 0
17 21 17 comcast 26.4/28.8 0/2 LAPM/V42BIS ppp7.mixi.net 4 0
25 48 dan 56.0 ISDN/MPP/Stac dan.home2.tekin 11:51 3
(Yes, we have two modems down, but I haven't had the time to figure
out why. v/^ is retrains and renegotiations...we were running out of
columns, and that's all I could think of.)
`pm login' will log you into the default portmaster (we only have one,
and have hardwired the username/password :) and then act like a telnet
session, with the exception that you have command line editing &
history (using the Perl GNU readline interface) and it removes those
pesky "Press RETURN for more" messages.
`pm debug' will log in, and do, essentially "set debug 0x51" "set
console" and then run the output through the decoder ring. It's quite
handy.
`pm cmd' will let you execute a single command w/o a username or
password.
I'll post the source if anyone's interested.
Todd
-
To unsubscribe, email 'majordomo@livingston.com' with
'unsubscribe portmaster-users' in the body of the message.