summaryrefslogtreecommitdiffstats
path: root/sbin/sysctl/sysctl.8
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-01-31 19:33:25 +0000
committergavin <gavin@FreeBSD.org>2010-01-31 19:33:25 +0000
commite367b167d9a57c4707785dd85b02efa0349da230 (patch)
treefb8c7e96537813b77e031ce5301413723c90b0ca /sbin/sysctl/sysctl.8
parentf54e0fab4c381ffac266474cd866b849f62dce62 (diff)
downloadFreeBSD-src-e367b167d9a57c4707785dd85b02efa0349da230.zip
FreeBSD-src-e367b167d9a57c4707785dd85b02efa0349da230.tar.gz
Implement the "-i" option to sysctl(8), to ignore failures while
retrieving individual OIDs. This allows the same list of OIDs to be passed to sysctl(8) across different systems where particular OIDs may not exist, and still get as much information as possible from them. PR: bin/123644 Submitted by: dhw Approved by: ed (mentor) MFC after: 2 weeks
Diffstat (limited to 'sbin/sysctl/sysctl.8')
-rw-r--r--sbin/sysctl/sysctl.88
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 4084290..8f835a8 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -28,7 +28,7 @@
.\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd November 28, 2007
+.Dd January 31, 2010
.Dt SYSCTL 8
.Os
.Sh NAME
@@ -82,6 +82,12 @@ or
is specified, or a variable is being set.
.It Fl h
Format output for human, rather than machine, readability.
+.It Fl i
+Ignore unknown OIDs.
+The purpose is to make use of
+.Nm
+for collecting data from a variety of machines (not all of which
+are necessarily running exactly the same software) easier.
.It Fl N
Show only variable names, not their values.
This is particularly useful with shells that offer programmable
OpenPOWER on IntegriCloud