Diberdayakan oleh Blogger.

how to get process id attached with particular port in solaris


When you need to know process id attached with particular port use below command.
pfiles /proc/* 2>/dev/null | nawk ' /^[0-9]*:/ { pid=$0 } /port: 7085$/ { printf("%s %s\n",pid,$0);}'

pfiles /proc/* is retrieving all processes file descriptors details
2>/dev/null is dropping out errors due to transient processes died in the meantime
each line starting with a number followed by a colon reports
Thank you for reading the article about how to get process id attached with particular port in solaris on the blog NEW TECH If you want to disseminate this article on please list the link as the source, and if this article was helpful please bookmark this page in your web browser by pressing Ctrl + D on your keyboard keys.

New articles :