Alteon Application Switch Operating System Application Guide
AppShape++ Scripting
800 Document ID: RDWR-ALOS-V2900_AG1302
Example Configuring a Virtual Service with an AppShape++ Script
1. Make sure that Alteon is configured for basic SLB:
— Define an IP interface.
— Enable SLB.
— Assign an IP address to each of the real servers in the server pool.
— Define each real server.
— Assign servers to real server groups.
— Define server port and client port.
— Define virtual server
— Define virtual service
For more information on how to configure your network for SLB, see Server Load Balancing,
page 165.
2. Write the AppShape++ script which will complete the virtual service behavior. Radware
recommends using a Tcl-enabled editor.
3. Import the script to Alteon the switch.
4. Enable the script.
5. Attach the script to the virtual service.
>> Main # /cfg/slb/appshape/script myscript
>> AppShape++ script myscript# import
Import script from text or file in PEM format [text|file] [text]: file
Enter hostname (and IP version) or IP address of FTP/TFTP/SCP server:
192.162.1.1
Enter name of file on FTP/TFTP/SCP server: myscript.tcl
Enter username for FTP/SCP server or hit return for TFTP server:
Enter password for username on FTP/SCP server:
Enter "scp" or hit return for FTP server:
>> AppShape++ script myscript# ena
>> Main# /cfg/slb/virt 1/service 80/appshape/add 1 myscript