̾??
sysctl
—
?????ͥ????֤μ?????????
sysctl
[-bdehNnox
]
name[=value]
... sysctl
[-bdehNnox
] -a
sysctl
?ϥ????ͥ????֤??????Ф???Ŭ?ڤʸ??¤???????
?ץ????????????ͥ????֤????ꤹ?뤳?Ȥ??????ޤ???
?????Ф??줿?ꡢ???ꤵ?줿?ꤷ?????֤ϡ?
“Management Information Base” (“MIB”)
???????ȤäƵ??Ҥ????ޤ???
???η????Ǥϡ????Ǥϥɥå? ``.''
????³?????ޤ???
?ʲ??Υ??ץ??????????Ѳ?ǽ?Ǥ?:
-A
-o
-a
???????Ǥ? (?ߴ?????)??
-a
- ???????Ѳ?ǽ?ʡ??ǡ??????????Τ??ʤ?????
(?ʲ??????????????ѿ??ȾΤ???)
?Ǥʤ??ͤ????ޤ??? 1
?İʾ????ѿ?̾?????ޥ??ɥ饤???˻??ꤵ?줿???硢
?ܥ??ץ???????̵?뤵???ޤ???
-b
- ?ѿ????ͤ??ù??????ˡ??Х??ʥ???????ɽ?????ޤ???
?ѿ?̾?䡢?Ǹ??β???ʸ???Ͻ??Ϥ????ޤ?????
?????ϡ?ñ?????ѿ????Ф?????????ݤ??????Ǥ??礦??
-d
- ?ѿ????ͤ??????˲?????ɽ?????ޤ???
-e
- ?ѿ???̾?????ͤ???
‘
=
’ ?Ƕ??ڤ??ޤ???
sysctl
?桼?ƥ????ƥ??˥ե????ɥХå???ǽ?ʽ??Ϥ????????뤿????ͭ?ѤǤ???
-N
?ޤ??? -n
?????ꤵ???????硢?ޤ????ѿ??????ꤵ???????硢?ܥ??ץ???????̵?뤵???ޤ???
-h
- ?ޥ??????ɤ߰פ??ե????ޥåȤǤϤʤ????ʹ֤??ɤ߰פ??ե????ޥåȤǽ??Ϥ??ޤ???
-N
- ?ͤν??Ϥ??????????ơ??ѿ?̾?Τߤ?ɽ?????ޤ???
?ץ?????????ǽ???䴰??ǽ?????ĥ??????ǡ?ͭ?ѤǤ???
zsh(1)
???ѿ?̾???䴰?????ˤϡ????Υ????ɤ????Ѥ??ޤ?:
listsysctls () { set -A reply $(sysctl -AN ${1%.*}) }
compctl -K listsysctls sysctl
tcsh(1)
???ѿ?̾???䴰?????ˤϡ????Τ褦?ˤ??ޤ?:
complete sysctl 'n/*/`sysctl
-Na`/'
-n
- ?ѿ?̾?ν??Ϥ??????????ơ??ͤ?????ɽ???????ޤ???
?????ϥ??????ѿ??????ꤹ???Τ?????Ω???ޤ???
???Ȥ??С??ڡ????????????ѿ?
psize
????¸?????ˤϡ??ʲ??Τ褦?ˤ??ޤ?:
set psize=`sysctl -n
hw.pagesize`
-o
- ???????????ͤ?ɽ?????ޤ?
(?̾????????????ޤ?)??
??Ĺ????ɽ?????졢?ͤκǽ???
16 ?Х??Ȥ? 16
?ʿ??ǥ????פ????ޤ???
-X
-x
-a
???????Ǥ? (?ߴ?????)??
-x
-o
??Ʊ?ͤǤ?????
???????????ѿ??κǽ??ο??Х??Ȥ??????????Ƥ????Ƥ?
16 ?ʿ??ǥ????פ????ޤ???
sysctl
???????????????ϡ???????ʸ???ǥХ???
(dev_t) ?????????????ѿ??Ǥ???
sysctl
?桼?ƥ????ƥ??Ϥ????Ĥ??η??????????ѿ??η??????ΤäƤ????????ǡ?
?????ʳ??Τ??Τ? ?Ф??Ƥ? 16
?ʥ????פ??????ޤ???
???????????ѿ??ξ????ϡ?
ps(1),
systat(1),
netstat(1)
?ʤɤ????̤???Ū?Υץ????????ˤ??äƼ??????줿?????ˡ?????????Ū?Ǥ???
?̾??Υ????ƥ?ư?????ˤϽ????Ǥ??ʤ??ѿ??Τ????Ĥ??ϡ?
loader(8)
???塼?ʥ֥??ǽ?????ǽ?Ǥ???
?㤨?С?????????
loader.conf(5)
?????ꤹ?뤳?ȤǼ¸??Ǥ??ޤ???
?ɤΤ褦?ʥ??塼?ʥ֥뤬???Ѳ?ǽ?????????Ƥ????????ɤΤ褦?????ꤹ???Τ?
?Ȥ??????ʤ??????ˤĤ??Ƥϡ?
loader.conf(5)
?Ȥ??Ƥ?????????
ʸ???????????ξ???????ñ?ˤޤȤ??ưʲ??˼????ޤ???
?????????ѿ??ξܺ٤??????ϡ?
sysctl(3)
?Ȥ??Ƥ?????????
?ѹ???ǽ?????ϡ?Ŭ?ڤʸ??¤????ĥץ????????????ͤ??ѹ?
?Ǥ??뤫?ɤ??????Ƥ??ޤ???
ʸ?????????????ǥХ????ͤ?
sysctl
????????ǽ?Ǥ???
?ǥХ????? value
?ϡ??????饯???ǥХ??????ڥ??????ե?????̾?ǻ?????ǽ?Ǥ???
?ü????? off
?? none
?? “?ǥХ???̵??”
????̣???ޤ???
̾?? |
?? |
?ѹ???ǽ |
|
kern.ostype |
ʸ???? |
no |
|
kern.osrelease |
ʸ???? |
no |
|
kern.osrevision |
???? |
no |
|
kern.version |
ʸ???? |
no |
|
kern.maxvnodes |
???? |
yes |
|
kern.maxproc |
???? |
no |
|
kern.maxprocperuid |
???? |
yes |
|
kern.maxfiles |
???? |
yes |
|
kern.maxfilesperproc |
???? |
yes |
|
kern.argmax |
???? |
no |
|
kern.securelevel |
???? |
???䤹?Τ? |
|
kern.hostname |
ʸ???? |
yes |
|
kern.hostid |
???? |
yes |
|
kern.clockrate |
struct |
no |
|
kern.posix1version |
???? |
no |
|
kern.ngroups |
???? |
no |
|
kern.job_control |
???? |
no |
|
kern.saved_ids |
???? |
no |
|
kern.boottime |
struct |
no |
|
kern.domainname |
ʸ???? |
yes |
|
kern.filedelay |
???? |
yes |
|
kern.dirdelay |
???? |
yes |
|
kern.metadelay |
???? |
yes |
|
kern.osreldate |
ʸ???? |
no |
|
kern.bootfile |
ʸ???? |
yes |
|
kern.corefile |
ʸ???? |
yes |
|
kern.dumpdev |
dev_t |
yes |
|
kern.logsigexit |
???? |
yes |
|
security.bsd.suser_enabled |
???? |
yes |
|
security.bsd.see_other_uids |
???? |
yes |
|
security.bsd.unprivileged_proc_debug |
???? |
yes |
|
security.bsd.unprivileged_read_msgbuf |
???? |
yes |
|
vm.loadavg |
struct |
no |
|
hw.machine |
ʸ???? |
no |
|
hw.model |
ʸ???? |
no |
|
hw.ncpu |
???? |
no |
|
hw.byteorder |
???? |
no |
|
hw.physmem |
???? |
no |
|
hw.usermem |
???? |
no |
|
hw.pagesize |
???? |
no |
|
hw.floatingpoint |
???? |
no |
|
hw.machine_arch |
ʸ???? |
no |
|
machdep.console_device |
dev_t |
no |
|
machdep.adjkerntz |
???? |
yes |
|
machdep.disable_rtc_set |
???? |
yes |
|
machdep.guessed_bootdev |
ʸ???? |
no |
|
user.cs_path |
ʸ???? |
no |
|
user.bc_base_max |
???? |
no |
|
user.bc_dim_max |
???? |
no |
|
user.bc_scale_max |
???? |
no |
|
user.bc_string_max |
???? |
no |
|
user.coll_weights_max |
???? |
no |
|
user.expr_nest_max |
???? |
no |
|
user.line_max |
???? |
no |
|
user.re_dup_max |
???? |
no |
|
user.posix2_version |
???? |
no |
|
user.posix2_c_bind |
???? |
no |
|
user.posix2_c_dev |
???? |
no |
|
user.posix2_char_term |
???? |
no |
|
user.posix2_fort_dev |
???? |
no |
|
user.posix2_fort_run |
???? |
no |
|
user.posix2_localedef |
???? |
no |
|
user.posix2_sw_dev |
???? |
no |
|
user.posix2_upe |
???? |
no |
|
user.stream_max |
???? |
no |
|
user.tzname_max |
???? |
no |
|
???Ȥ??С??????ƥ????ǵ??????Ƥ????????Υץ??????????Τꤿ??
?Ȥ??ϡ??ʲ??Τ褦?ˤ??ޤ?:
sysctl kern.maxproc
?????ƥ????ǵ??????Ƥ????????Υץ?????????
1000 ?????ꤹ??
?ˤϡ??ʲ??Τ褦?ˤ??ޤ?:
sysctl
kern.maxprocperuid=1000
?????å????????פ˻??Ѥ????ǥХ????ϼ??Τ褦?˻?????ǽ?Ǥ?:
sysctl
kern.dumpdev=/dev/somedev
?????ϼ????????Ǥ?
dumpon /dev/somedev
?????ƥ??Υ????å??졼?Ȥ˴ؤ??????????????ˤϡ??ʲ???
?褦?ˤ??ޤ?:
sysctl kern.clockrate
?????ƥ????? (?????ɡ????٥졼??)
???????˴ؤ?????????
?????ˤϡ??ʲ??Τ褦?ˤ??ޤ?:
sysctl vm.loadavg
?????˵????ΰʳ????ѿ???¸?ߤ??ޤ???
???????˴ؤ??????꿼????̣???Τ?
???äȤ??ɤ??????ġ??????餯ͣ??????ˡ?ϡ????????????????Ƥ??륽?????????ɤ?
?ߤ????Ǥ??뤳?Ȥϵ????Τʤ????¤Ǥ??礦??
-w
???ץ??????Ͽ侩?????Ƥ??餺???ۤä?̵?뤵???ޤ???
?????Ǥ? sysctl
?桼?ƥ????ƥ??ϡ?sysctl
?ĥ?????ס??????ӡ???????̾???ξ??????????ݤˡ?
ʸ?????Ƥ??ʤ??????ͥ??? sysctl
??ǽ?ؤΥ??ե??????????Ѥ??Ƥ??ޤ???
??????ˡ?˴ؤ????????????ե??????ϡ????߸?Ƥ???Ǥ???
sysctl
?桼?ƥ????ƥ???
4.4BSD
?ǤϤ??????о줷?ޤ?????
FreeBSD 2.2 ??
sysctl
???????????ɤ????Ƥ??ޤ???