blob: de59f7f72e526047c398ac0dabea51c9827b3782 [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
paul7190f4e2003-08-12 12:40:20 +00005@command{vtysh} is integrated shell of Quagga software.
paul718e3742002-12-13 20:15:29 +00006
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} {}
paul7190f4e2003-08-12 12:40:20 +000034Write out integrated Quagga.conf file when 'write file' is issued.
paul971a4492003-06-20 01:18:07 +000035@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
paul7190f4e2003-08-12 12:40:20 +000039set, the daemon will write out a Quagga.conf with all daemons' commands
paul971a4492003-06-20 01:18:07 +000040integrated 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
paul7190f4e2003-08-12 12:40:20 +000045Quagga.conf and daemon specific files written out. Further, note that the
46daemons are hard-coded to first look for the integrated Quagga.conf
paul971a4492003-06-20 01:18:07 +000047file before looking for their own file.
48
49We recommend you do not mix the use of the two types of files.
paul7190f4e2003-08-12 12:40:20 +000050Further, it is better not to use the integrated Quagga.conf file,
paul971a4492003-06-20 01:18:07 +000051as 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.