[summary] retrieving information of a NIC

From: Schepers, Jan (Jan.Schepers@atosorigin.com)
Date: Fri Jul 26 2002 - 12:06:12 EDT


List,

the question was:

> how to retrieve information of a network card like:
>
> - speed
> - brand/type of the card
> - mac address
>
> on a 4.0 system.

I got multiple responses:
- most of the information can be retrieved from the file /var/adm/messages
- but also
  . netstat
  . ifconfig
  returns some of the info

But I do not have a /var/adm/messages with the last boot in it.
 
According to the responses:
o 5.0 is better in retrieving information as 4.0
o a script (included) has been sent to retrieve information
 o The following commands peeking into kernel memory will give the answers.

- Speed
  ##
  # (ifnet.if_next if the lan target is tu1 , ifnet.if_next.if_netxt for tu2
....)
  root# dbx -k /vmunix
  dbx > p ifnet
   if_baudrate = speed

- Type
  ##
  # X is the number of the target (tu1,tu2, etc...)
  root# dbx -k /vmunix
  dbx> p tu_softc[X].tu_flags
        fast_speed = 1 ---> 1-> 100
                               0-> 10
        full_duplex = 1 ---> 1-> Full duplex
                               0-> Half duplexmy

THKX to ( in order of arrival)
Werner Rost, Fraser Macfarlane, Steve Copper, Wei Jiang,
Tom Blinn, David Ross, Peter Gergen, SMJ ad

Yann





This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:47 EDT