swr_reload(1)

NAME
swr_reload - SWR reload application for Cisco's IOS-Linux based software router

SYNOPSIS
swr_reload [OPTIONS]

DESCRIPTION
swr_reload is an optional application to reload Cisco's IOS-Linux based software router in the event of a crash or a manually initiated reload. This application completely terminates and restarts all processes related to the SWR when a reload is initiated (versus simply starting the SWR process over without actually terminating it). The purpose of swr_reload is to launch and reload the software router which is specified in SWROPTIONS file, through command-line options, or from current working directory. Control-C should be used to exit the swr_reload application.

USAGE

./swr_reload
    Execute image specified in /soft-rommon/launchapp variables in SWROPTIONS file. If variables not defined in SWROPTIONS file, execute default image (./c5921i86-universalk9-ms.SPA).

./swr_reload [OPTIONS]
    Pass command-line options to the image specified in SWROPTIONS file. If image not specified in SWROPTIONS file, pass command-line options to default image.

COMMAND-LINE OPTIONS

Supports all SWR command-line options by default. In addition

-h  Display this help

-d  Display reload debug information

-F  To launch image from command-line

EXAMPLES

./swr-reload
    - If SWROPTIONS file is present, this command will launch the image specified in SWROPTIONS file under launchapp and soft-rommon keyword.

    - If SWROPTIONS file is present and launchapp and soft-rommon are not specified in SWROPTIONS, this command will launch default image from current working directory

    - If SWROPTIONS file is not present, this command will launch default image from current working directory

./swr_reload -i linux=eth0:ios=eth0/0:type=raw
          -f linux=/opt/cisco/c5921/mogopal:ios=flash0 - If SWROPTIONS file is present, this command will launch the image specified in SWROPTIONS file under launchapp and soft-rommon keyword and pass command-line options (-i and -f) to that image.

    - If SWROPTIONS file is present with no launchapp and soft-rommon keyword, this command will launch default image from current working directory and pass command-line options (-i and -f) to that image.

    - If SWROPTIONS file is not present, this command will launch default image from current working directory and pass command-line options (-i and -f) to that image.

./swr_reload -i linux=eth0:ios=eth0/0:type=raw
          -F c5921i86-universalk9-ms.SSA
          -f linux=/opt/cisco/c5921/mogopal:ios=flash0 - This command will launch the image via command-line -F option and pass all other command-line options (-i and -f) to that image.

./swr_reload -L 500 -o /opt/cisco/c5921/mogopal/SWROPTIONS &

    - This command will read SWROPTIONS file which is specifed via command-line and -L option to access SWR remote console using swrvcon (i.e ./swrvcon 500).

NOTE
Image to be launched should be present in file system mapped directory

SEE ALSO
swroptions(1) swrvcon(1)

COPYRIGHT
Copyright (c) 2013 by Cisco systems, Inc.