1VARNISHADM(1)                                                    VARNISHADM(1)
2
3
4

NAME

6       varnishadm - Control a running Varnish instance
7

SYNOPSIS

9       varnishadm [-h] [-n ident] [-p] [-S secretfile] [-T [address]:port] [-t
10       timeout] [command [...]]
11

DESCRIPTION

13       The varnishadm utility establishes a CLI connection to varnishd  either
14       using -n name or using the -T and -S arguments. If -n name is given the
15       location of the secret file and the address:port is looked up in shared
16       memory.  If neither is given varnishadm will look for an instance with‐
17       out a given name.
18
19       If a command is given, the command and arguments are sent over the  CLI
20       connection and the result returned on stdout.
21
22       If  no  command  argument  is  given  varnishadm will pass commands and
23       replies between the CLI socket and stdin/stdout.
24

OPTIONS

26       -h     Print program usage and exit.
27
28       -n ident
29              Connect to the instance of varnishd with this name.
30
31       -p     Force pass mode and make the output follow  the  VCLI  protocol.
32              This  disables  command-history/command-completion  and makes it
33              easier for programs to parse the response(s).
34
35       -S secretfile
36              Specify the authentication secret file. This should be the  same
37              -S  argument  as was given to varnishd. Only processes which can
38              read the contents of this file, will be able to authenticate the
39              CLI connection.
40
41       -T <address:port>
42              Connect to the management interface at the specified address and
43              port.
44
45       -t timeout
46              Wait no longer than this many seconds for an operation  to  fin‐
47              ish.
48
49       The  syntax  and  operation of the actual CLI interface is described in
50       the varnish-cli(7) manual page. Parameters are described in varnishd(1)
51       manual page.
52
53       Additionally, a summary of commands can be obtained by issuing the help
54       command, and a summary of parameters can be  obtained  by  issuing  the
55       param.show command.
56

EXIT STATUS

58       If  a  command  is  given, the exit status of the varnishadm utility is
59       zero if the command succeeded, and non-zero otherwise.
60

EXAMPLES

62       Some ways you can use varnishadm:
63
64          varnishadm -T localhost:999 -S /var/db/secret vcl.use foo
65          echo vcl.use foo | varnishadm -T localhost:999 -S /var/db/secret
66          echo vcl.use foo | ssh vhost varnishadm -T localhost:999 -S /var/db/secret
67

SEE ALSO

69varnishd(1)
70
71varnish-cli(7)
72

AUTHORS

74       The varnishadm utility and this manual page  were  written  by  Cecilie
75       Fritzvold.  This man page has later been modified by Per Buer, Federico
76       G.  Schwindt and Lasse Karstensen.
77
78
79
80
81                                                                 VARNISHADM(1)
Impressum