Configure a GSLB virtual server
To create a GSLB virtual server by using the command line interface
- add gslb vserver <name> <serviceType> -dnsRecordType <A| AAAA| CNAME| NAPTR>
- show gslb vserver <name>
add gslb vserver Vserver-GSLB-1 HTTP -dnsRecordType A
add gslb vserver Vserver-GSLB-2 HTTP -dnsRecordType AAAA
show gslb vserver Vserver-GSLB-1
show gslb vserver Vserver-GSLB-2
To modify or remove a GSLB virtual server by using the command line interface
-
To modify a GSLB virtual server, use the
set gslb vservercommand. This command works similar to theadd gslb vservercommand, except that you enter the name of an existing GSLB virtual server. -
To reset a parameter to its default value, you can use the
unset gslb vservercommand followed by the vserverName value and the name of the parameter to be unset. -
To remove a GSLB virtual server, use the
rm gslb vservercommand, which accepts only the name argument.
To configure a GSLB virtual server by using the configuration utility
-
Navigate to Traffic Management > GSLB > Virtual Servers.
-
Add a new GSLB virtual server, or select an existing GSLB virtual server and edit its settings.
To view the statistics of a GSLB virtual server by using the command line interface
stat gslb vserver <name>
stat gslb vserver Vserver-GSLB-1
To view the statistics of a GSLB virtual server by using the configuration utility
GSLB virtual server statistics
-
Primary LB method failures: Number of times the primary GSLB method has failed.
-
Backup LB method failures: Number of times the backup GSLB method has failed.
-
Vserver persistence hits: The number of times the request is served through the persistence sessions.
-
If the backup method is successful, only primary method failure statistics are incremented.
-
If the RTT calculation is not successful, then the backup method also fails. In this case, both primary and backup method failure statistics are incremented.
GSLB service statistics
stat gslb service command from the command line or click the Statistics link from the configuration utility, the following details of the service are displayed:
-
Request bytes. Total number of request bytes received on this service or virtual server.
-
Response bytes. Number of response bytes received by this service or virtual server.
-
Current client established connections. Number of client connections in ESTABLISHED state.
-
Current load on the service. Load on the service (Calculated from the load monitor bound to the service).
Clearing the GSLB virtual server or service statistics
-
Basic: Clears the statistics that are specific to the virtual server but retains the statistics that are contributed by the bound GLSB service.
-
Full: Clears both the virtual server and the bound GSLB service statistics.
To clear the statistics of a GSLB virtual server by using the command line interface
stat gslb vserver <name> -clearstats <basic | full>
stat gslb vserver Vserver-GSLB-1 –clearstats basic
To clear the statistics of a GSLB service by using the command line interface
stat gslb service <name> -clearstats <basic | full>
stat gslb service service-GSLB-1 –clearstats basic
To clear the statistics of a GSLB virtual server by using the configuration utility
-
Navigate to Traffic Management > GSLB > Virtual Servers.
-
Select the GSLB virtual server and, click Statistics, and then click Clear.
-
From the Clear drop-down list, select Basic or Full, and then click OK.
To clear the statistics of a GSLB service by using the configuration utility
-
Navigate to Traffic Management > GSLB > Services.
-
Select the GSLB service and, click Statistics, and then click Clear.
-
From the Clear drop-down list, select Basic or Full, and then click OK.
Enabling and Disabling GSLB Virtual Servers
To enable or disable a GSLB virtual server by using the command line interface
enable gslb vserver <name>@
disable gslb vserver <name>@
enable gslb vserver Vserver-GSLB-1
disable gslb vserver Vserver-GSLB-1
To enable or disable a GSLB virtual server by using the configuration utility
-
Navigate to Traffic Management > GSLB > Virtual Servers.
-
Select a virtual server and, from the Action list, select enable or disable.