HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- finding ipadress for a given pid
Operating System - HP-UX
1830477
Members
2396
Online
110005
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:21 PM
07-05-2004 06:21 PM
finding ipadress for a given pid
hi all,
how to find the ipaddress of the system from where a process initated .in the tty column it is giving a ? symbol only.this is an oracle process and it is showing pid=26186 ppid=1.
regds,
how to find the ipaddress of the system from where a process initated .in the tty column it is giving a ? symbol only.this is an oracle process and it is showing pid=26186 ppid=1.
regds,
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:34 PM
07-05-2004 06:34 PM
Re: finding ipadress for a given pid
Hi
The 'TTY' column only shows what terminal the process is controlled from on the local system (if any). In most instances it will be '?' meaning that no terminal is controlling that process. The 'TTY' column will never show an IP address.
Not exactly sure what you are after but you may have some success using:
# lsof -i | grep " 26186 "
(Note lsof must be installed on your system)
Cheers
Con
The 'TTY' column only shows what terminal the process is controlled from on the local system (if any). In most instances it will be '?' meaning that no terminal is controlling that process. The 'TTY' column will never show an IP address.
Not exactly sure what you are after but you may have some success using:
# lsof -i | grep " 26186 "
(Note lsof must be installed on your system)
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:36 PM
07-05-2004 06:36 PM
Re: finding ipadress for a given pid
Hi,
If it showing "?" then mostly its a system Process or daemon started by the your System itself. To know IP Address of your System's NIC :
# ifconfig lan0
or whatever interface you use. lan1,lan2,..
You can trace the IP of remote telnet session then use:
# ps -ef
Identify the tty no. e.g. if it is pts/ta then
# who -R | grep pts/ta
Hope this is what you are looking for.
Regards,
If it showing "?" then mostly its a system Process or daemon started by the your System itself. To know IP Address of your System's NIC :
# ifconfig lan0
or whatever interface you use. lan1,lan2,..
You can trace the IP of remote telnet session then use:
# ps -ef
Identify the tty no. e.g. if it is pts/ta then
# who -R | grep pts/ta
Hope this is what you are looking for.
Regards,
You need to know a lot to actually know how little you know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 07:15 PM
07-05-2004 07:15 PM
Re: finding ipadress for a given pid
Hai,
We can idenitify the ip-address by relating two commands ps and who as
# Give the PID
PID=$1
who -Ru | grep `ps -aefl | grep -v grep | grep $PID | awk '{print $13}' | uniq`
It will give all the informations.
By default, process tty with ? are enabled by system.
If you want to get the tty only, use the ps with out who command.
Regards,
Muthukumar.
We can idenitify the ip-address by relating two commands ps and who as
# Give the PID
PID=$1
who -Ru | grep `ps -aefl | grep -v grep | grep $PID | awk '{print $13}' | uniq`
It will give all the informations.
By default, process tty with ? are enabled by system.
If you want to get the tty only, use the ps with out who command.
Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP