- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Trace IP address from PROCESS ID
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
12-29-2003 11:00 AM
12-29-2003 11:00 AM
Trace IP address from PROCESS ID
All the users are logging into the HP-Ux server using same username for certain process. Is it possible to trace back the IP address of the workstation using PROCESS ID or something else.
Please let me know if anyone has solution.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 11:28 AM
12-29-2003 11:28 AM
Re: Trace IP address from PROCESS ID
I suppose that your users get connection with an database on your UNIX box.
Can you use your database utility to look fot the connection ?
Can you give as more info over the proces that your users start.
Idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 11:30 AM
12-29-2003 11:30 AM
Re: Trace IP address from PROCESS ID
You can grep for the process for that login id and then run
/opt/lsof/bin/lsof -p $id | grep ESTABLISHED
for each PID ($ id is the process id)
you'll get the IP address or the host name connected to that process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 09:05 PM
12-29-2003 09:05 PM
Re: Trace IP address from PROCESS ID
$ /usr/bin/w username | awk '{c=sprintf("who -R | grep %s",$2);print $0;system(c)}' | awk '{printf("%s\t",$0);
getline;print $6}'
It uses the tty or pseudo tty as a grep search pattern in who -R for each matching line in /usr/bin/w.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 10:09 PM
12-29-2003 10:09 PM
Re: Trace IP address from PROCESS ID
if it is tty process, you can use
ps -ef
finger -R
it maight help
regards
A. Majeed