| addserver |
Use this method to creates a server entry on the NetScaler. The NetScaler appliance supports two types of servers: IP address based servers and domain based servers. |
Syntax |
Parameters |
name |
Name for the server.
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 name is created. This is mandatory parameter. |
ipaddress |
IPv4 or IPv6 address of the server. If you create an IP address based server, you can specify the name of the server, instead of its IP address, when creating a service. Note: If you do not create a server entry, the server IP address that you enter when you create a service becomes the name of the server. |
domain |
Domain name of the server. For a domain based configuration, you must create the server first. |
translationip |
IP address used to transform the server's DNS-resolved IP address. |
translationmask |
The netmask of the translation ip |
domainresolveretry |
Time, in seconds, for which the NetScaler must wait, after DNS resolution fails, before sending the next DNS query to resolve the domain name. Default value = 5. Minimum value = 5. Maximum value = 20939. |
state |
Initial state of the server. Default value = ENABLED. |
ipv6address |
Support IPv6 addressing mode. If you configure a server with the IPv6 addressing mode, you cannot use the server in the IPv4 addressing mode. Default value = NO. |
comment |
Any information about the server. |
querytype |
Specify the type of DNS resolution to be done on the configured domain to get the backend services. Valid query types are A, AAAA and SRV with A being the default querytype. The type of DNS resolution done on the domains in SRV records is inherited from ipv6 argument. Default value = ns_t_a. |
Return Value |
Returns simpleResult |
See Also |