CFEngine Homepage
  • Home
  • Guide
  • CFEngine Enterprise
  • Examples
  • Reference
  • Download
    • Components and Common Control
    • Promise Types and Attributes
    • Functions
      • accessedbefore
      • accumulated
      • ago
      • and
      • bundlesmatching
      • bundlestate
      • callstack_callers
      • callstack_promisers
      • canonify
      • canonifyuniquely
      • changedbefore
      • classesmatching
      • classfiltercsv
      • classify
      • classmatch
      • concat
      • countclassesmatching
      • countlinesmatching
      • data_expand
      • data_readstringarray
      • data_readstringarrayidx
      • data_regextract
      • data_sysctlvalues
      • datastate
      • difference
      • dirname
      • diskfree
      • escape
      • eval
      • every
      • execresult
      • expandrange
      • file_hash
      • fileexists
      • filesexist
      • filesize
      • filestat
      • filter
      • findfiles
      • findprocesses
      • format
      • getclassmetatags
      • getenv
      • getfields
      • getgid
      • getindices
      • getuid
      • getuserinfo
      • getusers
      • getvalues
      • getvariablemetatags
      • grep
      • groupexists
      • hash
      • hash_to_int
      • hashmatch
      • host2ip
      • hostinnetgroup
      • hostrange
      • hostsseen
      • hostswithclass
      • hubknowledge
      • ifelse
      • intersection
      • ip2host
      • iprange
      • irange
      • isdir
      • isexecutable
      • isgreaterthan
      • isipinsubnet
      • islessthan
      • islink
      • isnewerthan
      • isplain
      • isvariable
      • join
      • lastnode
      • laterthan
      • ldaparray
      • ldaplist
      • ldapvalue
      • length
      • lsdir
      • makerule
      • maparray
      • mapdata
      • maplist
      • max
      • mean
      • mergedata
      • min
      • network_connections
      • none
      • not
      • now
      • nth
      • on
      • or
      • packagesmatching
      • packageupdatesmatching
      • parseintarray
      • parsejson
      • parserealarray
      • parsestringarray
      • parsestringarrayidx
      • parseyaml
      • peerleader
      • peerleaders
      • peers
      • processexists
      • product
      • randomint
      • readcsv
      • readdata
      • readenvfile
      • readfile
      • readintarray
      • readintlist
      • readjson
      • readrealarray
      • readreallist
      • readstringarray
      • readstringarrayidx
      • readstringlist
      • readtcp
      • readyaml
      • regarray
      • regcmp
      • regex_replace
      • regextract
      • registryvalue
      • regldap
      • regline
      • reglist
      • remoteclassesmatching
      • remotescalar
      • returnszero
      • reverse
      • rrange
      • selectservers
      • shuffle
      • some
      • sort
      • splayclass
      • splitstring
      • storejson
      • strcmp
      • strftime
      • string_downcase
      • string_head
      • string_length
      • string_mustache
      • string_replace
      • string_reverse
      • string_split
      • string_tail
      • string_upcase
      • sublist
      • sum
      • sysctlvalue
      • translatepath
      • unique
      • url_get
      • usemodule
      • userexists
      • variablesmatching
      • variablesmatching_as_data
      • variance
    • Language Concepts
    • Special Variables
    • Enterprise API Reference
    • Package Modules
    • Masterfiles Policy Framework
    • All Promise and Body Types
    • Macros
  • CFEngine Reference
  • Functions
Table of Contents

data_sysctlvalues

Table of Contents

Prototype: data_sysctlvalues()

Return type: data

Description: Returns all sysctl values using /proc/sys.

Example:

    vars:
      "sysctl" data => data_sysctlvalues(); # get everything!

Output:

{
  "sysctl": {
  ...
    "net.unix.max_dgram_qlen": "512",
  ...
  }

Notes:

History: Was introduced in version 3.11.0 (2017)

See also: sysctlvalue()

  • reference
  • system functions
  • functions
  • sysctl
  • data_sysctlvalues
Download all CFEngine documentation for offline reading.


This documentation is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

See our general information on licenses and terms and conditions.

Updated: 10 July 2019 from [markdown source] revision d99dd1f07cf37da07fbd675717c47f3201990891.

CFEngine

470 Ramona Street,

Palo Alto, CA 94301

Phone: +1 650 560-4888

Contact Us

Left Menu Go to Top Table of Content