Operating System - HP-UX
1820072 Members
2774 Online
109608 Solutions
New Discussion юеВ

How to check the NIC and LAN Console NIC configuration?

 
SOLVED
Go to solution
Chen Yingjie
Frequent Advisor

How to check the NIC and LAN Console NIC configuration?


Could someone advise me how to check the NIC
and LAN Console NIC's configuration?

We want to know whether NIC is auto-negotiation or not.

Thanks for advise.

Chen
6 REPLIES 6
G. Vrijhoeven
Honored Contributor
Solution

Re: How to check the NIC and LAN Console NIC configuration?

Hi,

NICS:

perform a lanscan for PPA numbers and issue a lanadmin -x .
This will give you current settings.
adjust using the lanadmin -X
to keep it adjust the /etc/rc.config.d/hpbtlanconf ( or other device file)

For lansconsole ot depends on the hardware. So if you could provide the hardware...

Regards,

Gideon
Franky_1
Respected Contributor

Re: How to check the NIC and LAN Console NIC configuration?

Hi,

you can do it using "lanadmin" command or just using sam

Regards

Franky
Don't worry be happy
Ralph Grothe
Honored Contributor

Re: How to check the NIC and LAN Console NIC configuration?

Like mentioned by the others
lanscan should display all your NICs incl. HW paths and MAC addresses.
Then the classical Unix command netstat shows you pretty much.

netstat -in

shows bound IP addresses, MTUs, In/Out packets

netstat -rn

shows the static routing table

netstat -s

shows you MIB stats

/usr/sbin/ifconfig lanX

the configuration of the by lanX specified NIC

/usr/sbin/lanadmin -g mibstats N

(where N is the PPA like 2 in lan2)
also shows you the MIB stats of that particular NIC

/usr/sbin/ioscan -nfClan

also shows you HW paths and used drivers
This gives you a hint which init NIC config file to look at for reboot-proof NIC settings.
E.g. if the driver was btlan you would put settings in /etc/rc.config.d/btlanconf

/usr/sbin/lanadmin -x N

would show the current settings (i.e. speed, link mode which needs to be the same as on the link partner (mostly a switch port)).

The node's IP address, netmask, gateway etc. would be configured reboot-proof in
/etc/rc.config.d/netconf

Madness, thy name is system administration
Muthukumar_5
Honored Contributor

Re: How to check the NIC and LAN Console NIC configuration?

We can get the lan interface configuration's with lanscan / netstat -in / netstat -rn / lanadmin and with sam as,

sam --> networkconfigurations --> network interface service --> lan card details

or simply with ifconfig too

But I am not sure console settings with these commands. I have tried on the console as,

MP>CM ( comman login )

MP:CM>LS -nc or LS

It gives the console settings with hostname etc there.

LS : LAN Status

This command displays all parameters and the current status of connections
of the MP LAN. The LAN parameters are not modified by the execution of
this command.

Regards
Muthu
Easy to suggest when don't know about the problem!
Ralph Grothe
Honored Contributor

Re: How to check the NIC and LAN Console NIC configuration?

In GSP there is as far as I remember a Lanconsole configuration selection which is invoked with "lc".
But I cannot verify, because I haven't got a connected Lanconsole right now :-]
At the console type Ctrl-b, then "he" or "ma" to get setting choices displayed.
It nust also depend on the GSP make and version what choices are available.
Madness, thy name is system administration
Muthukumar_5
Honored Contributor

Re: How to check the NIC and LAN Console NIC configuration?

LC - Lan configuration setup used to change the MP settings / hostname / ip-address etc there,

Help details are as,
==== MP Help: Port Configuration ===========================(Oper )============

LC : LAN Configuration usage (IP address, etc.)

This command modifies the LAN Configuration. Configurable parameters:
MP IP Address, MP host name, subnet mask, gateway, web access port
number, LAN speed, duplex, and autonegotiation.

MP Host Name set in this command is displayed at the MP command
interface prompt. Typically the DNS name for the LAN IP is entered.
This field can be programmed to any useful name or phrase. For clarity,
it is useful to enter: "MPNAME-on-SYSTEM" as the MP Host name, so
both names show up in the prompt (limit 19 chars, no spaces allowed.)

Command line usage:
LC [ -ip ] [ -host ] [ -subnet ] [ -web ]
[ -gateway ] [ -link ] [ -nc ]

(ADMINISTRATOR level command.)
SEE ALSO: LS, SA (LAN Status, Set Access)


To get the status of console use LS ( Lan Status ) :)

Easy to suggest when don't know about the problem!