1820271 Members
3426 Online
109622 Solutions
New Discussion юеВ

netstat -a problem

 
Mukesh Patel_2
Frequent Advisor

netstat -a problem

When I use netstat -a command
on HP-UX 11.0 I am getting an error "file not in namelist".
I checked for /var/adm/netstat_data file and is missing.

and in the syntax netstat -a [system] ---> what is this system? Is it the name of server established connection?

Regds

Mukesh
11 REPLIES 11
U.SivaKumar_2
Honored Contributor

Re: netstat -a problem

Hi,

#touch /var/adm/netstat_data

regards,
U.SivaKumar
Innovations are made when conventions are broken
Clemens van Everdingen
Honored Contributor

Re: netstat -a problem

Hi,

Did you install software/patches recently ?

Check with swlist -l fileset -a state | more if all filesets are configured.
ll /var/adm/netstat_data
If this file is zero bytes.
Remove it and then try netstat again.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Stefan Farrelly
Honored Contributor

Re: netstat -a problem

see;

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa85e50011d20d6118ff40090279cd0f9,00.html
Im from Palmerston North, New Zealand, but somehow ended up in London...
U.SivaKumar_2
Honored Contributor

Re: netstat -a problem

Hi,

`system` means the kernel file by default /stand/vmunix. you can specify different kernel in place of `system` in netstat command

regards,
U.SivaKumar
Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: netstat -a problem

"file not in namelist"

For this you have to remove /var/adm/netstat_data

But you have mentioned that the file is already not there.

Make sure that you have the latest netstat patch.

check your /var/adm/syslog/syslog.log file for any messages
Bill Hassell
Honored Contributor

Re: netstat -a problem

You probably will see a similar error with ipcs. The nrunning kernel does not match /stand/vmunix. A small number of tools require information from /stand/vmunix in order to read kernel structures in memory. By creating a new kernel file (SAM or manually) but not rebooting, the vmunix file no longer matches the in-core kernel, thus the message.


Bill Hassell, sysadmin
U.SivaKumar_2
Honored Contributor

Re: netstat -a problem

Hi,

I think you have not rebooted after rebuilding the kernel /stand/vmunix for some purpose. That why the mismatch. Rebooting once should solve the problem.

regards,
U.SivaKumar
Innovations are made when conventions are broken
harry d brown jr
Honored Contributor

Re: netstat -a problem

Your best bet is to get "lsof", a tool much better than netstat!

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/

live free or die
harry
Live Free or Die
Mukesh Patel_2
Frequent Advisor

Re: netstat -a problem

Hi everybody,

Thx for reply. Actually I was using wrong system name (eg. netstat -a
instead of /stand/vmunix)
That is why it was giving me an error "not in namelist"
Now it works fine as netstat -a.

But still there is a puzzle that,
I checked all HP-UX 11.0 servers and found that netstat_data file is not exists.
Is this file not required in HP-UX 11.0?
I checked on 10.20 and I found it.

Thanks again
Mukesh
U.SivaKumar_2
Honored Contributor

Re: netstat -a problem

Hi,

In HP-UX 10.X netstat command uses /var/adm/netstat_data file.

#strings /bin/netstat | grep netstat_data
/var/adm/netstat_data
/var/adm/netstat_data

In HP-UX 11.x i think this file is not used by netstat.

Give my command in a HP-UX 11.0 system

regards,
U.SivaKumar

Innovations are made when conventions are broken
Mukesh Patel_2
Frequent Advisor

Re: netstat -a problem

I ran strings /bin/netstat |grep netstat_data

and got nothing. Means 11.x is not using netstat_data.

Thanks