Alteon Application Switch Operating System Application Guide
Server Load Balancing
Document ID: RDWR-ALOS-V2900_AG1302 253
3. Enter action to access the Rule Action menu, and then enter insert to set the new rule insert
action.
4. For the insert action, you can define a match criteria. If you define a match criteria, the insertion
is performed only if the match is met.
Enter the element to be matched for insertion. For more information, see the Alteon Application
Switch Operating System Command Reference.
5. Based on the selected match element, enter the required parameters.
6. Enter directn to set the rule direction, and then enter the rule direction: request or response.
Examples
A To insert the Set-Cookie for a cookie named "Device-ID" with the value "Alteon123" to all server
responses, use the following configuration:
>>cookie Modification http-mod-list Rule 5 # action
>>Current rule action:
>>Enter new rule action [insert|replace|remove]: insert
>>Enter cookie key to insert:
>>Enter cookie value to insert:
>>Enter cookie path or none:
>>Enter cookie domain name or none:
>>Enter insert-cookie expiration as either :
>>... a date <MM/dd/yy[@hh:mm]> (e.g. 12/31/01@23:59)
>>... a duration <days[:hours[:minutes]]> (e.g. 45:30:90)
>>... or none <return>
>>Enter cookie expiration:
>>Element to match can be one of url, header, cookie, filetype, statusline,
>>text, regex, none
>>Enter element to match []:
>>cookie Modification http-mod-list Rule 5 # directn
>>Enter new rule direction [req:resp] [req]:
>>HTTP Modification rule-list mylist# cur
Current rule: mylist enabled
10:
enabled
action insert cookie
KEY=Device-ID, VALUE=Alteon123
direction response