Operating System - HP-UX
1752788 Members
5651 Online
108789 Solutions
New Discussion юеВ

Re: lanscan - Unable to open device file

 
SOLVED
Go to solution
Joao Rei
Frequent Advisor

Re: lanscan - Unable to open device file

crw-rw-rw- 1 root sys 72 0x000077 Jul 28 2008 /dev/dlpi
Jupinder Bedi
Respected Contributor

Re: lanscan - Unable to open device file

remove this device file or mv it and create it again by using insf -e command
and try again

good luck
All things excellent are as difficult as they are rare
Joao Rei
Frequent Advisor

Re: lanscan - Unable to open device file

mv dlpi and insf -e again:

crw-rw-rw- 1 root sys 72 0x000077 Feb 2 14:14 dlpi
# lanscan
Unable to open device file
Fabio Ettore
Honored Contributor

Re: lanscan - Unable to open device file

Hi,

try tusc:

tusc lanscan | grep dlpi

You find tusc onto Porting site:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.10/

If lanscan cannot access dlpi device ilfe you'll see:

# tusc lanscan|grep dlpi
open("/dev/dlpi", O_RDWR, 0343) ................................................................................... ERR#2 ENOENT

If it can access dlpi device file you'll see:

open("/dev/dlpi", O_RDWR, 0171120) ................................................................................ = 4


Maybe something is still wrong with /dev/dlpi device file if lanscan cannot access it.
If so please also post

lsdev | grep -e 72 -e dlpi

HTH.

Best regards,
Fabio

Best regards,
Fabio

WISH? IMPROVEMENT!
Joao Rei
Frequent Advisor

Re: lanscan - Unable to open device file

Thanks for all the replies.

Here is the output:

# lsdev | grep -e 72 -e dlpi
72 -1 clone pseudo
119 -1 dlpi pseudo
Fabio Ettore
Honored Contributor

Re: lanscan - Unable to open device file

Hi,

lsdev output seems ok and what about tusc output? That is also important to understand where lanscan fails.

Best regards,
Fabio
WISH? IMPROVEMENT!
Joao Rei
Frequent Advisor

Re: lanscan - Unable to open device file

Here is the output:

# tusc lanscan | grep dlpi
open("/dev/dlpi", O_RDWR, 0) ...................................................................................... ERR#16 EBUSY


Fabio Ettore
Honored Contributor
Solution

Re: lanscan - Unable to open device file

Hi,

do you have lsof to understand if something else is locking /dev/dlpi?

lsof | grep dlpi

Otherwise do you have an occasion to reboot the system? I know it's an extreme solution but it seems something is keeping dlpi device file which results BUSY in tusc output.

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
BUPA IS
Respected Contributor

Re: lanscan - Unable to open device file

Hello Joao,

Have you checked to see if you have these patches? The igelan patch mentions various diffculties communicating with dlpi.

PHNE_37324 IGELAN 1000Base-SX/T B.11.23.[01-0712] patch

This also updates dlpi and enables newer cards

PHNE_36839 11.23 LAN cumulative patch

I hope this is of some use
Mike
Help is out there always!!!!!
Joao Rei
Frequent Advisor

Re: lanscan - Unable to open device file

Used lsof and I got a lot of output from sysedge command.

I stoped and restarted this agent and:

# lanscan

Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x0017A4AB4077 0 UP lan0 snap0 1 ETHER Yes 119
0/1/2/1 0x0017A4AB4076 1 UP lan1 snap1 2 ETHER Yes 119

Thank you very much for the feedback.

Regards,

Joao Rei