blob: 66562a96cdb676ad0bf1abbc9559f85772533835 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001@node VTY shell
paul718e3742002-12-13 20:15:29 +00002@chapter VTY shell
3
paul7190f4e2003-08-12 12:40:20 +00004@command{vtysh} is integrated shell of Quagga software.
paul718e3742002-12-13 20:15:29 +00005
6To use vtysh please specify ---enable-vtysh to configure script. To use
7PAM for authentication use ---with-libpam option to configure script.
8
9vtysh only searches @value{INSTALL_PREFIX_ETC} path for vtysh.conf which
10is the vtysh configuration file. Vtysh does not search current
11directory for configuration file because the file includes user
12authentication settings.
13
paul971a4492003-06-20 01:18:07 +000014Currently, vtysh.conf has only two commands.
paul718e3742002-12-13 20:15:29 +000015
paul76b89b42004-11-06 17:13:09 +000016@menu
17* VTY shell username::
18* VTY shell integrated configuration::
19@end menu
20
21@node VTY shell username
22@section VTY shell username
23
paul971a4492003-06-20 01:18:07 +000024@deffn {Command} {username @var{username} nopassword} {}
paul718e3742002-12-13 20:15:29 +000025
26With this set, user foo does not need password authentication for user vtysh.
27With PAM vtysh uses PAM authentication mechanism.
28
29If vtysh is compiled without PAM authentication, every user can use vtysh
paul971a4492003-06-20 01:18:07 +000030without authentication. vtysh requires read/write permission
31to the various daemons vty sockets, this can be accomplished through use
32of unix groups and the --enable-vty-group configure option.
33
34@end deffn
35
paul76b89b42004-11-06 17:13:09 +000036@node VTY shell integrated configuration
paulafc1e2d2005-01-10 22:31:16 +000037@section VTY shell integrated configuration
paul971a4492003-06-20 01:18:07 +000038
paul76b89b42004-11-06 17:13:09 +000039@deffn {Command} {service integrated-vtysh-config} {}
40Write out integrated Quagga.conf file when 'write file' is issued.
41
42This command controls the behaviour of vtysh when it is told to write out
43the configuration. Per default, vtysh will instruct each daemon to write
44out their own config files when @command{write file} is issued. However, if
45@command{service integrated-vtysh-config} is set, when @command{write file}
46is issued, vtysh will instruct the daemons will write out a Quagga.conf with
47all daemons' commands integrated into it.
paul971a4492003-06-20 01:18:07 +000048
49Vtysh per default behaves as if @command{write-conf daemon} is set. Note
paul76b89b42004-11-06 17:13:09 +000050that both may be set at same time if one wishes to have both Quagga.conf and
51daemon specific files written out. Further, note that the daemons are
52hard-coded to first look for the integrated Quagga.conf file before looking
53for their own file.
paul971a4492003-06-20 01:18:07 +000054
paul76b89b42004-11-06 17:13:09 +000055We recommend you do not mix the use of the two types of files. Further, it
56is better not to use the integrated Quagga.conf file, as any syntax error in
57it can lead to /all/ of your daemons being unable to start up. Per daemon
58files are more robust as impact of errors in configuration are limited to
59the daemon in whose file the error is made.
60
61@end deffn