- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command to view the IP conected to my server.....
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
10-10-2003 09:57 AM
10-10-2003 09:57 AM
I would like to know the hp-ux command to display de IP address from the other servers or pc that are conected to my server with any service sesion like ftp, telnet, etc. I try with #finger user_name but not appear the IP address conected just the port.
IS there any log file that keep this information__?? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 10:08 AM
10-10-2003 10:08 AM
Solutionwho -u output
[1789#] who -u
root pts/0 Oct 10 01:16 15:05 4520 telaviv.investmenttool.com
root pts/1 Oct 10 18:08 . 8197 192.168.0.2
You should not use finger, its a security hazard. I recommend disabling it.
The rest of the information should come from netstat.
netstat -an is a good place to start, but netstat -in might give you better data.
netstat -gin also might server your need.
man netstat for more fun ways to get what you need.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 10:14 AM
10-10-2003 10:14 AM
Re: Command to view the IP conected to my server.....
/usr/sbin/acct/fwtmp < /var/adm/wtmp > /var/tmp/wtmp.tmp
and then
more /var/tmp/wtmp.tmp
the file may be big :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 10:25 AM
10-10-2003 10:25 AM
Re: Command to view the IP conected to my server.....
last # tells who has been logged on recently.
lastb # reports the recent unsuccessfull login attempts.
hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 11:28 AM
10-10-2003 11:28 AM
Re: Command to view the IP conected to my server.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 11:28 AM
10-10-2003 11:28 AM
Re: Command to view the IP conected to my server.....
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 06:36 PM
10-10-2003 06:36 PM
Re: Command to view the IP conected to my server.....
# last |grep still
To show socket connection, you may take a look at output from:
# netstat -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 06:52 PM
10-10-2003 06:52 PM
Re: Command to view the IP conected to my server.....
last -R |pg (To show last remote connection)
netstat -in (is my favour one, it list the MTU as well but it's for different use than what you are looking for)!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2003 08:51 PM
10-10-2003 08:51 PM
Re: Command to view the IP conected to my server.....
who -u
netstat -an
last -R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2003 04:05 AM
10-11-2003 04:05 AM
Re: Command to view the IP conected to my server.....
I like to use the -f parameter in netstat before it filters out only the details you are looking for i.e. display remote IPs connected to your inet services:
# netstat -f inet
Sometimes, you might want to look for the exact process bound to a TCP or UDP port. In that case, you need to use lsof e.g. the following tells you which process/program is binding on tcp port 31770. Useful for identifying trojan backdoor binaries.
# lsof -i tcp:31770
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2003 11:27 AM
10-11-2003 11:27 AM
Re: Command to view the IP conected to my server.....
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 04:45 PM
10-12-2003 04:45 PM
Re: Command to view the IP conected to my server.....
Download the lsof tool from here. It's really valuable as Bill indicated.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
thanks