Quote:
Originally Posted by smallpond
You want to read the file operstate. Its possible values are defined in RFC 2863.
|
Hi, and thanks for the answer.
I had a look at that RFC, but it concerns SNMP and I didn't found anything about the file operstate.
I, instead, found somethin about ifOperStatus, but it does not seem the same exact thing.
I run a few tests and I came up with this result:
http://i.imgur.com/WOLv1.png
As you see, the operstate value could be used to see if an interface is connected (and ready to work) or not, except for the "eth0: up + cable + NOT connected" case.
I'd like to know if exists something that tell me universally if an interface is ready to use or not.
Cheers