1830938 Members
1948 Online
110017 Solutions
New Discussion

netstat command fails

 
SOLVED
Go to solution
Joe Despres
Advisor

netstat command fails

Netstat fails with the following results:
root@znc0h0ju:/etc/rc.config.d# netstat -i
ifnet: symbol not defined

root@znc0h0ju:/etc/rc.config.d# netstat -a
nfile or file not in namelist.


ifnet: symbol not defined

ifnet: symbol not defined
arpstat: symbol not in namelist
probestat: symbol not in namelist

see attachment for system info...

Tanks!
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor
Solution

Re: netstat command fails

Hi,

Execute this to resolve your problem:

# rm -f /var/adm/netstat_data

This document explains:

Document ID: A5678452
Date Loaded: 19991105
Title: Networking: nfile or file not in namelist

Problem Description

I am running HP-UX 10.20. I get the following error when I attempt to
run the 'netstat' command:

nfile or file not in namelist

Why am I getting this error?

Configuration Info

Operating System - HP-UX
Version - 10.20
Hardware System - HP9000
Series - K460
Subsystem - Networking

Solution

You are getting the error because the '/var/adm/netstat_data' file is
zero bytes.

Perform the following steps to resolve your error:

1. Remove '/var/adm/netstat_data'.

2. Re-execute the 'netstat' command.
-----End of Document ID: A5678452--------------------------------------------

Hope this helps. Regards.

Steven Sim Kok Leong
Corthouts Carlo
Valued Contributor

Re: netstat command fails

Hi,

What most likely happened is that the ifnet array which is used to identify your devices has gotten corrupted.

Tried rebooting?
Joe Despres
Advisor

Re: netstat command fails

Removing the file netstat_data fixed the problem! It was a zero length file. Good fix! I thought I searched for netstat on the HP site. I must of missed it...

Thanks!