Shell - print system variables?

Status
Not open for further replies.

Dariusz1989

Contributor
Joined
Aug 22, 2017
Messages
185
Hey

Say I have something like this in tunables :
net.inet.tcp.sendbuf_auto 1 sysctl

How can I go to shell and re-print that item parameter that is set in os? To be 2x sure its proper?

I read that some values if typed above the "limit" might default to default one and have no effect. I'm trying to tune up some tcp networking for 10gbe here.

Regards
Dariusz


 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
To view all readable variables: sysctl -a
To read a particular variable, specify its name: sysctl kern.maxproc
 
D

dlavigne

Guest
Hey

Say I have something like this in tunables :
net.inet.tcp.sendbuf_auto 1 sysctl

How can I go to shell and re-print that item parameter that is set in os? To be 2x sure its proper?


sysctl net.inet.tcp.sendbug_auto

Or, if you want to see a larger context:

sysctl -a |grep net.inet.tcp

I read that some values if typed above the "limit" might default to default one and have no effect. I'm trying to tune up some tcp networking for 10gbe here.

Where did you read that?
 
Status
Not open for further replies.
Top