2

Some of the information i am requesting can be gleaned from /var/log/syslog , e.g:

grep wlan /var/log/syslog

But the usefulness of that information also depends on how you are network connecting; dhcp or static network connections, etc.

Is there a command line give us the uptime of network card exactly ?

4
  • 5
    Do you mean, when was the network card discovered on the PCI/USB Bus, or when the ethernet link came up, or when it first associated with a wifi access point, or when it successfully authenticated to a wifi network, or when it first obtained an IP address? Or when it received or sent its first frame? Feb 9 '15 at 12:11
  • Mr. @StéphaneChazelas: alright.exactly! Feb 9 '15 at 13:01
  • 1
    Exactly what? Which one is it? Feb 9 '15 at 13:24
  • I doubt that the network was down between two servers in a period of time (of course when the network goes down, the NIC goes down too). So I want to know when was the last time it came up to make sure if the network went down in the that period of time or not Feb 9 '15 at 13:53
3

Use rtmon to record network interface changes and then parse its output as needed.

1
  • 2
    An example would be nice.
    – Tadej
    Sep 7 '17 at 6:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.