Operating System - HP-UX
1834942 Members
2185 Online
110071 Solutions
New Discussion

Re: Cannot preserve NIC setting after reboot

 
Marc Ahrendt
Super Advisor

Cannot preserve NIC setting after reboot

When the server reboots it sets the NIC to 100HD instead of 100FD. Below is the basic information:
server: K380 running 10.20
NIC: A3495-69211 HP-PB 10/100Base-TX

The NIC uses driver btlan1 according to "ioscan -funC lan". I believe the correct configuration file to edit is /etc/rc.config.d/hpbasetconf and the needed entry is "HP_BASET_SPEED[0]=100FD". After rebooting my current work-around is to run "lanadmin -X 100fd 5" since it boots to 100HD as seen in "lanadmin -x 5". I feel I must be editing the wrong file or tweaking the wrong option. NOTE: the LAN switch is set to 100FD and not AUTONEG.
hola
15 REPLIES 15
Pete Randall
Outstanding Contributor

Re: Cannot preserve NIC setting after reboot

You have a file called hpbasetconf? I don't - on my 11i systems. That may have been different on 10.20, I don't know. My notes tell me that that is the correct file since your driver is btlan1.

Just for kicks, why don't you try editing some of the other hp*conf files and setting them to 100FD? Maybe this is an error i documentation.


Pete

Pete
Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

Pete: The only other /etc/rc.config.d/hp* files that may relate are hpbase100conf and hpetherconf ...but those just do not seem correct by reviewing their contents

I was hoping someone had this card on a 10.20 system and could give me feedback as I believe, as Pete noted, there may be some misleading information about setting up this card ....my current plan of attack is to try/test "100fd" instead of "100FD" in the hpbasetconf file (sadly I just do not have the ability to reboot this server at will)
hola
Tim Nelson
Honored Contributor

Re: Cannot preserve NIC setting after reboot

How about one called hpGSC100conf ?

My K380 runing 10.20 has /sbin/init.d/hpgsc100 and /etc/rc.config.d/hpGSC100conf files.

The config files depend on what type of interface/NIC you have .. Not sure which is for the A3495-69211 card is.

Once upon a time I had a link to an HP webpage that listed which config files were for which cards. I will search around. Be back in a few minutes.

Tim Nelson
Honored Contributor

Re: Cannot preserve NIC setting after reboot

How about here (about 4 paragraphs down).

http://docs.hp.com/en/5990-7279/apds02.html

Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

Tim: Thanks for the feedback but no reference for btlan1

It seems I will just have to test some things. When I get a chance I may set HP_BASET_SPEED[0] to FULL.

Below is more information from my server:
xena:[/etc/rc.config.d]# ls -al hp*
-r-xr-xr-x 1 bin bin 199 Jun 15 1999 hparamgr
-r--r--r-- 1 bin bin 270 Jun 10 1996 hparray
-r--r--r-- 1 bin bin 1212 Jul 22 1998 hpbase100conf
-r--r--r-- 1 bin bin 1182 Sep 26 23:45 hpbasetconf
-r--r--r-- 1 bin bin 968 Jun 10 1996 hpetherconf
-r--r--r-- 1 bin bin 599 Apr 26 1999 hpfcmsconf
-r-xr-xr-x 1 bin bin 1815 Nov 1 1999 hpgelanconf
hola
Tim Nelson
Honored Contributor

Re: Cannot preserve NIC setting after reboot

The startup file simply runs lanadmin -X 100FD (lanid)


You can always just create a startup script that does this if you cannot find the right one.

Andrew Rutter
Honored Contributor

Re: Cannot preserve NIC setting after reboot

hi,

well your editing the right file

/etc/rc.config.d/hpbasetconf

it could be a patch issue? have you tried re-configuring it through sam?

see this link for abit more info and confirmation your using the right file

http://docs.hp.com/en/601/autonegotiation.pdf

but, should this
HP_BASET_SPEED[0]=100FD
not be HP_BASET_SPEED[5]=100FD

if your card is 5

Andy
Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

Tim: That is my last resort ...just really not my style of doing things, but if in the end I make no progress on /etc/rc.config.d/hp* then I that will have to be my work-around.

