1827262 Members
2121 Online
109717 Solutions
New Discussion

NFS and NIC question

 
SOLVED
Go to solution
Terry Washington_1
Frequent Advisor

NFS and NIC question

Is there a command that can be run on a workstation running HP-UX 11i that will tell you the speed of a NIC? Also what are the commands to share a directory via NFS? I have done this within SAM and assume that the last step will be /sbin/init.d/nfs.server start.
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: NFS and NIC question

lanadmin -x 0 (where 0 is the card's instance or PPA number - use lanscan to find it) will give you the speed of the NIC

If it's not already started, start the NFS server with /sbin/init.d/nfs.server. Then, export the directory with exportfs If you want this to be permanent, add it to the /etc/exports file.


Pete



Pete
KCS_1
Respected Contributor

Re: NFS and NIC question

hi,

you can see speed of a NIC

# man lanadmin


-x options Get and display driver specific options of
the interface corresponding to PPA.

# lanadmin -x ppa

also,share a directory via NFS is

# man showmount

-a Print all remote mounts in the format

name:directory

where hostname is the name of the client, and directory is the
directory or root of the file system that was mounted.

-d List directories that have been remotely mounted by clients.

-e Print the list of exported file systems.


# showmount -e

cf)
# exportfs -a




have a good day!

Easy going at all.
Ramkumar Devanathan
Honored Contributor

Re: NFS and NIC question

For sharing out directories see this man page -

man exports

fill in your share details in the file /etc/exports.

thereafter, run the following commands -

# exportfs -ua

# exportfs -a

# exportfs

the above command will show the shares you have exported.

you don't have to restart nfs.

- ramd.
HPE Software Rocks!
Ramkumar Devanathan
Honored Contributor

Re: NFS and NIC question

In my previous post you may ignore my instruction to run tyhe command exportfs -ua. that removes all the current shares and if there are any nfs mounts that other nfs clients have made, this might cause their mounts to hang.

you may however run the other commands such as exportfs -a and exportfs.

- ramd.
HPE Software Rocks!
Terry Washington_1
Frequent Advisor

Re: NFS and NIC question

Thanks veryone for the NFS info. I am all set there. I am having a problem getting the NIC speed info. I ran a lanscan to get the PPA info on my NIC card and received the below output. I then ran lanadmin -x on what seems to be the PPA number but keep getting an invalid PPA number error. The workstation is a Visualize B1000. What am I missing?

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/0/12/0 0x001083F95434 0 UP lan0 snap0 1 ETHER Yes 119

# lanadmin -x lan0
Invalid PPA Number entry
# lanadmin -x snap0
Invalid PPA Number entry
#


Kelli Ward
Trusted Contributor
Solution

Re: NFS and NIC question

Hi,
Try just 0
lanadmin -x ppa 0

Also if you just use lanadmin, you go into a menu driven version which can give you some good stuff.

Enjoy,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
KCS_1
Respected Contributor

Re: NFS and NIC question

hi,again.

#lanadmin -x 0

what's display??

It's may do display correctly.
Easy going at all.
Terry Washington_1
Frequent Advisor

Re: NFS and NIC question

Thanks Kelli. That gave me the info.
Balaji N
Honored Contributor

Re: NFS and NIC question

and that your problem is solved, how about assigning points.

-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.