[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARP & Network Cards.




>need to get NICN

The NICN is printed in the dmesg boot message list at boot time, for each
card detected. If you use a program then be sure to use a non-seeking read
on /proc/kmsg which contains this info. For a script, use dmesg. 

The data in /proc/kmsg spans only 4k and it is possible that machines with
large amounts of hardware bury the message (it scrolls off). 

The remedy is to save dmesg output while running rc.M or such, and hope
for the best. To store more kmesg it is necessary to hack the kernel.

4k is enough for most purposes for now, but if you have a lot of devices,
maybe use a modular driver for the NI card. This will add the message
later and make sure that it will be seen. There is no guarantee that the
dmesg contents are whole by the time a user logs in, or a certain program
runs, unless such measures are taken.

Note that kmesg continues to be written to as the machine works, for
example, bringing up pppX will write 1-3 lines there, every time.

hope this helps,

	Peter