View Full Version : [ubuntu] When does a iface become up/down ?

December 4th, 2008, 04:03 PM
I am interested in finding the time when an interface becomes up or down. My goal is to store this information in a log file with the format up[time] down[time] ,where time's format is day-month-year/hours:minutes:secs , for later monitoring and to make eventual statistics. My question is how to determine those times. In general, how do I determine when a script runs a certain command ?