Below is just some more information that may be helpful to someone to help me:)

xena:[/etc/rc.config.d]# ioscan -funH 10/16/8
Class I H/W Path Driver S/W State H/W Type Description
==============================================================
lan 4 10/16/8 btlan1 CLAIMED INTERFACE HP HP-PB 100 Base TX card
hola
Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

Andrew: Great catch ...sadly that had no impact as I had an opportunity to reboot the server this evening

Below was the change I made based on Andrew's feedback:

xena:[/etc/rc.config.d]# diff /usr/newconfig/etc/rc.config.d/hpbasetconf hpbasetconf
< HP_BASET_INTERFACE_NAME[0]=
< HP_BASET_STATION_ADDRESS[0]=
< HP_BASET_SPEED[0]=
> HP_BASET_INTERFACE_NAME[5]=
> HP_BASET_STATION_ADDRESS[5]=
> HP_BASET_SPEED[5]=100FD

Below is some more information:

xena:[/etc/rc.config.d]# swlist -l fileset | grep 100BT | grep PH
# PHNE_10770 B.10.00.00.AA dhcpclient for 100BT lan
PHNE_10770.PHNE_10770 B.10.00.00.AA dhcpclient for 100BT lan
# PHNE_27079 B.10.00.00.AA HP-PB 100BT cumulative patch
PHNE_27079.PHNE_27079 B.10.00.00.AA HP-PB 100BT cumulative patch

hola
Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

I reviewed the /etc/rc.config.d/hpbasetconf in detail and noticed the following comment within the file:

...
# The station address and duplex are set through the lanadmin(1m) command.
...

So it appears I must manually configure a custom startup script to run "lanadmin", as Tim had earlier suggested, or for some reason hpbasetconf is just the wrong configuration file or ????
hola
Pete Randall
Outstanding Contributor

Re: Cannot preserve NIC setting after reboot

Marc,

What does lanscan report? I have to wonder if we're specifying the right instance - [0] vs [5] vs [?].


Pete

Pete

Re: Cannot preserve NIC setting after reboot

The [5] is just an index setting for a normal shell array variable, nothing to do with it being lan5.

However I note from what you posted above that your config file had the following in it:

HP_BASET_INTERFACE_NAME[0]=
HP_BASET_STATION_ADDRESS[0]=
HP_BASET_SPEED[0]=100FD

Well it should be:

HP_BASET_INTERFACE_NAME[0]=lan5
HP_BASET_STATION_ADDRESS[0]=
HP_BASET_SPEED[0]=100FD


Otherwise the script doesn't know which interface to set!

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Pete Randall
Outstanding Contributor

Re: Cannot preserve NIC setting after reboot

Duncan,

> The [5] is just an index setting for a normal shell array variable, nothing to do with it being lan5.

Yes, I realize that - just wondering how many NICs Marc actually has and, therefore, if 5 is appropriate.


Pete

Pete
RAC_1
Honored Contributor

Re: Cannot preserve NIC setting after reboot

I will go ahead and also check cat -v on the file to see if anything is messing it up or not. Also, have you put this lan in any other config file by mistake?
There is no substitute to HARDWORK
Marc Ahrendt
Super Advisor

Re: Cannot preserve NIC setting after reboot

Pete: "5" is the correct value to use ...as the reference is for the NMID and not the instance number (which is "4"). Below is the output from "lanscan"

Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
10/8/1/0 0x0060B0C4F185 3 UP lan3 DOWN 4 ETHER Yes 78
10/16/8 0x00306E0EDA56 4 UP lan4 UP 5 ETHER Yes 79
10/12/6 0x00108303FA58 0 UP lan0 DOWN 6 ETHER Yes 52

Duncan: Thanks for the feedback ...I learned what you know just by testing out out desperation

RAC: Thanks for the additional advice ..."cat -v" helped confirm all is OK with the file and "grep -i lan *" in /etc/rc.config.d and /sbin/init.d showed no conflicts

I just seems, as stated in my last response, that "lanadmin" must manually be run as the configuration file does not (strangely) support setting duplex
hola