blob: 960b20ea2da7ca8daeb5a5c1f4cf91a77f3095cd [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001@node VTY shell
2@comment node-name, next, previous, up
3@chapter VTY shell
4
5@command{vtysh} is integrated shell of Zebra software.
6
7To use vtysh please specify ---enable-vtysh to configure script. To use
8PAM for authentication use ---with-libpam option to configure script.
9
10vtysh only searches @value{INSTALL_PREFIX_ETC} path for vtysh.conf which
11is the vtysh configuration file. Vtysh does not search current
12directory for configuration file because the file includes user
13authentication settings.
14
paul971a4492003-06-20 01:18:07 +000015Currently, vtysh.conf has only two commands.
paul718e3742002-12-13 20:15:29 +000016
paul971a4492003-06-20 01:18:07 +000017@deffn {Command} {username @var{username} nopassword} {}
paul718e3742002-12-13 20:15:29 +000018
19With this set, user foo does not need password authentication for user vtysh.
20With PAM vtysh uses PAM authentication mechanism.
21
22If vtysh is compiled without PAM authentication, every user can use vtysh
paul971a4492003-06-20 01:18:07 +000023without authentication. vtysh requires read/write permission
24to the various daemons vty sockets, this can be accomplished through use
25of unix groups and the --enable-vty-group configure option.
26
27@end deffn
28
29@deffn {Command} {write-conf daemon} {}
30Instruct daemons to write out their config files when 'write file'
31is issued.
32@end deffn
33@deffn {Command} {write-conf integrated} {}
34Write out integrated Zebra.conf file when 'write file' is issued.
35@end deffn
36
37This command controls the behaviour of vtysh when it is told
38to write out the configuration. If @command{write-conf integrated} is
39set, the daemon will write out a Zebra.conf with all daemons' commands
40integrated into it. If @command{write-conf daemon} is set, vtysh
41will instruct each daemon to write out their config files.
42
43Vtysh per default behaves as if @command{write-conf daemon} is set. Note
44that both may be set at same time if one wishes to have both
45Zebra.conf and daemon specific files written out. Further, note that the
46daemons are hard-coded to first look for the integrated Zebra.conf
47file before looking for their own file.
48
49We recommend you do not mix the use of the two types of files.
50Further, it is better not to use the integrated Zebra.conf file,
51as any syntax error in it can lead to /all/ of your daemons being unable
52to start up. Per daemon files are more robust as impact of errors in
53configuration are limited to the daemon in whose file the error is made.