File: varnishadm.1

package info (click to toggle)
varnish 6.5.1-1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,720 kB
  • sloc: ansic: 95,295; javascript: 9,411; sh: 4,673; python: 2,157; makefile: 1,353; awk: 114; ruby: 34
file content (109 lines) | stat: -rw-r--r-- 3,212 bytes parent folder | download | duplicates (3)
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
.\" Man page generated from reStructuredText.
.
.TH VARNISHADM 1 "" "" ""
.SH NAME
varnishadm \- Control a running Varnish instance
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.SH SYNOPSIS
.sp
varnishadm [\-h] [\-n ident] [\-t timeout] [\-S secretfile] [\-T [address]:port] [command [...]]
.SH DESCRIPTION
.sp
The \fIvarnishadm\fP utility establishes a CLI connection to varnishd either
using \-n \fIname\fP or using the \-T and \-S arguments. If \-n \fIname\fP is
given the location of the secret file and the address:port is looked
up in shared memory. If neither is given \fIvarnishadm\fP will look for an
instance without a given name.
.sp
If a command is given, the command and arguments are sent over the CLI
connection and the result returned on stdout.
.sp
If no command argument is given \fIvarnishadm\fP will pass commands and
replies between the CLI socket and stdin/stdout.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-h
Print program usage and exit.
.TP
.BI \-n \ ident
Connect to the instance of \fIvarnishd\fP with this name.
.TP
.BI \-S \ secretfile
Specify the authentication secret file. This should be the same \-S
argument as was given to \fIvarnishd\fP\&. Only processes which can read
the contents of this file, will be able to authenticate the CLI connection.
.TP
.BI \-t \ timeout
Wait no longer than this many seconds for an operation to finish.
.TP
.BI \-T \ <address:port>
Connect to the management interface at the specified address and port.
.UNINDENT
.sp
The syntax and operation of the actual CLI interface is described in
the \fIvarnish\-cli(7)\fP manual page. Parameters are described in
\fIvarnishd(1)\fP manual page.
.sp
Additionally, a summary of commands can be obtained by issuing the
\fIhelp\fP command, and a summary of parameters can be obtained by issuing
the \fIparam.show\fP command.
.SH EXIT STATUS
.sp
If a command is given, the exit status of the \fIvarnishadm\fP utility is
zero if the command succeeded, and non\-zero otherwise.
.SH EXAMPLES
.sp
Some ways you can use varnishadm:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
varnishadm \-T localhost:999 \-S /var/db/secret vcl.use foo
echo vcl.use foo | varnishadm \-T localhost:999 \-S /var/db/secret
echo vcl.use foo | ssh vhost varnishadm \-T localhost:999 \-S /var/db/secret
.ft P
.fi
.UNINDENT
.UNINDENT
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
\fIvarnishd(1)\fP
.IP \(bu 2
\fIvarnish\-cli(7)\fP
.UNINDENT
.SH AUTHORS
.sp
The \fIvarnishadm\fP utility and this manual page were written by Cecilie
Fritzvold. This man page has later been modified by Per Buer, Federico G.
Schwindt and Lasse Karstensen.
.\" Generated by docutils manpage writer.
.