Additional startup scripts may be included in the configuration using the start_script command.
The files in the start_script command will be placed in a location for
tftp
transfer to sibling
switches that initialize using the
–u
option. A common use of the start_script command might be
to propagate
gated
configurations to all members of the Surviving Partner group. Absolute path
names must be used. Using multiple commands allows inclusion of multiple scripts. For
example:
start_script: /etc/rcZ.d/S75gated;
start_script: /etc/rcZ.d/S80static_routes;
The
vrrpd_script
command allows a user defined script to be run when
vrrpd
changes
state. This script is called at the end of the
zspconfig
created vrrpd.script. See vrrpd
–s
for a
description of when the scripts are called.
zspconfig
sets up vrrpd to call vrrpd.script. The
vrrpd_script
command in
zspconfig
places a call to the user-defined script at the end of
vrrpd.script
file. The following example would call the
my_vrrpd_script
each time
vrrpd calls its
–s
provided script:
vrrpd_script: /etc/rcZ.d/surviving_partner/my_vrrpd_script;
NOTE: The
my_vrrpd_script
is not called from a different process thread. Therefore if
my_vrrpd_script
crashes or has long delays, it will crash the
vrrpd
, or cause delays in
the Surviving Partner failover. To protect against this, write the script to launch a second
script in a background shell. The advantage to calling the user provided script in the same
process thread is that it gives synchronized control over the failover process for those who
want it.
OUTPUT FILES
The output of
zspconfig
is a set of configuration and script files. The configuration files
configure
vrrpd
and
zlmd
daemons. The
vrrpd
and
zlmd
daemons combined with the script
files run the Surviving Partner. This is a list of all configuration and script files:
/etc/rcZ.d/S70Surviving_partner
The main startup script that starts the Surviving Partner by
running zconfig, ifconfig, zlmd and vrrpd. zspconfig prompts
the user to run this script. This file can be saved with
zsync to automatically start the Surviving Partner at switch
boot.
/etc/rcZ.d/surviving_partner/vrrpd.conf
Configuration script for the VRRP daemon. This configuration
is used when the S70Surviving_partner script launches vrrpd.
There is a line in this file for each router address vrrpd
will manage. Or stated another way, each virtual_address
command in the zspconfig configuration file results in a line
in vrrpd.conf.
/tftpboot/zsp.conf<n>
zspconfig configuration file that contains the configuration
of the sibling backup switches. The <n> is used to
Ethernet Switch Blade User's Guide
release 3.2.2j
page 251
Downloaded from
www.Manualslib.com
manuals search engine