Operating System - HP-UX
1833323 Members
2911 Online
110051 Solutions
New Discussion

Re: "lanadmin -x" command returns nothing

 
SOLVED
Go to solution
B. Chapman
Frequent Advisor

"lanadmin -x" command returns nothing

In a nutshell - that is my error - I cannot get "lanadmin -x" to work with either of my interfaces - and when I try to use SAM to change characteristics (turn AUTONEG=OFF) - that also results in an error. Here's the commands:

myhost# ioscan -kfC lan
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
lan 0 0/0/0/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
lan 4 0/10/0/0 btlan CLAIMED INTERFACE HP A5230A/B5509BA PCI 10/1
00Base-TX Addon
myhost# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x00306E087E2A 0 UP lan0 snap0 1 ETHER Yes 119
0/10/0/0 0x00306E058CB4 4 UP lan4 snap4 2 ETHER Yes 119
myhost# lanadmin -x 0
myhost# lanadmin -x 4
myhost#

So - what gives? I *know* these last 2 commands should return output.

MORE INFO: Obviously - I tried rebooting the host - and NOW I get this/these errors upon reboot (from /etc/rc.log):

Configure HP 100BASE-T interfaces
Output from "/sbin/rc2.d/S333hpbtlan start":
----------------------------
ERROR: lan0 interface | PPA 0 :
ERROR: "lan2", the value of INTERFACE_NAME at index 1, is not found or invalid
ERROR: "lan1", the value of INTERFACE_NAME at index 2, is not found or invalid
ERROR: "lan3", the value of INTERFACE_NAME at index 3, is not found or invalid
ERROR: lan4 interface | PPA 4 :
"/sbin/rc2.d/S333hpbtlan start" FAILED

What gives? No recent patches, no recent changes, and prior to reboot, system had been up for ~120 days w/ no problems.

Any ideas?
2 REPLIES 2
Denver Osborn
Honored Contributor
Solution

Re: "lanadmin -x" command returns nothing

Check that the binary been hasn't been nulled out by mistake.

ll /usr/sbin/lanadmin

If it's zero bytes, restore from backup or copy the binary from an identical box.

Hope this helps,
-denver
B. Chapman
Frequent Advisor

Re: "lanadmin -x" command returns nothing

Wow - that is exactly it. Actually - there are a lot of files zeroed out. Methinks I have a bigger issue at hand. Many thanks for your quick response!