|
Home > Archive > Unix administration > May 2005 > UNIX command for interface uptime
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
UNIX command for interface uptime
|
|
|
| hi
please help me, i am looking for a UNIX command which
gives me the uptime of interfaces.
many thanx!
clint
| |
| Michael Vilain 2005-05-24, 6:04 pm |
| In article <pan.2005.05.24.17.45.49.312311@freemail.hu>,
clint <clint@freemail.hu> wrote:
> hi
>
> please help me, i am looking for a UNIX command which
> gives me the uptime of interfaces.
> many thanx!
>
> clint
Well, if you mean network interfaces, I'm not aware that this is tracked
at all by most Unix kernels. Typically, when the OS comes up on Unix,
so does the network interface.
netstat -i shows the traffic seen on the various interfaces on Solaris
and MacOS X.
ifconfig -a shows the network interfaces and their configuration.
uptime shows the load average and uptime of the running Unix OS.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
| |
| Doug Freyburger 2005-05-26, 6:00 pm |
| Michael Vilain wrote:
> clint <clint@freemail.hu> wrote:
>
>
> Well, if you mean network interfaces, I'm not aware that this is tracked
> at all by most Unix kernels. Typically, when the OS comes up on Unix,
> so does the network interface.
>
> netstat -i shows the traffic seen on the various interfaces on Solaris
> and MacOS X.
>
> ifconfig -a shows the network interfaces and their configuration.
>
> uptime shows the load average and uptime of the running Unix OS.
Worse, you can use ifconfig to turn off an interface (bringing
it down), then use ifconfig to turn on an interface (bringing
it up) and the interface will remember all of its old packet
counts on ever Unix I've tried. I am convinced it is not
tracked by any kernel I've tried.
|
|
|
|
|