Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  4 Jul 1999 16:41:09 +0200 (MET DST)
From:      wjw@iae.nl (Willem Jan  Withagen)
To:        bright@rush.net
Cc:        hackers@freebsd.org
Subject:   Re: devices in sysctl MIB?
Message-ID:  <19990704144109.EE0A79E52@surf.iae.nl>
In-Reply-To: <Pine.BSF.3.96.990703182338.14320K-100000@cygnus.rush.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Pine.BSF.3.96.990703182338.14320K-100000@cygnus.rush.net> 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 - [bright@rush.net|bright@wintelcom.net] 
>systems administrator and programmer
>    Win Telecom - http://www.wintelcom.net/
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990704144109.EE0A79E52>