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