128 ServerIron ADX Global Server Load Balancing Guide
53-1002437-01
Host-level policies for site selection
1
Deleting GSLB host-level policies

Deleting a policy that is not applied to a host

You can delete a host-level GSLB policy directly using the no gslb host-policy-name <policy-name>
command as long as the policy is not applied to a host. If the policy is bound to a host, the GSLB
ServerIron ADX will not allow you to delete the policy.
To delete a host-level GSLB policy that is not applied to a host, use the command no gslb
host-policy-name <policy-name> on the GSLB ServerIron ADX.
Deleting a Policy That Has Been Applied to Hosts
To remove references to, and delete a policy from all hosts to which the policy has been applied,
enter the following command on the GSLB ServerIron ADX.
GSLB-ServerIronADX# clear gslb host-policy abc
Syntax: clear gslb host-policy <policy-name>
To remove references to hosts and delete all host-level GSLB policies, enter the following command
on the GSLB ServerIron ADX.
GSLB-ServerIronADX# clear gslb host-policy
Syntax: clear gslb host-policy
Configuration example
The example configures a host-level GSLB policy. In this example, the GSLB ServerIron ADX is
providing GSLB for the following three domains:
www.gslb1.com (IP addresses: 1.1.1.101 (Active), 1.1.1.23 (Down), 1.1.1.54 (Down)}
ftp.gslb1.com (IP addresses: 1.1.1.78 (Active), 1.1.1.76 (Down)}
ftp.foo.com (IP addresses: 1.1.1.101 (Active), 1.1.1.23 (Active), 1.1.1.63 (Down)}
1. Define a host-level policy named "test" as follows.
GSLB-ServerIronADX(config)# gslb-host-policy test
GSLB-ServerIronADX(config-gslb-host-policy-test)# dns active-only
GSLB-ServerIronADX(config-gslb-host-policy-test)# metric-order set
health-check
GSLB-ServerIronADX(config-gslb-host-policy-test)# end
2. Configure the metric order for the GSLB policy.
GSLB-ServerIronADX# con t
GSLB-ServerIronADX(config)# gslb policy
GSLB-ServerIronADX(config-gslb-policy)# metric-order set health-check
GSLB-ServerIronADX(config-gslb-policy)# end
3. Apply the host-level policy to host “www” for zone gslb1.com and host “ftp” for zone foo.com.
GSLB-ServerIronADX#con t
GSLB-ServerIronADX(config)# gslb dns zone gslb1.com
GSLB-ServerIronADX(config-gslb-dns-gslb1.com)# host-info www http
GSLB-ServerIronADX(config-gslb-dns-gslb1.com)# host-info www gslb-policy test