I have an ISPF edit macro called IP
/* REXX */
/* issue netstat command and trap the output */
'ISREDIT MACRO (a)'
x = outtrap("var.")
address TSO "netstat "a
x = outtrap("OFF")
if var.0  = 0 then exit
ADDRESS ISPEXEC
"ISREDIT delete all nx      "
"ISREDIT AUTOSAVE OFF PROMPT"
"isredit caps off"
do y =1 to var.0
   fn= var.y
   "ISREDIT LINE_AFTER  .ZLAST              =          (fn)"
end

Edit an empty member and use *IP netstat (port 8080*

Then you can use ISPF commands to filter count etc.

On Tue, 2 Jul 2024 at 10:03, Lizette Koehler <[email protected]>
wrote:

> I am working with output from
>
> tso netstat (port 8080
>
>
>
> There are header and then lines with 4 fields
>
> I need to take the third field and count how many times the IP shows up in
> the listing
>
>
>
> What would be the best process..  I need to strip the port from the field
> IP..PORT    then count the number of times the IP shows up in the output
>
>
>
>
>
> Thanks in advance for your suggestions
>
>
>
> Lizette
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
  • reading t... Lizette Koehler
    • Re: ... Styles, Andy (CIO GIS - Core Infrastructure & IT Operations)
    • Re: ... Colin Paice
    • Re: ... Sri Hari Kolusu

Reply via email to