Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hpux networkcard info

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
hi,
I need to know a command that can give me information about my networkcard.
I need manufacturer like HP
model - PCI Ethernet Adapter e.t.c
description - 10/100Mbps e.t.c
of my networkcard. lanadmin in interactive mode gives this info. But i need it in non-interactive mode.
Does anybody know any other commands..
I tried,
1. ioscan -fC lan
2. lanscan
both of them does not give what i am looking for.
Any help in this is appreciated..
thanks,
-dilip

 

Any interactive command can be made to be non-interactive via a shell script.

Try this in a shell script:

lanadmin << EOF > lanadmin.out 2>&1
lan
display

quit
EOF

The output of this command will be written to the file &quot;lanadmin.out&quot; and thus can be used or massaged in such a way to get the info that you need.

Hope this helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top