- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Discover telnet client IP address
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
Discussions
Discussions
Discussions
Forums
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
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-02-2004 01:39 PM
тАО12-02-2004 01:39 PM
(Our DNS seems to be having some problems returning the correct name. When I issue who -um from a specific client PC it cycles through 3 different names and we're trying to get that issue sorted too)
Any suggestions greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:16 PM
тАО12-02-2004 03:16 PM
Re: Discover telnet client IP address
last -R
That will provide the hostname of the telnet and other protocol clients.
Also:
enhance your logging:
inetd -l
There will be information there mostly by ip address.
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
тАО12-05-2004 07:06 AM
тАО12-05-2004 07:06 AM
Re: Discover telnet client IP address
Tried the last command, but it too returns host names not ip addresses.
I read another thread where the contributor said that everything gets resolved back to the DNS name. Is there no way to avoid this and get the IP address (other than disabling DNS)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2004 11:05 AM
тАО12-05-2004 11:05 AM
Re: Discover telnet client IP address
These can be translated by reverse lookup to IP addresses with the nslookup command. See the man for that one.
Also, the times on the last command will correspond to data in the syslog which will be exclusively IP addresses.
Yes, you may actually have to do a little work to get the information, but your system records all you need to do the job.
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
тАО12-05-2004 03:13 PM
тАО12-05-2004 03:13 PM
Re: Discover telnet client IP address
We can get reverse lookup of ip-address with getip / nslookup / nsquery / dig command.
I prefer getip command for this.
export DISPLAY=getip `who -um | awk '{ print $9 }'`.0
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2004 04:07 PM
тАО12-05-2004 04:07 PM
Re: Discover telnet client IP address
As the initial post said, they have some
problem with DNS and hence he wants to use
only ip@.
My question is will getip again contact
DNS for get the ip@ of the hostname ?
-vishwas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2004 07:32 PM
тАО12-05-2004 07:32 PM
Re: Discover telnet client IP address
In the syscall's manpage it says that it will respect the hosts entry in /etc/nsswitch.conf.
So if his nsswitch.conf holds something like:
hosts: files [NOTFOUND=continue] dns
it will do namelookup by first parsing /etc/hosts on the localhost, where it should find the IP address.
Alternatively you could use nsquery like
DISPLAY=$(nsquery hosts $(who -mu|awk '{print$NF}')|awk '$1~/ddress/{print$NF}'):0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2004 07:43 PM
тАО12-05-2004 07:43 PM
Re: Discover telnet client IP address
If you have problems whit your DNS you must corect them. HPUX work fine olny if DNS is ok. Telnet,sam,X and Software agent need
ip resolve.
If you have problem with DNS use /etc/hosts file.
File that is good to check.
/etc/nsswitch.conf
/etc/resolve.conf
/etc/hosts
if you can not find /etc/nsswitch.conf
copy /etc/nsswitch.files /etc/nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2004 07:14 AM
тАО12-06-2004 07:14 AM
Re: Discover telnet client IP address
Just one point, I changed the inetd configuation (netdaemons) to start inetd with the -l option then executed inetd -c but still do not see detailed loging in syslog. Do I need to do a reboot to enable the change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2004 06:55 PM
тАО12-06-2004 06:55 PM
Re: Discover telnet client IP address
Only windows need reboot :) you now :)
if you need to restart some services go to
/sbin/init.d/
and
./someservices stop
./someservices start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2004 08:12 PM
тАО12-06-2004 08:12 PM
Solutionin Windows reboot - on Unix be root. ;-)
Simpy issue "inetd -l" to toggle logging on/off. You see the effect immediately in syslog.log.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2004 06:15 AM
тАО12-07-2004 06:15 AM