Operating System - HP-UX
1833262 Members
2942 Online
110051 Solutions
New Discussion

Re: error message on console

 
cute
Advisor

error message on console

Can Anybody help me understand what the message below means:
"LAN Device List: the specified subscript cannot be greater than 1024"
And how can I solve this if this is a known problem. This message appears at bootup time.

Thank you.
-Nim
12 REPLIES 12
John Carr_2
Honored Contributor

Re: error message on console

Hi

we need a little more info as the error meesage did not appear below.

cheers
John.
cute
Advisor

Re: error message on console

Hi Johjn,
the error message:

LAN Device List: the specified subscript cannot be greater than 1024

Thank you!
-Nim
Michael Tully
Honored Contributor

Re: error message on console

Hi,


Are there any errors in the following files, as they may give further information:

/etc/rc.log
/var/adm/syslog/syslog.log
/var/opt/resmon/log/event.log

Anything appear when you run 'dmesg' in relation to this problem?

What happens when you look at the statistical information provided in 'lanadmin'? Does it appear normal?

Cheers
~Michael~
Anyone for a Mutiny ?
Mark Fenton
Esteemed Contributor

Re: error message on console

Michael's right, a little more context, if you please.

Understood that you're seeing this on the console -- where in the bootup process is it happening, (post the few previous/post lines from /etc/rc.log if it's in there)

Look at the script that's generating the error and it will probably give clues as to why.

hth

Mark
cute
Advisor

Re: error message on console

Thanks Michael,
Lanadmin displays:
============================
Network Management ID = 4
Description = lan0 Hewlett-Packard LAN Interface Hw Rev 0
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x80009fd8527
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 0
Inbound Octets = 980400
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 1470600
Outbound Unicast Packets = 6450
Outbound Non-Unicast Packets = 0
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Press to continue


Ethernet-like Statistics Group

Index = 4
Alignment Errors = 0
FCS Errors = 0
Single Collision Frames = 0
Multiple Collision Frames = 0
Deferred Transmissions = 0
Late Collisions = 0
Excessive Collisions = 0
Internal MAC Transmit Errors = 0
Carrier Sense Errors = 2150
Frames Too Long = 0
Internal MAC Receive Errors = 0
================================


Where else do i need to lookup?
I have already modified my /etc/rc.config.d/netconf
and changed BROADCAST_ADDRESS=xxx.x.x.x.x to ""...

Thank you again.
-Nim

cute
Advisor

Re: error message on console

Thanks for the help...

from my rc.log:

Configure HP GSC 100BT interfaces
Output from "/sbin/rc2.d/S331hpgsc100 start":
----------------------------
ERROR: invalid duplex value for lan1 interface

Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":


======
any ideas?
thanks again,
-Nim
Ulf Lipski
Advisor

Re: error message on console

What is your ifconfig output? Their is a mistake in your lan configuration. Some value is too big (> 1024) because of a write mistake.
Optimization is the root of all evil.
Steve Post
Trusted Contributor

Re: error message on console

My guess is that one of the files in /etc/rc.config.d has a typo in it.
cd /etc/rc.config.d
ls -ltr
Look at what has been changed lately.

Sound like you have something like
lan[32342393]="billybob"

Granted it's just a guess.
(but I'm a good guesser).
Steve
Steve Steel
Honored Contributor

Re: error message on console

Hi

yet another steve is here.

I would look at

Changing the /etc/rc.config.d/netconf file:
It must be of this format for each card.

change for lan 0
INTERFACE_NAME[0]=blank
LANCONFIG_ARGS[0]=""
BROADCAST_ADDRESS[1]=1.255.255.255

To

INTERFACE_NAME[0]=lan0
LANCONFIG_ARGS[0]="ether"
BROADCAST_ADDRESS[1]=blank

full example
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=15.160.35.52
SUBNET_MASK[0]=255.255.254.0
BROADCAST_ADDRESS[0]=""
LANCONFIG_ARGS[0]=ether
DHCP_ENABLE[0]=0

Then Save changes to the /etc/rc.config.d/netconf file.

Reboot your system.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Trevor Dyson
Trusted Contributor

Re: error message on console

Steve Posts's reply is right on the money.

Specifically the error message means that an array variable in a korn/posix shell script has an index greater than 1023. You would see this message if you typed in:

var[1024]=foo

You most likely have a typo in one of your /etc/rc.config.d files. none of the values between [] brackets can be greater than 1023.
I've got a little black book with me poems in
pap
Respected Contributor

Re: error message on console

Cute ,
It seems that there is some syntex problem in /etc/rc.config.d/netconf
Please post the /etc/rc.config.d/netconf file, that will give us a chance to eveluate your problem in good sense.

-pap
"Winners don't do different things , they do things differently"
cute
Advisor

Re: error message on console

here are some additional info...

sorry for the inconvenience...

***************************************************************************

# NETCONF

HOSTNAME="d380igen"

OPERATING_SYSTEM=HP-UX

LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[1]=lan1

IP_ADDRESS[1]=10.12.18.2

SUBNET_MASK[1]=255.255.0.0

# BROADCAST_ADDRESS[1]=192.99.255.255

#BROADCAST_ADDRESS[1]=131.107.255.255

BROADCAST ADDRESS[1]=""

LANCONFIG_ARGS[1]="ether"

DHCP_ENABLE[1]=0

ROUTE_DESTINATION[0]=default

ROUTE_MASK[0]=""

ROUTE_GATEWAY[0]=10.12.18.1

ROUTE_COUNT[0]=1

ROUTE_ARGS[0]=""

GATED=0

GATED_ARGS=""

RDPD=0

RARPD=0

***************************************************************************

/etc/rc.log:



Configure HP 100BT interfaces

Output from "/sbin/rc2.d/S323hpbase100 start":

----------------------------

No 100BT device configured in system (btlan3)

"/sbin/rc2.d/S323hpbase100 start" SKIPPED



Configure HP GSC 100BT interfaces

Output from "/sbin/rc2.d/S331hpgsc100 start":

----------------------------

ERROR: invalid duplex value for lan1 interface



Configure LAN interfaces

Output from "/sbin/rc2.d/S340net start":

----------------------------



Start name server daemon

Output from "/sbin/rc2.d/S370named start":

***************************************************************************



lanconfig

# ifconfig lan1

lan1: flags=863

inet 10.12.18.2 netmask ffff0000 broadcast 10.12.255.255



# ifconfig lan0

lan0: flags=862



# lanscan

Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr

Path Address In# State NameUnit State ID Type Support Num

8/16/6 0x080009FD8527 0 UP lan0 DOWN 4 ETHER Yes 52

8/8/1/0 0x00306E052664 1 UP lan1 UP 5 ETHER Yes 119



# ioscan -funC lan

Class I H/W Path Driver S/W State H/W Type Description

========================================================================

lan 1 8/8/1/0 btlan4 CLAIMED INTERFACE PCI(10110009) -- Built-in #1

lan 0 8/16/6 lan2 CLAIMED INTERFACE Built-in LAN

/dev/diag/lan0 /dev/ether0 /dev/lan0



***************************************************************************

/etc/rc.config.d/hpgsc100conf

HP_GSC100_INTERFACE_NAME[0]=lan1

HP_GSC100_STATION_ADDRESS[0]=0x00306E052664

HP_GSC100_SPEED[0]=

HP_GSC100_INIT_ARGS="HP_GSC100_STATION_ADDRESS HP_GSC100_DUPLEX"

HP_GSC100_DUPLEX[0]=0x003006E052664

***************************************************************************



Thanks for all the help. hope to get some more, soon...



thanks!

-Nim