Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I want to have port nos of oracle processes on Solaris system.I am writing a script which will check which will alert me when the service on the ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    0

    port no

    Hi all,
    I want to have port nos of oracle processes on Solaris system.I am writing a script which will check which will alert me when the service on the specific port is not running i.e port 80 and port 8090.
    I am running netstat -an | grep LISTEN | awk '{print substr($1,3)}' | sort -n`.

    the first field is having record with formats
    *.portno
    IP.portno

    The problem is: it is returning portno from those records which are having first field in *.portno format. But I want to have details of all ports.actually I want to cut only portno from first field irrespective of format.

    Can anybody help me

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    I dont get you ??
    We need some more info on how you are making it to alert !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •