1836772 Members
2244 Online
110109 Solutions
New Discussion

Re: The lanadmin command

 
Habib_4
Advisor

The lanadmin command

Hi guys,

Just wandered, what is the 'lanadmin' normally used for?
Also, what sort of options do we have available for the lanadmin command and how can these be used?

Your information will be greatly appreciated.

Habib
7 REPLIES 7
RAC_1
Honored Contributor

Re: The lanadmin command

man landmin
lanadmin -sx "nm_id_of_card"
gives speed and duplex settings.
lanadmin -X "nm_id_of_card" sets dumplex settings.
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: The lanadmin command

The most common usage is to query or set speed and duplex options on your NIC.


Pete

Pete
Andrew Rutter
Honored Contributor

Re: The lanadmin command

hi,

lanadmin is used to configure your lan interfaces from command line, if you dont want to use SAM.

use lanscan to find details of lan interface and then lanadmin to configure as required, like examples already given.

#man lanadmin for more details

Andy
James R. Ferguson
Acclaimed Contributor

Re: The lanadmin command

Hi Habib:

The 'lanadmin' command can be run in menu mode to show LAN Interface status and statistics registers, too.

# lanadmin -> lan -> display

Regards!

...JRF...
Geoff Wild
Honored Contributor

Re: The lanadmin command

Here's an example in a script:

#!/usr/bin/sh
# script to check speed and settings of lan cards
PATH=/usr/sbin:/usr/bin
ppas=`lanscan | awk '$3~/^[0-9]$/{print $3}' | xargs`
for i in $ppas
do
printf "Card at PPA %s - " $i
ipa=`ifconfig lan${i} 2>/dev/null | awk '{ip=$2}END{if(ip==""){printf("Not assigned")}else{printf("%s ",ip)}}'`
printf "IP Address: %15s- " "$ipa"
lanadmin -x $i 2>/dev/null | awk '{$1="";printf("%s",$0)}'
echo ""
done

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: The lanadmin command

One of the most useful options is to display the card statistics. This provides a health and performance check on both the card and network. It runs in interactive mode (menu of choices) with no options and batch mode with options.


Bill Hassell, sysadmin
Asif Sharif
Honored Contributor

Re: The lanadmin command

Hi Habib,
See the following link,

http://docs.hp.com/en/J4240-90033/ch07s03.html

Regards,
Asif Sharif
Regards,
Asif Sharif