Re: (PM) show sessions | grep username

Chris Parker (cparker@starnetusa.net)
Tue, 27 Jan 1998 07:03:13 -0600

At 05:54 PM 1/26/98 -0800, Rick Wagner wrote:
>Maybe this exists and I just havent figured it out yet.. But is there a way
>to search through 300 ports and find out if just a particular user is
>online or watch to see whats happening ?=A0 It gets harder and harder to=
try
>and see whats going on when trying to help diagnose customers that claim
>they are online but cant get any traffic...
>
>
>sho ses | grep username=A0 would be great

You should look into the program called 'pmwho'. It can connect to a
large number of pm's and output the 'sho ses' info.

It is a compiled c proggy that telnets to a specified list of pm's and
does a 'show session' on them, returning the output to the screen.

You can find a copy at:

http://web.sltic.com/~pmgraph/scripts/radius.html

If you or anyone else is interested, I've modified pmwho to merge the
output of 'sho ses' with 'sho mod' so you can see connect rate info
instead of the assigned IP. I also added a command line switch to let=20
you search for a pattern in the username's and only print those that=20
match. It works fine on a Solaris box, but it should work fairly easily=20
on other platforms.

If you are interested, email me privately, and if there is enough interest
I'll put the source up on the web, and post the URL back to the list.

-Chris

--
   \\\|||///  \  Chris Parker:    Systems Administration and Development
   \ ~   ~ /   \    StarNet, Inc.       \      http://www.starnetusa.net =20
   | @   @ |    \     (847)963-0116      \    mailto:cparker@megapop.net=20
oOo---(_)---oOo--\------------------------------------------------------
   TANSTAAFL      \ Wholesale Internet Services - http://www.megapop.net

- To unsubscribe, email 'majordomo@livingston.com' with 'unsubscribe portmaster-users' in the body of the message.