[nycbug-talk] FreeBSD SNMP OID Question

Mark Saad mark.saad at ymail.com
Tue Sep 17 14:03:08 EDT 2013


On Tue, Sep 17, 2013 at 1:56 PM, Jesse Callaway <bonsaime at gmail.com> wrote:

> I'm also running the same kernel version and arch. But I get a couple more
> lines in my grep of sysctl:
>
>
> $ sysctl -a |fgrep -i swap
> 1 PART ada1p3 4294967296 512 i 3 o 244813153280 ty freebsd-swap xs GPT xt
> 516e7cb5-6ecf-11d6-8ff8-00022d09712b
> z0xfffffe00087beb00 [shape=box,label="SWAP\nswap\nr#3"];
>     <name>SWAP</name>
>       <name>swap</name>
>         <type>freebsd-swap</type>
>
> vm.swap_enabled: 1
> vm.nswapdev: 1
> vm.swap_async_max: 4
> vm.swap_reserved: 2013835264
> vm.swap_total: 4294967296
>
> vm.swap_idle_threshold2: 10
> vm.swap_idle_threshold1: 2
> vm.stats.vm.v_swappgsout: 0
> vm.stats.vm.v_swappgsin: 0
> vm.stats.vm.v_swapout: 0
> vm.stats.vm.v_swapin: 0
> vm.disable_swapspace_pageouts: 0
> vm.defer_swapspace_pageouts: 0
> vm.swap_idle_enabled: 0
> $ uname -a
> FreeBSD zip 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4
> 09:23:10 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> amd64
>
>
> Dunno what the xml is from, not going to look now... but the
> vm.swap_reserved/total don't seem to show up in you sysctl output.
>
>
>
>
> On Tue, Sep 17, 2013 at 10:58 AM, Mark Saad <mark.saad at ymail.com> wrote:
>
>> All
>>   Can someone shed some light on a OID mystery I have. I am using cacti
>> to trend some snmp data off a bunch of FreeBSD servers.
>>
>> I noticed someone added a graph to a cluster for UCDavis - ssRawSwapIn /
>> UCDavis - ssRawSwapOut  . The OIDs are .1.3.6.1.4.1.2021.11.62 /
>> .1.3.6.1.4.1.2021.11.63  Their description is  Number of blocks swapped
>> in / Number of blocks swapped out .
>>
>> The mystery is the graphs show pages swapping in and out all the time.
>> However the sysctls for swap usage show no indication of swap being used
>>
>> # sysctl -a |fgrep -i swap
>> vm.swap_enabled: 1
>> vm.nswapdev: 1
>> vm.swap_async_max: 4
>> vm.swap_idle_threshold2: 10
>> vm.swap_idle_threshold1: 2
>> vm.stats.vm.v_swappgsout: 0
>> vm.stats.vm.v_swappgsin: 0
>> vm.stats.vm.v_swapout: 0
>> vm.stats.vm.v_swapin: 0
>> vm.disable_swapspace_pageouts: 0
>> vm.defer_swapspace_pageouts: 0
>> vm.swap_idle_enabled: 0
>>
>> # uptime
>>  2:51PM  up 203 days, 22:29, 1 user, load averages: 0.00, 0.01, 0.00
>>
>>
>> # snmpwalk -c MyPassword -v2c -Of server00 .1.3.6.1.4.1.2021.11.62.0
>>
>> .iso.org.dod.internet.private.enterprises.ucdavis.systemStats.ssRawSwapIn.0
>> = Counter32: 3588
>>
>>
>>
>> I am using net-snmp-5.4.2.1 on FreeBSD 9.1-RELEASE amd64
>>
>>
My mistake this is a 7-STABLE amd64 install not a 9.1-RELEASE. I never got
around to upgrading this install.
All of the 9.x servers also show that xml bit. Not sure exactly what that
is either.


>
>>
>> See *http://net-snmp.sourceforge.net/docs/mibs/ucdavis.html
>>
>>
>>
>>
>>
>>
>> --
>> Mark Saad | mark.saad at ymail.com
>> _______________________________________________
>> talk mailing list
>> talk at lists.nycbug.org
>> http://lists.nycbug.org/mailman/listinfo/talk
>>
>
>
>
> --
> -jesse
>



-- 

Mark Saad | mark.saad at ymail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/talk/attachments/20130917/c5258f54/attachment.html>


More information about the talk mailing list