cancel
Showing results for 
Search instead for 
Did you mean: 

Problem this snippet solves:

Enterprise Manager configuration template for deploying SAP. Creates a virtual server referencing a pool with a basic monitor, a basic TCP profile, cookie insert and simple persistence profiles, a OneConnect profile, and a customized HTTP profile with compression & caching.

Product/Version Details

Tested on EM 1.4/LTM 9.4.0

How to use this snippet:

Step 1 Enter an appropriate name and description for the template and set Template Source to "Text".

Step 2 Enable the following options as desired:

Require verification Specifies, when checked, that any changeset built using this template must be verified prior to deployment.
Allow changesets to persist Specifies, when checked, that any changeset staged using this template will remain available in the changeset list for future deployment.

and paste the template text below into the Text box.

Note: The various profile settings in this template are those recommended in the F5 Deployment Guide for this application. Customize them further if required to support the application in your environment. If you'd like to rename variables & objects, you can use the "Advanced" option for Template Text entry to take advantage of the "Search & Replace" feature.

Step 3 Populate the Variable Poperties for "each variable defined in the template"

Variable Properties definitions:

Variable Properties definitions:
Default Value Optional default value for the variable.
Description Optional description of the variable and its intended usage.
Editable Enable if this value is meant to be editable in the resulting changeset.
Visible Enable if this value is meant to be visible in the resulting changeset.
Allowed values Optional list of values allowed for this variable when creating a changeset.

Variables Defined in this Template

Expected variable values/formats:

Expected variable values/formats:
@cookieprofile_name Single alpha-numeric string. Underscores OK (no whitespace)
@destination <IP>:<port> of virtual server
@httpprofile_name Single alpha-numeric string. Underscores OK (no whitespace)
@members <IP>:<port> of real server(s) (whitespace-delimited list)
@monitor_name Single alpha-numeric string. Underscores OK (no whitespace)
@oneconnectprofile_name Single alpha-numeric string. Underscores OK (no whitespace)
@pool_name Single alpha-numeric string. Underscores OK (no whitespace)
@sourceperstprofile_name Single alpha-numeric string. Underscores OK (no whitespace)
@tcpprofile_name Single alpha-numeric string. Underscores OK (no whitespace)
@virtualserver_name Single alpha-numeric string. Underscores OK (no whitespace)

Code :

@replace @destination
@replace @monitor_name
@replace @pool_name
@replace @httpprofile_name
@replace @oneconnectprofile_name
@replace @cookieprofile_name
@replace @sourceperstprofile_name
@replace @tcpprofile_name
@replace @virtualserver_name
@define @members
#F5[Local Traffic / Monitor]
#F5[$target_partition$]
monitor @monitor_name {
   defaults from http
   interval 30
   timeout 91
}

#F5[Local Traffic / Pool]
#F5[$target_partition$]
pool @pool_name {
   lb method least conn
   monitor all sap_http
   members
      @members
}

#F5[Local Traffic / Profiles / HTTP]
#F5[$target_partition$]
profile http @httpprofile_name {
   defaults from http-wan-optimized-compression-caching
   compress content type include
      "text/"
      "application/(xml|x-javascript)"
      "application/vnd.ms-publisher"
      "application/pdf"
      "application/vnd.ms-powerpoint"
      "application/vnd.ms-excel"
      "application/msword"
   compress content type exclude none
}

#F5[Local Traffic / Profiles / OneConnect]
#F5[$target_partition$]
profile oneconnect @oneconnectprofile_name {
   defaults from oneconnect
}

#F5[Local Traffic / Profiles / Persistence]
#F5[$target_partition$]
profile persist @cookieprofile_name {
   defaults from cookie
   mode cookie
}

#F5[$target_partition$]
profile persist @sourceperstprofile_name {
   defaults from source_addr
   mode source addr
}

#F5[Local Traffic / Profiles / TCP]
#F5[$target_partition$]
profile tcp @tcpprofile_name {
   defaults from tcp
}

#F5[Local Traffic / Virtual Server]
#F5[$target_partition$]
virtual @virtualserver_name {
   pool @pool_name
   fallback persist @sourceperstprofile_name
   destination @destination 
   ip protocol tcp
   profiles
      @httpprofile_name
      @oneconnectprofile_name
      @tcpprofile_name
   persist @cookieprofile_name
}
Version history
Last update:
‎12-Mar-2015 15:58
Updated by:
Contributors