Something like below?
That is what you get available when running ucd-snmp.
So I guess that a lot of the data is already available.
Just not in sysctl (yet)

-_WjW

interfaces.ifNumber.0 = 6
interfaces.ifTable.ifEntry.ifIndex.1 = 1
interfaces.ifTable.ifEntry.ifIndex.2 = 2
interfaces.ifTable.ifEntry.ifIndex.3 = 3
interfaces.ifTable.ifEntry.ifIndex.4 = 4
interfaces.ifTable.ifEntry.ifIndex.5 = 5
interfaces.ifTable.ifEntry.ifIndex.6 = 6
interfaces.ifTable.ifEntry.ifDescr.1 = "de0" Hex: 64 65 30
interfaces.ifTable.ifEntry.ifDescr.2 = "tun0" Hex: 74 75 6E 30
interfaces.ifTable.ifEntry.ifDescr.3 = "tun1" Hex: 74 75 6E 31
interfaces.ifTable.ifEntry.ifDescr.4 = "ppp0" Hex: 70 70 70 30
interfaces.ifTable.ifEntry.ifDescr.5 = "ppp1" Hex: 70 70 70 31
interfaces.ifTable.ifEntry.ifDescr.6 = "lo0" Hex: 6C 6F 30
interfaces.ifTable.ifEntry.ifType.1 = ethernet-csmacd(6)
interfaces.ifTable.ifEntry.ifType.2 = 0
interfaces.ifTable.ifEntry.ifType.3 = 0
interfaces.ifTable.ifEntry.ifType.4 = ppp(23)
interfaces.ifTable.ifEntry.ifType.5 = ppp(23)
interfaces.ifTable.ifEntry.ifType.6 = softwareLoopback(24)
interfaces.ifTable.ifEntry.ifMtu.1 = 1500
interfaces.ifTable.ifEntry.ifMtu.2 = 1500
interfaces.ifTable.ifEntry.ifMtu.3 = 1500
interfaces.ifTable.ifEntry.ifMtu.4 = 1500
interfaces.ifTable.ifEntry.ifMtu.5 = 1500
interfaces.ifTable.ifEntry.ifMtu.6 = 16384
interfaces.ifTable.ifEntry.ifSpeed.1 = Gauge: 10000000
interfaces.ifTable.ifEntry.ifSpeed.2 = Gauge: 0
interfaces.ifTable.ifEntry.ifSpeed.3 = Gauge: 0
interfaces.ifTable.ifEntry.ifSpeed.4 = Gauge: 0
interfaces.ifTable.ifEntry.ifSpeed.5 = Gauge: 0
interfaces.ifTable.ifEntry.ifSpeed.6 = Gauge: 0
interfaces.ifTable.ifEntry.ifPhysAddress.1 =  Hex: 00 80 48 EA 6C 8B
interfaces.ifTable.ifEntry.ifPhysAddress.2 = ""
interfaces.ifTable.ifEntry.ifPhysAddress.3 = ""
interfaces.ifTable.ifEntry.ifPhysAddress.4 = ""
interfaces.ifTable.ifEntry.ifPhysAddress.5 = ""
interfaces.ifTable.ifEntry.ifPhysAddress.6 = ""
interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1)
interfaces.ifTable.ifEntry.ifAdminStatus.2 = down(2)

In article <[EMAIL PROTECTED]> you write:
>
>Just a suggestion, perhaps there should be a dev tree in 
>sysctl with nodes for each device type then device.
>
>interesting applications for this:
>
>reporting on packets dropped/sent and such
>displaying connection status (duplex/100mb/10mb... etc)
>enabling/disabling power saving features
>
>dev.iface.fxp0.ipkts = 432523
>dev.iface.fxp0.opkts = 432523
>dev.iface.fxp0.linkspeed = 100
>dev.iface.fxp0.linkmode = full-duplex
>dev.dsk.da0.tags = 32
>....
>
>sysctl -w dev.iface.fxp0.linkmode=half-duplex
>
>?
>
>-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] 
>systems administrator and programmer
>    Win Telecom - http://www.wintelcom.net/
>
>
>
>To Unsubscribe: send mail to [EMAIL PROTECTED]
>with "unsubscribe freebsd-hackers" in the body of the message


-- 
Internet Access Eindhoven BV.,  voice: +31-40-2 393 393, data: +31-40-2 606 606
P.O. 928, 5600 AX Eindhoven, The Netherlands
Full Internet connectivity for only fl 9.95 a month.
Call now, and login as 'new'.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to