HP3000-L Archives

February 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Anderson <[log in to unmask]>
Reply To:
Date:
Thu, 25 Feb 1999 17:30:10 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (82 lines)
NOT FANCY, BUT IS SIMPLE: TRY THIS


/
/L ALL
    1     PARM IPADDR
    2     PURGE TEMPIO,TEMP  > $NULL
    3     BUILD TEMPIO;REC=-128,1,F,ASCII;DISC=32768;TEMP
    4     # THAT SHOULD BE A BIG ENOUGH FILE
    5     FILE X=TEMPIO,OLDTEMP
    6     LISTF CI.PUB.SYS,8 > *X
    7     FGREP.HPBIN.SYS "!IPADDR" < *X
/K
  Unnumbered keep to text file WHOSON.UTIL.SYS
  Post back to old text file? Y
  1  lines posted
/E

END OF PROGRAM
:
:WHOSON 133
#S12439 MJANDERS,MANAGER.SYS       P:1,L:0,W:1,R:1      REM : 198.216.11.133
:


Michael Anderson
Spring ISD, Spring Texas.




[log in to unmask] wrote:

> <[log in to unmask]> on 2/25/99 wrote:
>
> > We have a growing number of remote sites, each of which has a unique > class C
> IP address.  I would like to be able to do a "show seesions" type > command for
> all sessions coming from a specific class C address.  This
> > would allow me to quickly identify all sessions from that site (they may
> > be logged into multiple accounts).
>
> > something like:
> > SHOWSESSIONS 123.321.456
>
> <snip>
>
> Terry,
>
> Try the following "IPUSER" command file:
>
> PARM ACCTPARM=NONE
> COMMENT*********************************
> COMMENT  LISTS SESSIONS USING A VT3K
> COMMENT  CONNECT BY IP ADDRESS RANGE
> COMMENT*********************************
> SETVAR ACCTIN "!ACCTPARM"
> IF ACCTIN="NONE" THEN
>   ECHO
>   ECHO You MUST ENTER A Partial IP Address Range To Search
>   ECHO
> ELSE
>   FILE TMPIPLOG;REC=-80,,F,ASCII;DEV=DISC;DISC=5000;TEMP
>   LISTFILE /SYS/PUB/CI,8>*TMPIPLOG
>   ECHO
>   MPEX.PUB.VESOFT;INFO=&
>             "PRINT TMPIPLOG;SEARCH=CL'REM : !ACCTIN'"
>   ECHO
>   PURGE TMPIPLOG,TEMP
> ENDIF
>
> The above command file needs MPE/iX release 5.5 or higher and it uses MPEX too.
> You could use 'grep' instead of MPEX if you really want to.
>
> John Hornberger
> Sr. Systems Programmer
> General Signal Services (A subsidiary of SPX Corp.)
> [log in to unmask]
>
> P.S.  There are no warranties written or implied with the above command
>       file.  However, I can say that it works just fine on my system which
>       is running MPE/iX rel. 5.5 with pp4.

ATOM RSS1 RSS2