Mac Kernel Parameter Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Mac =Overview= =Get the Configuration= =Set the Configuration= To set the configuration to survive reboot, use either sysctl or update...")
 
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:


=Get the Configuration=
=Get the Configuration=
sysctl net.inet.tcp | grep "keepidle"


=Set the Configuration=
=Set the Configuration=
Line 20: Line 22:
  net.inet.tcp.keepintvl=10000
  net.inet.tcp.keepintvl=10000
  net.inet.tcp.keepcnt=3
  net.inet.tcp.keepcnt=3
Also see:
{{Internal|Sysctl#Mac_Only_Attributes|Mac-Only Attributes for sysctl}}

Latest revision as of 20:39, 26 July 2018

Internal

Overview

Get the Configuration

sysctl net.inet.tcp | grep "keepidle"

Set the Configuration

To set the configuration to survive reboot, use either sysctl or update /etc/sysctl.conf, creating the file if it does not exists.

Example:

sysctl -w net.inet.tcp.keepidle=180000 net.inet.tcp.keepcnt=3 net.inet.tcp.keepintvl=10000

/etc/sysctl.conf:

net.inet.tcp.keepidle=180000
net.inet.tcp.keepintvl=10000
net.inet.tcp.keepcnt=3

Also see:

Mac-Only Attributes for sysctl