0 Replies Latest reply on Oct 25, 2005 7:46 AM by Mark Jeffery

    view open ports on Suse 10

      Hi,

       

      I tried the view open ports on suse 10, and it didn't pick up all the ports.

       

      The old line looked like this:

       

      sh -c "netstat -an \| grep LISTEN \| awk '{print $4}'\| awk -F\: '{print $2}'"

       

      This misses lines where the 4'th item looks like :::80 (I assume this means listen on all interfaces).

       

      The following line works in both cases.

       

      sh -c "netstat -an \| grep LISTEN \| awk '{print $4}'\| awk -F\: '{print $2 $4}'"

       

      For reference, this extended object should be configured for remote execution, using a single unique value per line grammar.

       

      Mark.