/usr/include/varnish/tbl/cli_cmds.h is in libvarnishapi-dev 5.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | /*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2011 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* These macros define the common data for requests in the CLI protocol.
* The fields are:
* const char * upper-case C-ident request_name
* const char * request_name
* const char * request_syntax (for short help)
* const char * request_help (for long help)
* const char * documentation (for sphinx)
* int minimum_arguments
* int maximum_arguments
*/
/*lint -save -e525 -e539 */
CLI_CMD(BAN,
"ban",
"ban <field> <operator> <arg> [&& <field> <oper> <arg> ...]",
"Mark obsolete all objects where all the conditions match.",
"See :ref:`vcl(7)_ban` for details",
3, -1
)
CLI_CMD(BAN_LIST,
"ban.list",
"ban.list",
"List the active bans.",
" The output format is:\n\n"
" * Time the ban was issued.\n\n"
" * Objects referencing this ban.\n\n"
" * ``C`` if ban is completed = no further testing against it.\n\n"
" * if ``lurker`` debugging is enabled:\n\n"
" * ``R`` for req.* tests\n\n"
" * ``O`` for obj.* tests\n\n"
" * Pointer to ban object\n\n"
" * Ban specification",
0, 0
)
CLI_CMD(VCL_LOAD,
"vcl.load",
"vcl.load <configname> <filename> [auto|cold|warm]",
"Compile and load the VCL file under the name provided.",
"",
2, 3
)
CLI_CMD(VCL_INLINE,
"vcl.inline",
"vcl.inline <configname> <quoted_VCLstring> [auto|cold|warm]",
"Compile and load the VCL data under the name provided.",
" Multi-line VCL can be input using the here document"
" :ref:`ref_syntax`.",
2, 3
)
CLI_CMD(VCL_STATE,
"vcl.state",
"vcl.state <configname> [auto|cold|warm]",
"Force the state of the named configuration.",
"",
2, 2
)
CLI_CMD(VCL_DISCARD,
"vcl.discard",
"vcl.discard <configname|label>",
"Unload the named configuration (when possible).",
"",
1, 1
)
CLI_CMD(VCL_LIST,
"vcl.list",
"vcl.list",
"List all loaded configuration.",
"",
0, 0
)
CLI_CMD(VCL_SHOW,
"vcl.show",
"vcl.show [-v] <configname>",
"Display the source code for the specified configuration.",
"",
1, 2
)
CLI_CMD(VCL_USE,
"vcl.use",
"vcl.use <configname|label>",
"Switch to the named configuration immediately.",
"",
1, 1
)
CLI_CMD(VCL_LABEL,
"vcl.label",
"vcl.label <label> <configname>",
"Apply label to configuration.",
"",
2, 2
)
CLI_CMD(PARAM_SHOW,
"param.show",
"param.show [-l] [<param>]",
"Show parameters and their values.",
"",
0, 2
)
CLI_CMD(PARAM_SET,
"param.set",
"param.set <param> <value>",
"Set parameter value.",
"",
2,2
)
CLI_CMD(SERVER_STOP,
"stop",
"stop",
"Stop the Varnish cache process.",
"",
0, 0
)
CLI_CMD(SERVER_START,
"start",
"start",
"Start the Varnish cache process.",
"",
0, 0
)
CLI_CMD(PING,
"ping",
"ping [<timestamp>]",
"Keep connection alive.",
"",
0, 1
)
CLI_CMD(HELP,
"help",
"help [<command>]",
"Show command/protocol help.",
"",
0, 1
)
CLI_CMD(QUIT,
"quit",
"quit",
"Close connection.",
"",
0, 0
)
CLI_CMD(SERVER_STATUS,
"status",
"status",
"Check status of Varnish cache process.",
"",
0, 0
)
CLI_CMD(BANNER,
"banner",
"banner",
"Print welcome banner.",
"",
0, 0
)
CLI_CMD(AUTH,
"auth",
"auth <response>",
"Authenticate.",
"",
1, 1
)
CLI_CMD(PANIC_SHOW,
"panic.show",
"panic.show",
"Return the last panic, if any.",
"",
0, 0
)
CLI_CMD(PANIC_CLEAR,
"panic.clear",
"panic.clear [-z]",
"Clear the last panic, if any,"
" -z will clear related varnishstat counter(s)",
"",
0, 1
)
CLI_CMD(DEBUG_LISTEN_ADDRESS,
"debug.listen_address",
"debug.listen_address",
"Report the actual listen address.",
"",
0, 0
)
CLI_CMD(BACKEND_LIST,
"backend.list",
"backend.list [-p] [<backend_pattern>]",
"List backends. -p also shows probe status.",
"",
0, 2
)
CLI_CMD(BACKEND_SET_HEALTH,
"backend.set_health",
"backend.set_health <backend_pattern> [auto|healthy|sick]",
"Set health status on the backends.",
"",
2, 2
)
CLI_CMD(DEBUG_FRAGFETCH,
"debug.fragfetch",
"debug.fragfetch",
"Enable fetch fragmentation.",
"",
1, 1
)
CLI_CMD(DEBUG_XID,
"debug.xid",
"debug.xid",
"Examine or set XID.",
"",
0, 1
)
CLI_CMD(DEBUG_SRANDOM,
"debug.srandom",
"debug.srandom",
"Seed the random(3) function.",
"",
0, 1
)
CLI_CMD(DEBUG_PANIC_WORKER,
"debug.panic.worker",
"debug.panic.worker",
"Panic the worker process.",
"",
0, 0
)
CLI_CMD(DEBUG_PANIC_MASTER,
"debug.panic.master",
"debug.panic.master",
"Panic the master process.",
"",
0, 0
)
CLI_CMD(DEBUG_VMOD,
"debug.vmod",
"debug.vmod",
"Show loaded vmods.",
"",
0, 0
)
CLI_CMD(DEBUG_PERSISTENT,
"debug.persistent",
"debug.persistent [<stevedore>] [<cmd>]",
"Persistent debugging magic:\n"
"With no cmd arg, a summary of the silo is returned.\n"
"Possible commands:\n"
"\tsync\tClose current segment, open a new one\n"
"\tdump\tinclude objcores in silo summary",
"",
0, 2
)
CLI_CMD(STORAGE_LIST,
"storage.list",
"storage.list",
"List storage devices.",
"",
0, 0
)
#undef CLI_CMD
/*lint -restore */
|