Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2020 16:00:24 +0100
From:      Tamas Szakaly <sghctoma@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Looking up a sysctl oid
Message-ID:  <20200116150024.4saavcf4bqejl3fe@telaranrhiod>
In-Reply-To: <20200116145348.kxrk7n7vjhf3q2zg@callisto.dbalan.in>
References:  <20200116145348.kxrk7n7vjhf3q2zg@callisto.dbalan.in>

next in thread | previous in thread | raw e-mail | index | archive | help
> What is the recomended way to understand what a sysctl oid represents?
> 
> for eg. How can I find what following oid represents?
> 
> dev.cpu.1.cx_usage: 18.07% 12.15% 69.76% last 1052us
> 
> so far I've found info about a subset of OIDs in manuals of sysctl(3)
> and sysctl(8), also in src/sysctl.h, but no method to lookup
> documentaion particular for an oid.
> 
> Thanks,
> dbalan

"sysctl -d" gives you the description for the oid:

$ sysctl -d dev.cpu.1.cx_usage
dev.cpu.1.cx_usage: percent usage for each Cx state

Cheers,
Toma



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