Sysctl configuration files
- class insights.combiners.sysctl_conf.SysctlConfs(sysctl_conf, sysctl_d_confs_usr, sysctl_d_confs_etc)[source]
Bases:
dict
Combiner for accessing all the sysctl configuration files in one structure.
Sample input:
# sysctl.conf sample # kernel.domainname = example.com ; this one has a space which will be written to the sysctl! kernel.modprobe = /sbin/mod probe
- contains the search word.
Examples
>>> type(sysctl_conf) <class 'insights.combiners.sysctl_conf.SysctlConfs'> >>> sysctl_conf['kernel.domainname'] 'example.com' >>> sysctl_conf['kernel.modprobe'] '/sbin/mod probe' >>> sysctl_conf['kernel.sysrq'] '1' >>> "vm.dirty_ratio" in sysctl_conf True >>> sysctl_conf.search("domainname") {'kernel.domainname': 'example.com'}