*****************************************************************************
* ATEN Technology, Inc.                                                     *
*****************************************************************************
* FUNCTION   :  IPMI FIRMWARE UPDATE UTILITY                                *
* VERSION    :  2.01                                                        *
* BUILD DATE :  May 19 2013                                                 *
* USAGE      :                                                              *
*             (1)Update FIRMWARE : AlUpdate -f filename.bin [OPTION]         *
*             (2)Dump FIRMWARE   : AlUpdate -d filename                      *
*             (3)Restore CONFIG  : AlUpdate -c -f filename.bin               *
*             (4)Backup CONFIG   : AlUpdate -c -d filename.bin               *
*****************************************************************************
* OPTION                                                                    *
*   -i the IPMI channel, currently, kcs and lan are supported               *
* LAN channel specific arguments                                            *
*   -h remote BMC address and RMCP+ port, (default port is 623)             *
*   -u IPMI user name                                                       *
*   -p IPMI password correlated to IPMI user name                           *
*   -r Preserve Configuration (default is Preserve)                         *
*      n:No Preserve, reset to factory default settings                     *
*      y:Preserve, keep all of the settings                                 *
*   -c IPMI configuration backup/restore                                    *
*      -f [restore.bin] Restore configurations                              *
*      -d [backup.bin] Backup configurations                                *
*****************************************************************************
* EXAMPLE                                                                   *
*   we like to upgrade firmware through KCS channel                         *
*   lUpdate -f fwuperade.bin -i kcs -r y                                    *
*   lUpdate -d fwdump.bin -i kcs -r y                                       *
*                                                                           *
*   we like to restore/backup IPMI config through KCS channel               *
*   lUpdate -c -f restore.bin -i kcs -r y                                   *
*   lUpdate -c -d backup.bin -i kcs -r y                                    *
*                                                                           *
*   we like to upgrade firmware through LAN channel with                    *
*   - BMC IP address 10.11.12.13 port 623                                   *
*   - IPMI username is usr                                                  *
*   - Password for alice is pwd                                             *
*   - Preserve Configuration                                                *
*   lUpdate -f fw.bin -i lan -h 10.11.12.13 623 -u usr -p pwd -r y          *
*   lUpdate -d fwdump.bin -i lan -h 10.11.12.13 623 -u usr -p pwd -r y      *
*                                                                           *
*   we like to restore/backup IPMI config through LAN channel with          *
*   - BMC IP address 10.11.12.13 port 623                                   *
*   - IPMI username is usr                                                  *
*   - Password for alice is pwd                                             *
*   - Preserve Configuration                                                *
*   lUpdate -c -f fw.bin -i lan -h 10.11.12.13 623 -u usr -p pwd            *
*   lUpdate -c -d fwdump.bin -i lan -h 10.11.12.13 623 -u usr -p pwd        *
*****************************************************************************


2.01 add list:
(1) modify text