1834827 Members
2560 Online
110070 Solutions
New Discussion

speed and mode of NIC

 
SOLVED
Go to solution
Jorge Prado T
Contributor

speed and mode of NIC


hi,
As I obtain, by means of script, the speed and mode whereupon this configured a NIC?

Thanks in advance

Jorge Prado
7 REPLIES 7
Juan M Leon
Trusted Contributor

Re: speed and mode of NIC

Can be more sxpecific about your question.

Thank you
RAC_1
Honored Contributor
Solution

Re: speed and mode of NIC

lanadmin -sx "nm_id_of_nic"
There is no substitute to HARDWORK
Mel Burslan
Honored Contributor

Re: speed and mode of NIC

lanadmin -x lan#

where # sign denotes the lan instance as in

1 for lan1
3 for lan3
etc.

hope this helps
________________________________
UNIX because I majored in cryptology...
Patrick Wallek
Honored Contributor

Re: speed and mode of NIC

You can use lanadmin to obtain this information.

# lanadmin -x 0
Current Config = 100 Full-Duplex MANUAL

The above means that the NIC is hard set to 100FD and not augo-negotiate.

The argument to the '-x' option is the value from the "CRD IN#" column of the lanscan output.
Jorge Prado T
Contributor

Re: speed and mode of NIC

Juan,
I need periodically to register the state of the server´s NIC (speed and mode - full or half duplex)

Thank you

Jorge Prado


Raj D.
Honored Contributor

Re: speed and mode of NIC

Hi Jorge ,

Speed of NIC:
--------------
1. First check the PPA number of your Network Card.

# lanscan [ note the PPA no. suppose its 0]

2. # lanadmin -s 0

3. lanadmin -a 0 [ Will give MAC address ]

4. # ifconfig lan0 will show statistics with IP.

5. To get more details.
Give
# lanadmin --> lan --> display ( Interactive)

You will get like this :
LAN INTERFACE STATUS DISPLAY
Tue , Aug 23,2005 17:02:31

PPA Number = 0
Description = HP PCI 10/100Base-TX Core [100BASE-TX,FD,MANUAL,TT=1500]
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100000000
Station Address = 0xd9daecd5f
Administration Status (value) = up(1)
Operation Status (value) = up(1)
Last Change = 4152
Inbound Octets = 3352162488
Inbound Unicast Packets = 559020314
Inbound Non-Unicast Packets = 14665435
Inbound Discards = 42690
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 1433199574
Outbound Unicast Packets = 239661079
Outbound Non-Unicast Packets = 42690
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367
------------------------------------------

Hope this help.
Cheers ,

Raj.
----



" If u think u can , If u think u cannot , - You are always Right . "
Mel Burslan
Honored Contributor

Re: speed and mode of NIC

Jorge,

you can set a cron job as follows

00 * * * * /var/adm/check_lan_speed.sh

then create the script /var/adm/check_lan_speed.sh as follows:

date >> /var/adm/lan_speed_log.out
for index in 0 2 5 # you need to decide which interfaces here this checks lan0 lan2 and lan5
echo "lan${index}" >> /var/adm/lan_speed_log.out
landamin -x ${index} >> /var/adm/lan_speed_log.out
done
echo "======== END of RUN ========" >> /var/adm/lan_speed_log.out


this will log the status of lan0 lan2 and lan5 into the /var/adm/lan_speed_log.out file every hour.

Hope this helps
________________________________
UNIX because I majored in cryptology...