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

NAME

6       varnishadm - Control a running Varnish instance
7

SYNOPSIS

9       varnishadm   [-h]   [-n   ident]   [-t  timeout]  [-S  secretfile]  [-T
10       [address]:port] [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       -S secretfile
32              Specify the authentication secret file. This should be the  same
33              -S  argument  as was given to varnishd. Only processes which can
34              read the contents of this file, will be able to authenticate the
35              CLI connection.
36
37       -t timeout
38              Wait  no  longer than this many seconds for an operation to fin‐
39              ish.
40
41       -T <address:port>
42              Connect to the management interface at the specified address and
43              port.
44
45       The  syntax  and  operation of the actual CLI interface is described in
46       the varnish-cli(7) manual page. Parameters are described in varnishd(1)
47       manual page.
48
49       Additionally, a summary of commands can be obtained by issuing the help
50       command, and a summary of parameters can be  obtained  by  issuing  the
51       param.show command.
52

EXIT STATUS

54       If  a  command  is  given, the exit status of the varnishadm utility is
55       zero if the command succeeded, and non-zero otherwise.
56

EXAMPLES

58       Some ways you can use varnishadm:
59
60          varnishadm -T localhost:999 -S /var/db/secret vcl.use foo
61          echo vcl.use foo | varnishadm -T localhost:999 -S /var/db/secret
62          echo vcl.use foo | ssh vhost varnishadm -T localhost:999 -S /var/db/secret
63

SEE ALSO

65       · varnishd(1)
66
67       · varnish-cli(7)
68

AUTHORS

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