Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgsnapshot(1) [debian man page]

CGSNAPSHOT(1)							 libcgroup Manual						     CGSNAPSHOT(1)

NAME
cgsnapshot - generate the configuration file for given controllers SYNOPSIS
cgsnapshot [-h] [-s] [-t] [-b file] [-w file] [-f output_file] [controller] [...] DESCRIPTION
cgsnapshot generates the cgconfig compatible configuration file for the given controllers. If no controller is set, then cgsnapshot shows all mounted hierarchies. The output is in the same format as the cgconfig.conf configuration file. -b file Display only variables from the blacklist. The default location of the blacklist is /etc/cgsnapshot_blacklist.conf. This list con- tains all variables which should be ignored by the cgsnapshot If the variable is blacklisted, it will not be displayed. If it is not present on the blacklist, the whitelist is checked. -h, --help display this help and exit -f, --file Redirect the output to output_file -s, --silent Ignore all warnings -t, --strict Do not display the variables which are not on the whitelist -w file Set the blacklist configuration file. This list contains all variables which should be displayed by cgsnapshot If the variable is not blacklisted, the whitelist is checked. If the variable is on the whitelist, it is displayed by cgsnapshot If the variable is not on the whitelist, the variable is displayed and a warning message is produced. By default the whitelist is not used. The warning message can be omitted using the -s, --silent flag. If the -t, --strict flag is used, the variable which is not on the whitelist is not displayed. controller defines the controller whose hierarchies will be output FILES
/etc/cgsnapshot_blacklist.conf default blacklist /etc/cgsnapshot_whitelist.conf default whitelist /etc/cgconfig.conf default libcgroup configuration file SEE ALSO
cgconfig.conf (5) Linux 2010-07-28 CGSNAPSHOT(1)

Check Out this Related Man Page

LSSUBSYS(1)							 libcgroup Manual						       LSSUBSYS(1)

NAME
lssubsys - list hierarchies containing given subsystem SYNOPSIS
lssubsys [-m|--mount-points] [-M|--all-mount-points] [controller] [...] lssubsys [-m|--mount-points] [-M|--all-mount-points] [-i|--hierarchies] [-a|--all] lssubsys [-h|--help] DESCRIPTION
lssubsys list the hierarchies containing the given subsystem(s). If no subsystem is defined, it displays all mounted hierarchies. controller defines the subsystem whose hierarchy is shown. If this parameter is not used, the command will list all mounted subsystems. -m, --mount-points Display mount points. Only the first mount points of shown hierarchies are displayed. -M, --all-mount-points Display mount points. All mount points of shown hierarchies are displayed, each on separate line. -a, --all Display all subsystems (including unmounted ones). -i, --hierarchies Display the attached hierarchy number if the subsystem is in a hierarchy. If the option -m is also used, the hierarchy number is shown only for unmounted hierarchies. -h, --help Display help and exit. EXAMPLE
The command lssubsys -am lists all subsystems which are present in the system, mounted ones will be shown with their mount point: $ lssubsys -am ns cpuset cpu,devices cpuacct /cgroup/cpuacct memory /cgroup/memory freezer /cgroup/freezer net_cls /cgroup/net_cls The command lssubsys -ami lists all subsystems which are present in the system, mounted subsystems are listed with their mount points, unmounted ones which are in a hierarchy are listed with their hierarchy number: $ lssubsys -ami ns cpuset 5 cpu,devices 6 cpuacct /cgroup/cpuacct memory /cgroup/memory freezer /cgroup/freezer net_cls /cgroup/net_cls ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR. SEE ALSO
lscgroup (1), cgcreate (1), cgdelete (1), cgconfig.conf (5) Linux 2009-11-05 LSSUBSYS(1)
Man Page