MCPcopy Create free account
hub / github.com/corosync/corosync / print_help

Function print_help

tools/corosync-cmapctl.c:97–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static int print_help(void)
98{
99 printf("\n");
100 printf("usage: corosync-cmapctl [-b] [-DdghsqTCt] [-p filename] [-m map] [params...]\n");
101 printf("\n");
102 printf(" -b show binary values\n");
103 printf("\n");
104 printf(" -m select map to use\n");
105 printf(" The default map is 'icmap' which contains configuration information and some runtime variables used by corosync. \n");
106 printf(" A 'stats' map is also available which displays network statistics - in great detail when knet is used as the transport.\n");
107 printf("Set key:\n");
108 printf(" corosync-cmapctl -s key_name type value\n");
109 printf("\n");
110 printf(" where type is one of ([i|u][8|16|32|64] | flt | dbl | str | bin)\n");
111 printf(" for bin, value is file name (or - for stdin)\n");
112 printf("\n");
113 printf(" map can be either 'icmap' (the default) which contains corosync\n");
114 printf(" configuration information, or 'stats' which contains statistics\n");
115 printf(" about the networking and IPC traffic in some detail.\n");
116 printf("\n");
117 printf("Clear stats:\n");
118 printf(" corosync-cmapctl -C [knet|ipc|totem|schedmiss|all]\n");
119 printf(" The 'stats' map is implied\n");
120 printf("\n");
121 printf("Load settings from a file:\n");
122 printf(" corosync-cmapctl -p filename\n");
123 printf("\n");
124 printf(" the format of the file is:\n");
125 printf(" [^[^]]<key_name>[ <type> <value>]\n");
126 printf(" Keys prefixed with single caret ('^') are deleted (see -d).\n");
127 printf(" Keys (actually prefixes) prefixed with double caret ('^^') are deleted by prefix (see -D).\n");
128 printf(" <type> and <value> are optional (not checked) in above cases.\n");
129 printf(" Other keys are set (see -s) so both <type> and <value> are required.\n");
130 printf("\n");
131 printf("Delete key:\n");
132 printf(" corosync-cmapctl -d key_name...\n");
133 printf("\n");
134 printf("Delete multiple keys with prefix:\n");
135 printf(" corosync-cmapctl -D key_prefix...\n");
136 printf("\n");
137 printf("Get key:\n");
138 printf(" corosync-cmapctl [-b] -g key_name...\n");
139 printf("\n");
140 printf("Quiet mode:\n");
141 printf(" corosync-cmapctl [-b] -q -g key_name...\n");
142 printf("\n");
143 printf("Display all keys:\n");
144 printf(" corosync-cmapctl [-b]\n");
145 printf("\n");
146 printf("Display keys with prefix key_name:\n");
147 printf(" corosync-cmapctl [-b] key_name...\n");
148 printf("\n");
149 printf("Track changes on keys with key_name:\n");
150 printf(" corosync-cmapctl [-b] -t key_name\n");
151 printf("\n");
152 printf("Track changes on keys with key prefix:\n");
153 printf(" corosync-cmapctl [-b] -T key_prefix\n");
154 printf("\n");

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected