Académique Documents
Professionnel Documents
Culture Documents
5 +)
Contents
When a lookup does not succeed, the NetScaler fetches all of the requested data
from the server, and simultaneously serves the data to the client and updates the
data on the T2100 appliance.
The T2100 appliance can be configured to specify the number of requests after
which to cache the data.
> add lb vserver T2100-lbvserver HTTP 10.102.29.64 99 -lbMethod TOKEN -rule "http.req.url.after_str(\"/
http.req.url.path.SKIP(1).PREFIX(64)"
4. Bind the T2100 services to the load balancing virtual server that you created for them.
bind lb vserver <name> <serviceName>
Example:
> bind lb vserver T2100-lbvserver T2100-A
> bind lb vserver T2100-lbvserver T2100-B
> bind lb vserver T2100-lbvserver T2100-C
5. Define a content accelerator action.
add ca action <name> -accumResSize <KBytes> -lbvserver <string> -type lookup
Example:
> add ca action ca_action1 -type lookup -lbvserver T2100-lbvserver -accumResSize 60
6. Define a content accelerator policy.
add ca policy <name> -rule <expression> -action <name>
Example: To create a content accelerator policy that caches all video formats.
> add ca policy ca_mp4_pol -rule ns_video -action ca_action1
where ns_video is a built-in expression.
7. Bind the content accelerator policy to either a virtual server that receives traffic or
globally to the NetScaler system.
bind lb vserver <name> -policyName <string>
bind cs vserver <name> -policyName <string>
bind ca global -policyName <string> -priority <num> -type <type>
Example: To apply the content accelerator policy to a virtual server named "traf_rec"
> bind lb vserver traf_rec -policyName ca_mp4_pol
Example: To apply the content accelerator policy for all traffic reaching the NetScaler.
> bind ca global -policyName ca_mp4_pol -priority 100 -type RES_DEFAULT
8. Save the configuration.
save ns config
add service
name
Name for the service. Must begin with an ASCII alphabetic or underscore (_) character,
and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon
(:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the service
has been created.
serviceType
Protocol in which data is exchanged with the service.
Possible values: HTTP, FTP, TCP, UDP, SSL, SSL_BRIDGE, SSL_TCP, DTLS, NNTP, RPCSVR,
DNS, ADNS, SNMP, RTSP, DHCPRA, ANY, SIP_UDP, DNS_TCP, ADNS_TCP, MYSQL, MSSQL,
ORACLE, RADIUS, RDP, DIAMETER, SSL_DIAMETER, TFTP
port
Port number of the service.
View description(s) in command reference Top
add lb vserver
name
Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_)
character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.),
space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed
after the virtual server is created.
CLI Users: If the name includes one or more spaces, enclose the name in double or single
quotation marks (for example, "my vserver" or 'my vserver').
serviceType
Protocol used by the service (also called the service type).
Possible values: HTTP, FTP, TCP, UDP, SSL, SSL_BRIDGE, SSL_TCP, DTLS, NNTP, DNS,
DHCPRA, ANY, SIP_UDP, DNS_TCP, RTSP, PUSH, SSL_PUSH, RADIUS, RDP, MYSQL, MSSQL,
DIAMETER, SSL_DIAMETER, TFTP, ORACLE
IPAddress
IPv4 or IPv6 address to assign to the virtual server.
port
Port number for the virtual server.
lbMethod
Load balancing method. The available settings function as follows:
10
bind lb vserver
name
Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_)
character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.),
space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed
after the virtual server is created.
CLI Users: If the name includes one or more spaces, enclose the name in double or single
quotation marks (for example, "my vserver" or 'my vserver').
serviceName
Name of the service.
policyName
Name of the policy to bind to the virtual server.
View description(s) in command reference Top
add ca action
name
Name of the content adaptation action. Must begin with an ASCII alphabetic or
underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash
(#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.
11
add ca policy
name
Name for the content adaptation policy. Must begin with an ASCII alphabetic or
underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash
(#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be
changed after the policy is created.
rule
Expression that determines which requests or responses match the content adaptation
policy. When specifying the rule in the CLI, the description must be enclosed within
double quotes.
action
Name of content adaptation action to be executed when the rule is evaluated to true.
View description(s) in command reference Top
bind cs vserver
name
Name of the content switching virtual server to which the content switching policy
applies.
policyName
Name of the content switching policy to bind to the content switching virtual server Must
begin with an ASCII alphanumeric or underscore (_) character, and must contain only
ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal
sign (=), and hyphen (-) characters. Cannot be changed after a policy is created.
12
bind ca global
policyName
Name of the content accelerator policy.
View description(s) in command reference Top
save ns config
No parameters provided in this topic or the command has no parameters. View
description(s) in command reference Top
13