Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
feaa02b3
Commit
feaa02b3
authored
Mar 23, 2011
by
Per Buer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished the here docs + cleanup
parent
9105474f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
30 deletions
+37
-30
varnish-cli.rst
doc/sphinx/reference/varnish-cli.rst
+37
-30
No files found.
doc/sphinx/reference/varnish-cli.rst
View file @
feaa02b3
...
...
@@ -32,7 +32,7 @@ statistics
Statistic counters are available from the CLI.
bans
Bans are filters that are applied to
hinder
Varnish from serving
Bans are filters that are applied to
keep
Varnish from serving
stale content. When you issue a ban Varnish will not serve any
*banned* object from cache, but rather re-fetch it from it's back
end servers.
...
...
@@ -44,11 +44,37 @@ process management
If you invoke varnishd(1) with -T, -M or -d the CLI will be
available. In debug mode (-d) the CLI will be in the foreground, with
-T you can connect to it with varnishadm
and with -M varnishd will
connect back to a listening service *pushing* the CLI to that
service. Please see varnishd(1) for details.
-T you can connect to it with varnishadm
or telnet and with -M
varnishd will connect back to a listening service *pushing* the CLI to
that
service. Please see varnishd(1) for details.
Sessions can be authenticated
Syntax
------
Commands are usually terminated with a newline. Long command can be
entered using sh style *here documents*. The format of here-documents
is:::
<< word
here document
word
*word* can be any continuous string choosen to make sure it doesn't
appear naturally in the following *here document*.
When using the here document style of input there are no restrictions
on lenght. When using newline-terminated commands maximum lenght is
limited by the varnishd parameter *cli_buffer*.
When commands are newline terminated they get *tokenized* before
parsing so if you have significant spaces enclose your strings in
double quotes. Within the quotes you can escape characters with
\\. The \n, \r and \t get translated to newlines, carrage returns and
tabs. Double quotes themselves can be escaped with a backslash.
To enter characters in octals use the \\nnn syntax. Hexadecimals can
be entered with the \\xnn syntax.
Commands
--------
...
...
@@ -59,15 +85,17 @@ help [command]
If the command is specified, display help for this command.
param.set param value
Set the parameter specified by param to the specified value.
See Run-Time Parameters for a list of parame‐
ters.
Set the parameter specified by param to the specified value.
See Run-Time Parameters for a list of parame‐
ters.
param.show [-l] [param]
Display a list if run-time parameters and their values.
If the -l option is specified, the list includes a brief explanation of each parameter.
If the -l option is specified, the list includes a brief
explanation of each parameter.
If a param is specified, display only the value and explanation for this parameter.
If a param is specified, display only the value and explanation
for this parameter.
ping [timestamp]
Ping the Varnish cache process, keeping the connection alive.
...
...
@@ -158,27 +186,6 @@ The argument could be a quoted string, a regexp, or an integer.
Integers can have "KB", "MB", "GB" or "TB" appended for size related
fields.
Escapes
The commands are tokenized. So if you need spaces they need to be
wrapped in "". \" can be used to escape ".
\n, \r, \t works as thought.
\123 are used for bytes given in octals.
\x12 are used for hexadecial bytes.
Here documents
--------------
When giving long commands
"<< MAGIC" can be used.
The here documents only work for authenticated sessions.
Scripting
---------
...
...
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