{ HP-UX } { LINUX } { SOLARIS } := HOW TO GET NET INFO

ON HP-UX

user@HP> lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/0/12/0 0x001083 FF8EC6 0 UP lan0 snap0 1 ETHER Yes 119

user@HP> /usr/sbin/lanadmin -x 0
Current Speed = 100 Half-Duplex Auto-Negotiation-ON

ON LINUX

# dmesg grep eth

eth0: SMC1211TX EZCard 10/100 (RealTek RTL8139) at 0xd0800100, 00:10:b5:56:e6:e6, IRQ 11
eth0: Identified 8139 chip type 'RTL-8139B'
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.

OR THIS WAY

# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes

ON SOLARIS

#ndd -set /dev/ instance 0

Let say we use hme0 as our eth interface

To get link mode
# ndd -get /dev/hme0 link_mode
1
Details:
0 -- half-duplex
1 -- full-duplex

To get link speed
# ndd -get /dev/hme link_speed
1
Details:
0 -- 10 Mbit
1 -- 100 Mbit
1000 -- 1 Gbit

NDD is a cool utilities, on Solaris man ndd for more info


P/S: KUDOS TO ITTUTOR.NET MEMBERS, THIS IS A COMPILATION OF SUBTOPIC IN SISTEM OPERASI REPLIED BY ME, ROOT (LINUX), RIZAL (FOUNDER) and mycomputer (Topic Starter). Link http://forums.ittutor.net/index.php?showtopic=3222

[mood]
Darn IT Politics !! IT World also involved in politics meh? Well its Malaysia for god sakes

0 comments: