1
2CGSNAPSHOT(1)                  libcgroup Manual                  CGSNAPSHOT(1)
3
4
5

NAME

7       cgsnapshot - generate the configuration file for given controllers
8
9

SYNOPSIS

11       cgsnapshot  [-h]  [-s] [-t] [-b file] [-w file] [-f output_file]  [con‐
12       troller] [...]
13
14

DESCRIPTION

16       cgsnapshot generates the cgconfig compatible configuration file for the
17       given  controllers.  If no controller is set, then cgsnapshot shows all
18       mounted hierarchies.  The output is in the same format  as  the  cgcon‐
19       fig.conf configuration file.
20
21
22       -b file
23              Display only variables from the blacklist.  The default location
24              of the blacklist is /etc/cgsnapshot_blacklist.conf.   This  list
25              contains all variables which should be ignored by the cgsnapshot
26              If the variable is blacklisted, it will not be displayed.  If it
27              is not present on the blacklist, the whitelist is checked.
28
29
30       -h, --help
31              display this help and exit
32
33
34       -f, --file
35              Redirect the output to output_file
36
37
38
39       -s, --silent
40              Ignore all warnings
41
42
43       -t, --strict
44              Do not display the variables which are not on the whitelist
45
46
47
48       -w file
49              Set  the  blacklist  configuration file.  This list contains all
50              variables which should be displayed by cgsnapshot If  the  vari‐
51              able is not blacklisted, the whitelist is checked.  If the vari‐
52              able is on the whitelist, it is displayed by cgsnapshot  If  the
53              variable  is not on the whitelist, the variable is displayed and
54              a warning message is produced.  By default the whitelist is  not
55              used.
56
57              The  warning message can be omitted using the -s, --silent flag.
58              If the -t, --strict flag is used, the variable which is  not  on
59              the whitelist is not displayed.
60
61
62       controller
63              defines the controller whose hierarchies will be output
64
65

ENVIRONMENT VARIABLES

67       CGROUP_LOGLEVEL
68              controls  verbosity of the tool. Allowed values are DEBUG, INFO,
69              WARNING or ERROR.
70
71

FILES

73       /etc/cgsnapshot_blacklist.conf
74              default blacklist
75
76
77       /etc/cgsnapshot_whitelist.conf
78              default whitelist
79
80
81       /etc/cgconfig.conf
82              default libcgroup configuration file
83
84

SEE ALSO

86       cgconfig.conf (5)
87
88
89
90Linux                             2010-07-28                     CGSNAPSHOT(1)
Impressum