Re: (PM) show sessions | grep username

Chris Adams (cadams@ro.com)
27 Jan 1998 15:18:20 GMT

According to Rick Wagner <rick@foothill.net>:
>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 ? 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 would be great

Try my Perl/SNMP "pmstat" program. You can get it from

http://ro.com/~cadams/files/pmstat.pl

It still needs some cleaning up, but it works okay. I leave it named
pmstat.pl and then write a wrapper script that calls is with all of my
PM3s as arguments (like:

#!/bin/sh
pmstat.pl "$@" pm1 pm2 pm3

It has a -u command line argument that says to only print info for that
user, which sounds like what you want.

-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.
-
To unsubscribe, email 'majordomo@livingston.com' with
'unsubscribe portmaster-users' in the body of the message.