- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX 11.31 ping issue
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
04-07-2009 12:55 AM
04-07-2009 12:55 AM
HPUX 11.31 ping issue
I do a search on the itrc forum and do whatever suggestion I found: nsswitch.conf, hosts, nsquery etc.
The nsswitch.conf is set to files [NOTFOUND=continue] dns.
/etc/hosts is configured with some local hostnames. both local hostname and external hostname in dns are getting the same error. even if I do a "ping localhost" will get the same error.
the nsquery, nslookup are working fine, I have try telnet, ssh all are able to use the hostname. I even write a perl script to do the syscall gethostbyname and it also works. Looks like the ping command is not even try to do a hostname lookup when given a hostname instead of ip address.
what else do I miss?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 01:33 AM
04-07-2009 01:33 AM
Re: HPUX 11.31 ping issue
do you have a valid /etc/resolv.conf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 01:34 AM
04-07-2009 01:34 AM
Re: HPUX 11.31 ping issue
If all are good except ping, I will suspect first something like a deny of icmp. Do you use some firewall, bastille or something about security.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 01:43 AM
04-07-2009 01:43 AM
Re: HPUX 11.31 ping issue
* if you are using windows to ping, then windows use the NETbios rather than DNS
* you need to check the DNS timeout configured on the DNS server, so it doesnt drop the requests
* there is no dns cache involved with hpux, it just needs a valid ip address /etc/resolv.conf
* you can test changing
files [NOTFOUND=continue] dns
to
files
and check for ping-ing the hosts which are available with /etc/hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 01:57 AM
04-07-2009 01:57 AM
Re: HPUX 11.31 ping issue
2. I have disabled the ipf using ipfilter -d and the address I try to ping will not go through firewall, for example, I try to ping localhost, still get the error. ping the ipaddress directly is working perfectly. so it is not firewall or icmp issue.
3. the ping command is issued from the hpux server itself. it can not ping itself, means if I do a "ping localhost", it still give me "unknown host localhost"
I have tried to change the nsswitch.conf to use only files, but still give me the same error. I need the dns for application to work, so I turn it back on later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 06:39 AM
04-07-2009 06:39 AM
Re: HPUX 11.31 ping issue
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 07:11 AM
04-07-2009 07:11 AM
Re: HPUX 11.31 ping issue
I suggest you fire up wireshark or tcpdump
Then filter for traffic on the target of the ping.
If when you ping you see results in the utility, this means the traffic is getting through to the target. If not, the problem is exclusively on the 11.31 boxes.
Things to check:
/etc/rc.config.d/netconf
Could be an inconsistency there, maybe in gateway.
/etc/rc.config.d/nddconf
Ping could be blocked.
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
04-07-2009 10:10 AM
04-07-2009 10:10 AM
Re: HPUX 11.31 ping issue
Everything must be looked up both by name & IP.
I suspect your DNS server lacks the second.
Thst's easily checked - do nslookups both ways.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 10:21 AM
04-07-2009 10:21 AM
Re: HPUX 11.31 ping issue
files [NOTFOUND=continue] dns."
A proper nsswitch.conf will contain,
(no space between files and [ )
hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis
also post the output of
# whereis ping
# swlist -l file | grep
# cksum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2009 10:28 AM
04-07-2009 10:28 AM
Re: HPUX 11.31 ping issue
By both ways I mean both methods - IP & hostname.
Not both directions.
Do *that* both with each host.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2009 05:36 PM
04-08-2009 05:36 PM
Re: HPUX 11.31 ping issue
# whereis ping
ping: /usr/sbin/ping /usr/share/man/man1m.Z/ping.1m
# swlist -l file | grep /usr/sbin/ping
Networking.NET2-RUN: /usr/sbin/ping
# cksum /usr/sbin/ping
690138372 78432 /usr/sbin/ping
# uname -a
HP-UX B.11.31 U ia64 2608458592 unlimited-user license
# date
Thu Apr 9 09:34:31 SST 2009
any suggestion ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2009 12:15 AM
04-13-2009 12:15 AM
Re: HPUX 11.31 ping issue
I am sure this is not a network/firewall problem, since I can do ping
the dns/hosts file setting is also ok, I can do nslookup, nsquery, telnet, ssh with the hostname, all return the correct ip address, just the ping is not working.
I also raised a support to hp. so far no solution yet. I have 4 11.31 server all behave the same way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2009 07:02 PM
04-13-2009 07:02 PM
Re: HPUX 11.31 ping issue
we commented out the 53/tcp and 53/udp in the /etc/services, which is for the nameserver during the server hardening. uncomment the two line and ping is able to do hostname look up.
I am closing this thread now, but it is quite strange for ping to depend on the nameserver service instead of gethostbyname.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2009 07:18 PM
04-13-2009 07:18 PM
Re: HPUX 11.31 ping issue
Regards
James Lau