- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hang:> netstat -a | grep <service_port>
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
09-13-2002 12:22 AM
09-13-2002 12:22 AM
works fine,
but
netstat -a | grep
hangs.. well, ctrl-c breaks, but the command never returns..
What have I messed up?
Later,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:32 AM
09-13-2002 12:32 AM
Re: hang:> netstat -a | grep <service_port>
the looks like a name resultion error.
Does your name server run in both direction? ip->name/ name->ip ?
Is your /etc/hosts file readable? is your /etc/services file readable?
Do you use NIS? Are the nis hosts-map and the services-map accessable?
Heiner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:34 AM
09-13-2002 12:34 AM
Re: hang:> netstat -a | grep <service_port>
Are you sure it's not just DNS hanging. Does a
netstat -a
return quickly then?
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:42 AM
09-13-2002 12:42 AM
Re: hang:> netstat -a | grep <service_port>
if your system has various lan cards try to find out if a specific interface has problems with "netstat -i"
If it is a cluster with a privat lan for heartbeat (e.g. crossover cable on build in ethernet) this could be the problem.
try the following:
in file /etc/hosts add under the localhost line a new line with the entry
0.0.0.0 none
regards
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 01:46 AM
09-13-2002 01:46 AM
Re: hang:> netstat -a | grep <service_port>
see attachment for various commands.
10 points for fix only!
Thanks,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 01:54 AM
09-13-2002 01:54 AM
Re: hang:> netstat -a | grep <service_port>
netstat -a never returns (well I never waited)
ping take 20secs before returning first reply
(even when pinging itself)
nslookups from FILES are immediate.
ll /etc/services
-r--r--r-- 1 bin bin 13018 Sep 9 11:22 /etc/services
# cat /etc/rc.config.d/netconf
HOSTNAME="test02"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=xx.29.144.167
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
ROUTE_GATEWAY[0]=xx.29.144.100
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 01:59 AM
09-13-2002 01:59 AM
Re: hang:> netstat -a | grep <service_port>
is named running on that system? It may be be asked 1st by the resolver, even if nsswitch.conf tell another story.
If yes, you should setup test02 on that DNS server also. If you don't need it, stop it for a test.
Regards...
Dietmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:01 AM
09-13-2002 02:01 AM
Re: hang:> netstat -a | grep <service_port>
Microsoft(R) Winders NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.
C:\>nslookup test02.zko.xx.com
Server: janus.grenoble.xx.com
Address: xx.128.136.107
Non-authoritative answer:
Name: test02.zko.xx.com
Addresses: xx.29.144.71, xx.29.144.167
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:03 AM
09-13-2002 02:03 AM
Re: hang:> netstat -a | grep <service_port>
Add in the /etc/hosts file an alias systemname.domainname and ping again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:06 AM
09-13-2002 02:06 AM
Re: hang:> netstat -a | grep <service_port>
attached is a top list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:08 AM
09-13-2002 02:08 AM
Re: hang:> netstat -a | grep <service_port>
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:11 AM
09-13-2002 02:11 AM
Re: hang:> netstat -a | grep <service_port>
I want debugging info more.
Does this ping problem arise when you ping to
your own network card ip address ?.
Also In addition , I request you to use traceroute utility and give me the output.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:12 AM
09-13-2002 02:12 AM
Re: hang:> netstat -a | grep <service_port>
has the exact same effect, so I guess it's not name res.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:13 AM
09-13-2002 02:13 AM
Re: hang:> netstat -a | grep <service_port>
please compile and run this proggie with test02 as arg:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
main(argc, argv)
int argc;
char *argv[];
{
char *name = NULL;
register struct hostent *host;
name = argv[1];
host = gethostbyname(name);
printf("XXX %x\n",host);
printf("Hostname : %s\n",host->h_name);
printf("Aliases : %s\n",*host->h_aliases);
printf("AddressType : %d\n",host->h_addrtype);
printf("AddressLength : %d\n",host->h_length);
printf("Addresslist : %x\n",*host->h_addr_list);
}
If it also hangs... please use tusc -t "" ... to trace the syscalls.
Regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:14 AM
09-13-2002 02:14 AM
Re: hang:> netstat -a | grep <service_port>
Please check a nslookup to hostname.domain. Use the system in this case files or dns?
Anyway the dns tables should be updated (two ip adresses for one system with only one lancard? Is this an old entry which has not been removed after changing the ip in the past?).
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:16 AM
09-13-2002 02:16 AM
Re: hang:> netstat -a | grep <service_port>
test02:root # ./a.out test02
XXX 400031cc
Hostname : test02
Aliases : test02.zko.xx.com
AddressType : 2
AddressLength : 4
Addresslist : 40003afc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:16 AM
09-13-2002 02:16 AM
Re: hang:> netstat -a | grep <service_port>
test02:root # ./a.out test02
XXX 400031cc
Hostname : test02
Aliases : test02.zko.xx.com
AddressType : 2
AddressLength : 4
Addresslist : 40003afc
returned immediately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:20 AM
09-13-2002 02:20 AM
Re: hang:> netstat -a | grep <service_port>
there's a traceroute in the first attachment - I see nothing wrong with this.And - yes, it happens with lan0 (netstat -i) IP as well as server hostname.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:22 AM
09-13-2002 02:22 AM
Re: hang:> netstat -a | grep <service_port>
System Information
The following parameters were set on the configured target:
hostname: test02
IP address: xx.29.144.167
subnet mask: 255.255.255.0
gateway IP address: xx.29.144.100
time zone: EST5EDT
DNS domain name: zko.xx.com
DNS IP address: xx.30.0.20
NIS domain name: zko.xx.com
System Hardware
Model: 9000/800/A500-7X
Main Memory: 2048 MB
Processors: 2
OS mode: 64 bit
LAN hardware ID: 0x00306E2C742E
Software ID: 802920606
Keyboard Language: Not_Applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:28 AM
09-13-2002 02:28 AM
Re: hang:> netstat -a | grep <service_port>
Restart inetd and see whether the problem perisists.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:35 AM
09-13-2002 02:35 AM
Re: hang:> netstat -a | grep <service_port>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:37 AM
09-13-2002 02:37 AM
Re: hang:> netstat -a | grep <service_port>
Bill , I found out the culprit . /etc/resolv.conf
I simulated it in linux. Just move /etc/resolv.conf to /etc/res.conf for sometime . give netstat -a
all problems is gone.
I think the problem is because of unreachable name server in resolv.conf. Even a single server unreachable among say four servers may
cause this.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:45 AM
09-13-2002 02:45 AM
Re: hang:> netstat -a | grep <service_port>
Bill , Found the real culprit.
/etc/nsswitch.conf
hosts: files dns
If the above setup is there with resolv.conf
our problem persists.
Now,
/etc/nsswitch.conf
hosts: files
Now the problem disappears.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:51 AM
09-13-2002 02:51 AM
Re: hang:> netstat -a | grep <service_port>
these are the only things I changed since the last reboot:
in /etc/hosts:
added FQDN as alias:
xx.29.144.167 test02 test02.zko.xx.com
in /etc/rc.config.d/namesvrs
NIS_CLIENT="0"
before this (after reboot) problem occurred.
So I guess Dieter get's the bunny????
Any comments?
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 03:13 AM
09-13-2002 03:13 AM
Re: hang:> netstat -a | grep <service_port>
hmmm, don't know what's the real reason. But my suggest with FQDN couldn't be it because it works immediatly or even not. So all I can say, the bunny is not for me.
regards
Dirk