Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f10e0a58
Commit
f10e0a58
authored
Mar 03, 2014
by
Per Buer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerated from inline help. This should be automatic at some point.
Also, the inline help might be a bit more verbose.
parent
2f05fe44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
83 deletions
+45
-83
varnish-cli.rst
doc/sphinx/reference/varnish-cli.rst
+45
-83
No files found.
doc/sphinx/reference/varnish-cli.rst
View file @
f10e0a58
...
...
@@ -71,112 +71,74 @@ be entered with the \\xnn syntax.
Commands
--------
backend.list
Lists the defined backends including health state.
backend.set_health matcher state
Sets the health state on a specific backend, overriding the state
determined by a probe. This is useful if you want to take a
certain backend out of circulation.
*state* can be 'auto', 'sick' or 'healthy'.
ban *field operator argument* [&& field operator argument [...]]
Immediately invalidate all documents matching the ban
expression. See *Ban Expressions* for more documentation and
examples.
ban.list
All requests for objects from the cache are matched against
items on the ban list. If an object in the cache is older than
a matching ban list item, it is considered "banned", and will be
fetched from the backend instead.
When a ban expression is older than all the objects in the
cache, it is removed from the list.
help [command]
Show command/protocol help
ban.list displays the ban list. The output looks something like
this::
ping [timestamp]
Keep connection alive
0x7fea4fcb0580 1303835108.618863 131G req.url ~ /some/url
auth response
Authenticate.
The first field is the address of the ban.
quit
Close connection
The second is the time of entry into the list, given
as a high precision timestamp
.
banner
Print welcome banner
.
The third field describes many objects point to this ban. When
an object is compared to a ban the object is marked with a
reference to the newest ban it was tested against. This isn't
really useful unless you're debugging.
status
Check status of Varnish cache process.
A "G" marks that the ban is "Gone". Meaning it has been marked
as a duplicate or it is no longer valid. It stays in the list
for effiency reasons.
start
Start the Varnish cache process.
Then follows the actual ban it self.
stop
Stop the Varnish cache process
help [command]
Display a list of available commands.
If the command is specified, display help for this command.
vcl.load <configname> <filename>
Compile and load the VCL file under the name provided.
param.set param value
Set the parameter specified by param to the specified value.
See Run-Time Parameters for a list of parameters.
vcl.inline <configname> <quoted_VCLstring>
Compile and load the VCL data under the name provided.
param.show [-l] [param]
Display a list if run-time parameters and their values
.
vcl.use <configname>
Switch to the named configuration immediately
.
If the -l option is specified, the list includes a brief
explanation of each parameter
.
vcl.discard <configname>
Unload the named configuration (when possible)
.
If a param is specified, display only the value and explanation
for this parameter
.
vcl.list
List all loaded configuration
.
ping [timestamp]
Ping the Varnish cache process, keeping the connection alive
.
vcl.show <configname>
Display the source code for the specified configuration
.
quit
Close the connection to the Varnish admin port
.
param.show [-l] [<param>]
Show parameters and their values
.
start
Start the Varnish cache process if it is not already running
.
param.set <param> <value>
Set parameter value
.
status
Check the status of the Varnish cache process
.
panic.show
Return the last panic, if any
.
stop
Stop the Varnish cache process
.
panic.clear
Clear the last panic, if any
.
storage.list
Lists the defined storage backends.
vcl.discard configname
Discard the configuration specified by configname. This will
have no effect if the specified configuration has a non-zero
reference count.
List storage devices
vcl.inline configname vcl
Create a new configuration named configname with the VCL code
specified by vcl, which must be a quoted string.
vcl.list
List available configurations and their respective reference
counts. The active configuration is indicated with an asterisk
("*").
vcl.load configname filename
Create a new configuration named configname with the contents of
the specified file.
backend.list
List all backends
vcl.show confignam
e
Display the source code for the specified configuration.
backend.set_health matcher stat
e
Set health status on a backend
vcl.use configname
Start using the configuration specified by configname for all
new requests. Existing requests will continue using whichever
configuration was in use when they arrived.
ban <field> <operator> <arg> [&& <field> <oper> <arg>]...
All objects where the all the conditions match will be marked obsolete.
ban.list
List the active bans.
Ban Expressions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment