- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Operational state of lan in HP-UX 11 without using...
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
02-23-2001 02:05 AM
02-23-2001 02:05 AM
Is there a way of discovering the operational state of a lan card without using lanadmin? It was possible to achieve this using lanscan in 10.20, but lanscan has changed in 11.
Thanks!
Christian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 02:22 AM
02-23-2001 02:22 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/12/6 0x080009AD0423 0 UP lan0 snap0 1 ETHER Yes 119
Which is the same as in 10.20 and it tells me the state of the lan card. Is this what your after?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 02:26 AM
02-23-2001 02:26 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
from what I understand, there are three states, software, hardware and operational. The operational state determines whether the network is working correctly, so it should show 'UP' when, say the network cable is plugged in, and 'DOWN' when it is unplugged. This works in lanadmin, and lanscan in 10.20, but I'd like to have an alternative to lanadmin, or a command line which shows that information.
Thanks,
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 04:22 AM
02-23-2001 04:22 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
Try command: netstat.
see the manual pages.
Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 04:28 AM
02-23-2001 04:28 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
I have already tried this using
netstat -I lan0 ,
but somehow this gives inconsistent results, and takes a long time before it shows the operational state is down. It will come up with lan0* but it doesn't always seem to do this. My problem is that I currently have issues using lanadmin which are waiting to be addressed, and in the meantime would like something that can be used in a script and show the operational state, so netstat wouldn't be appropriate as it takes too long, say if I have a lot of lan cards on the system.
Thanks!
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2001 06:56 PM
02-23-2001 06:56 PM
Solutionyou could ask the local SNMP agent (snmpdm) to tell
you about that. Get some "snmpget" or "snmpwalk"
commands from the internet (UCD, perhaps) and have
a look on the MIB variables below
.iso.org.dod.internet.mgmt.mib2.interfaces
There you will find "adminStatus" and "operStatus" for
each interface you have and you do not have to be
"root" to run those commands.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2001 12:30 AM
02-24-2001 12:30 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
Please try this script, hope this can help.
--
Best Regards,
Dyi-Wu Liu
ldw@hputaiv$ cat lanstat.cmd
#! /usr/bin/sh
/usr/bin/uname -a
/usr/sbin/lanscan
ppas="0 1"
for ppa in $ppas
do
stat=`/usr/sbin/lanadmin 2>/dev/null <
ppa $ppa
d
q
EOF
`
echo $ppa --- $stat
done
Here is sample output :
ldw@hputaiv$ ./lanstat.cmd
HP-UX hputaiv B.11.00 U 9000/800 77177 unlimited-user license
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
5/1/0 0x0060B0B26418 1 UP lan1 snap1 1 ETHER Yes 119
5/0/0 0x0060B0B26433 0 UP lan0 snap0 2 ETHER Yes 119
0 --- Operation Status (value) = up(1)
1 --- Operation Status (value) = up(1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2001 07:06 AM
02-24-2001 07:06 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 07:47 AM
02-27-2001 07:47 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 07:58 AM
02-27-2001 07:58 AM
Re: Operational state of lan in HP-UX 11 without using lanadmin?
Christian