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:
Reply To:
Date:
Thu, 25 Feb 1999 16:39:26 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
<[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