VERY COOL! On 8 Oct 2002, Vladimir B. Grebenschikov wrote:
> Hi > > Attached diff introduces new ddb interface - access to sysctl interface > > sysctl - read sysctl value > sysctlw - write sysctl value > > Example: > > Translate string to sysctl MIB: > > db> sysctlw 0.3 hw\.model > 0xcd1aaeec: 6 2 > db> > > Now get string by this MIB: > > db> sysctl 6.2 s > 0xcd1ab24: Pentium II/Pentium II Xenon/Celeron > db> > > Or get vm.kvm_free > db> sysctlw 0.3 vm\.kvm_free > 0xcd1aaeec: 2 2da > db> sysctl 2.2da > 0xcd1ab2f4: 3800000 > db> > > This interface useful to inspect/change data easy accessible through > sysctl and hard accessible directly (say dynamic sysctl-mapped data, or > sysctl-mapped fields in complex structures). > > Comments appreciated. > > -- > Vladimir B. Grebenschikov > [EMAIL PROTECTED], SWsoft, Inc. > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message