- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with /dev/lan0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 08:26 AM
04-12-2002 08:26 AM
Problem with /dev/lan0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 08:36 AM
04-12-2002 08:36 AM
Re: Problem with /dev/lan0
It should be like this
crw------- 1 root root 239 0x000000 Sep 14 2001 lan0
Or you can remove this file and recreate it using
rmsf and then insf
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 08:51 AM
04-12-2002 08:51 AM
Re: Problem with /dev/lan0
#tail -f /dev/lan0 ?
This will leave the read open until a ctrl-c.
Curious - just WHAT are you expecting to read?
Could it be that you are "hoping" there will be net traffic to read & there is none at the time you read?
Does the device have to be operational i.e. physically connected to something, at time of "license check"?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 09:04 AM
04-12-2002 09:04 AM
Re: Problem with /dev/lan0
#insf -e
#ioscan -fn | grep -i lan0
check the s/w state is CLAIMED for this device.
If it is ok then you are fine.
Can you give some more details like what exactly this software does? which user it uses to access lan0 device?
Thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 09:06 AM
04-12-2002 09:06 AM
Re: Problem with /dev/lan0
I received the below when I ran tail -f.
# tail -f /dev/lan0
tail: cannot open input
error: No such device on file lan0
I wanted to try Sachin's idea of removing the file and recreate it via rmsf/insf but I could not make a copy of the original file. It is almost as if it does not exist. I received the below when attempting to copy.
# cp /dev/lan0 /dev/lan0.020412.tew
cp: cannot open /dev/lan0: No such device
I did a more of /dev/lan0 on our other HP (an old Apollo series 700) running 10.20 and received an empty screen with "read error" at the bottom. I guess that the file was recognized but couldn't be read because it is a special file. I don't believe that there has to be network traffic or an operational device at the time of the read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 09:16 AM
04-12-2002 09:16 AM
Re: Problem with /dev/lan0
Don't worry about copying the file. insf will recreate it. Also the autoconfig capability of HP-UX would recreate it at the next boot as well.
Also have you ran the ioscan as suggested earlier & if so what was the outpu?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 05:07 AM
04-15-2002 05:07 AM
Re: Problem with /dev/lan0
# ioscan -fn |grep -i lan0
/dev/diag/lan0 /dev/ether0 /dev/lan0
I then tried to do a more of /dev/lan0 again and received "no such device".
Here is some additional info about the license script. In it's simplest form, the application calls open() on /dev/lan0. The
application can be run by any user, so /dev/lan0 must be readable by all.
Below is a snippet of the code. It is this open that fails.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
main()
{
int fd;
int i;
struct fis req;
unsigned char addr[6];
static char cpuname[30];
if ( (fd = open ("/dev/lan0", O_RDONLY)) < 0 )
{
printf (" open error %d fd= %d", errno,fd);
exit(1);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 05:19 AM
04-15-2002 05:19 AM
Re: Problem with /dev/lan0
what does lanscan show?
Is the lan port plumbed? (set up for use).
(ifconfig plumb)/
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 05:49 AM
04-15-2002 05:49 AM
Re: Problem with /dev/lan0
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
8/16/6 0x0060B018DE64 0 UP lan0 snap0 1 ETHER Yes 119
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 05:55 AM
04-15-2002 05:55 AM
Re: Problem with /dev/lan0
Most likely, the licensing code of the program must be changed to accomodate HP-UX. This is not unusual as there are very esoteric standards about hardware-level LAN access, none of which are found in general Unix standards. There are different methods depending on the rev of HP-UX and to a certain extent, patch level. What is the type of system call you're using to obtain LAn info?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2002 08:16 AM
04-15-2002 08:16 AM
Re: Problem with /dev/lan0
main()
{
int fd;
int i;
struct fis req;
unsigned char addr[6];
static char cpuname[30];
if ( (fd = open ("/dev/lan0", O_RDONLY)) < 0 )
{
printf (" open error %d fd= %d", errno,fd);
exit(1);
}
}