Operating System - HP-UX
1833876 Members
1602 Online
110063 Solutions
New Discussion

question about nfs,linkloop,netstat.

 
SOLVED
Go to solution
常有慈悲心
Regular Advisor

question about nfs,linkloop,netstat.

i have 3 question:
1.i export /home on host1,how can i access it on a windows pc?
2.when i can ping a windows host,but use linkloop its mac address ,it did not display ok. why?
3.how can i clear "netstat 5 ",this command 's count information
5 REPLIES 5
monasingh_1
Trusted Contributor

Re: question about nfs,linkloop,netstat.

01. start pcnfsd on hpux and then use something like exceed's NFS.

02. Linkloop , I think you need to be on the same subnet to get an ok. ping packets are routeable but not the linkloop. I think man of linkloop should mention that.

03. netstat -z should clear the statistics...

hope this helps...
Muthukumar_5
Honored Contributor
Solution

Re: question about nfs,linkloop,netstat.

1. To access files and directories on different platforms use samba to do it

2. Linkloop will check connectivity of machines with their physical which are in the same local area network.

If it is connected in the local network then get the mac address as said here,
http://www.dur.ac.uk/its/services/network/lan/mac/

And add 0x before it and remove - between bytes

3. We can not use netstat as like sar. It will update them in the same window.

And i hope there is no option as like netstat -z?

Easy to suggest when don't know about the problem!
常有慈悲心
Regular Advisor

Re: question about nfs,linkloop,netstat.

2. the windows host is in same subnet with hpux host,
but when linkloop 0x0002e35118be,
it reports:
error: get_msg2 getmsg failed,errno=4
--failed
frames sent :1
frames received correctly :0
reads that timed out :1
Massimo Bianchi
Honored Contributor

Re: question about nfs,linkloop,netstat.

Have you got just ONE nic ?

You have to specify the ppa to be used, even if you hace just one.

Unfortunatly I have no HPUX under hand, but check

man linkloop

HTH,
Regards,
Massimo
rick jones
Honored Contributor

Re: question about nfs,linkloop,netstat.

linkloop sends a "special" (but standard) 802.3 frame type. (XID or perhaps TEST, I can never remember). the IEEE specs say such a frame should elicit a response, but precious few implementations outside of HP (UX, perhaps iX) seem to do it.

there is no way to clear the netstat statistics (well, I suppose you could hunt all of them down in the kernel with /dev/kmem, but seriously, don't try to go there...) under HP-UX.

there is however, a nifty little utility written by a coworker. that utility is called "beforeafter" and it will take two files and "subtract" the first file from the second. I often use this to get netstat statistics over an interval as in:

$ netstat -p tcp > before;sleep 60;netstat-p tcp > after

$ beforeafter before after > delta

$ more delta

i have used it with netstat and lanadmin under UX, and even occasionally with netstat under linux - however, I believe (not sure) that beforeafter rather depends on the files being the same formats, and some linux distros have this annoying habit of not displaying certain netstat stats if they are zero, so you don't always have the same set of lines each time...

anyway... ftp://ftp.cup.hp.com/dist/networking/tools/

and it includes source. I suspect that with a bit of scripting, it could be used in something that ran continuously.

as for accessing files on the UX box from the PC - when you say export home thatimplies nfs, which means an NFS client for the PC. or you "export" it from the UX box via SIFS/Samba instead of NFS.
there is no rest for the wicked yet the virtuous have no pillows