serviceGroup
The following operations can be performed on “serviceGroup”:
enable serviceGroup
Enables a service group or a member of the service group.
Synopsis
enable serviceGroup
Arguments
serviceGroupName Name of the service group.
serverName Name of the server that hosts the service.
port Port number of the service to be enabled.
Example
enable servicegroup http_svc_group To enable multiple service groups at one go use the following command: enable servicegroup http_svc_group[1-3]
rename serviceGroup
Renames a service group.
Synopsis
rename serviceGroup
Arguments
serviceGroupName Existing name of the service group.
newName New name for the service group.
Example
rename service svcgrp1 svcgrp-new1
bind serviceGroup
Binds a service to a service group.
Synopsis
bind serviceGroup
Arguments
serviceGroupName Name of the service group.
IP IP address of the server that hosts the service. Mutually exclusive with the Server Name parameter.
serverName Name of the server that hosts the service. Mutually exclusive with the IP address parameter.
port Port number of the service. Each service must have a unique port number.
monitorName The name of the service or a service group to which the monitor is to be bound.
monState Administrative state assigned to the monitor and service group binding. If set to disabled, the service group is not monitored.
Possible values: ENABLED, DISABLED Default value: ENABLED
passive Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached.
weight CustomServerID Unique service identifier. Used when the persistency type for the virtual server is set to Custom Server ID. Default value: “None”
state Initial state of the service after binding.
Possible values: ENABLED, DISABLED Default value: ENABLED
hashId Unique numerical identifier used by hash based load balancing methods to identify a service. Minimum value: 1
nameServer Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver
dbsTTL Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors Default value: 0
order Order number to be assigned to the servicegroup member Minimum value: 1 Maximum value: 8192
Example
bind servicegroup http_svc_group 10.102.27.153 80 To bind multiple servers to a servicegroup, following command can be used: bind servicegroup http_svc_group 10.102.27.[153-155] 80
show serviceGroup
Displays the specified service group’s binding information.
Synopsis
show serviceGroup [
Arguments
serviceGroupName Name of the service group.
includeMembers Display the members of the listed service groups in addition to their settings. Can be specified when no service group name is provided in the command. In that case, the details displayed for each service group are identical to the details displayed when a service group name is provided, except that bound monitors are not displayed.
Output
numOfconnections This will tell the number of client side connections are still open.
numOfCurConnections This will tell number of current client connections
numOfLastConnections This will tell number of connections that are linked by last connection
serviceType Protocol used to exchange data with the service.
port The port number of the service to be enabled.
td Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0.
serviceConfTpye serviceConfType The configuration type of the service group.
value SSL Status.
cacheType Cache type supported by the cache server.
maxClient Maximum number of simultaneous open connections for the service group.
maxReq Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected.
cacheable The state of cache on the service.
cip Insert the Client IP header in requests forwarded to the service.
cipHeader CIP Header.
usip Use client’s IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections.
pathMonitor Path monitoring for clustering
pathMonitorIndv Individual Path monitoring decisions.
useproxyport The use of client’s Port.
monweight weight of the monitor that is bound to servicegroup.
sp Enable surge protection for the service group.
rtspSessionidRemap Enable RTSP session ID mapping for the service group.
cltTimeout Time, in seconds, after which to terminate an idle client connection.
svrTimeout Time, in seconds, after which to terminate an idle server connection.
CKA Enable client keep-alive for the service group.
TCPB Enable TCP buffering for the service group.
CMP Enable compression for the specified service.
maxBandwidth Maximum bandwidth, in Kbps, allocated for all the services in the service group.
state The state of the service group
svrState The state of the service
delay The remaining time in seconds for the service to be disabled
delay The remaning time in seconds for the service to be disabled
IP IP Address.
serverName The name of the server to be changed.
monitorName Monitor name.
monThreshold Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN.
monState Monitor state.
weight CustomServerID The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID.
serverID The identifier for the service. This is used when the persistency type is set to Custom Server ID.
monState The running state of the monitor on this service.
monStatCode The code indicating the monitor response.
monStatParam1 First parameter for use with message code.
monStatParam2 Second parameter for use with message code.
monStatParam3 Third parameter for use with message code.
monitorTotalProbes Total number of probes sent to monitor this service.
monitorTotalFailedProbes Total number of failed probes
monitorCurrentFailedProbes Total number of currently failed probes
downStateFlush Flush all active transactions associated with all services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions.
lastresponse The string form of monstatcode.
stateChangeTimeSec Time when last state change occurred. Seconds part.
stateChangeTimemSec Time when last state change occurred. Milliseconds part.
timeSinceLastStateChange Time in milliseconds since the last state change.
ticksSinceLastStateChange Time in 10 millisecond ticks since the last state change.
StateUpdateReason Checks state update reason on the secondary node.
ClMonOwner Tells the mon owner of the service.
ClMonView Tells the view id of the monitoring owner.
groupCount Servicegroup Count
comment Any information about the service group.
tcpProfileName Name of the TCP profile that contains TCP configuration settings for the service group.
httpProfileName Name of the HTTP profile that contains HTTP configuration settings for the service group.
hashId The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods.
graceFul Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service.
healthMonitor Monitor the health of this service. Available settings function as follows: YES - Send probes to check the health of the service. NO - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times.
appflowLog Enable logging of AppFlow information for the specified service group.
netProfile Network profile for the service group.
autoScale Auto scale option for a servicegroup
memberPort member port
autoDisablegraceful Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service.
autoDisabledelay The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service.
autoDelayedTrofs Indicates graceful movement of IP-Port binding/s to TROFS when IP addresses are removed from DNS response. System will wait for monitor response timeout period before moving to TROFS .
state Monitor state.
weight weight of the monitor that is bound to servicegroup.
serviceIPstr This field has been intorduced to show the dbs services ip
serviceGroupEntName2 passive Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached.
serviceGroupeffectivestate Indicates the effective servicegroup state based on the state of the bound service items.If all services are UP the effective state is UP, if all are DOWN its DOWN,if all are OFS its OFS.If atleast one serviceis UP and rest are either DOWN or OFS, the effective state is PARTIAL-UP.If atleast one bound service is DOWN and rest are OFS the effective state is PARTIAL DOWN.
monConnectionClose Close monitoring connections by sending the service a connection termination message with the specified bit set.
noDefaultBindings to determine if the configuration is from stylebooks
nameServer Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver
dbsTTL Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors
svcitmActSvcs This gives the total active service items for an FQDN for SRV type server binding
svcitmPriority This gives the priority of the FQDN service items for SRV server binding
svcitmBoundSvcs This gives the total bound items for an FQDN for SRV type server binding
responseTime Response time of this monitor in milli sec.
members Desired servicegroupmember binding set. Any existing servicegroupmember which is not part of the input will be deleted or disabled based on graceful setting on servicegroup.
failedmembers List of servicegroupmembers which couldn’t be bound.
trofsReason Specify reason if service group member in TROFS
monUserStatusMesg This field has been introduced to show user monitor failure reasons
order Order number to be assigned to the servicegroup member
order Order number in string form to be assigned to the servicegroup member
trofsDelay Delay before moving to TROFS
devno count stateflag
set serviceGroup
Modifies the specified parameters of a service group.
Synopsis
set serviceGroup
Arguments
serviceGroupName Name of the service group.
serverName Name of the server to which to bind the service group.
port Server port number.
weight Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. Minimum value: 1 Maximum value: 100
CustomServerID The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID. Default value: “None”
hashId The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. Minimum value: 1
nameServer Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver
dbsTTL Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors Default value: 0
order Order number to be assigned to the servicegroup member Minimum value: 1 Maximum value: 8192
monitorName Name of the monitor bound to the service group. Used to assign a weight to the monitor.
weight weight of the monitor that is bound to servicegroup. Minimum value: 1
maxClient Maximum number of simultaneous open connections for the service group. Minimum value: 0 Maximum value: 4294967294
maxReq Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. Minimum value: 0 Maximum value: 65535
healthMonitor Monitor the health of this service. Available settings function as follows: YES - Send probes to check the health of the service. NO - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times.
Possible values: YES, NO Default value: YES
cacheable Use the transparent cache redirection virtual server to forward the request to the cache server. Note: Do not set this parameter if you set the Cache Type.
Possible values: YES, NO Default value: NO
cip Insert the Client IP header in requests forwarded to the service.
Possible values: ENABLED, DISABLED
cipHeader CIP Header.
usip Use client’s IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections.
Possible values: YES, NO
pathMonitor Path monitoring for clustering
Possible values: YES, NO
pathMonitorIndv Individual Path monitoring decisions.
Possible values: YES, NO
useproxyport Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES.
Possible values: YES, NO
sp Enable surge protection for the service group.
Possible values: ON, OFF Default value: OFF
rtspSessionidRemap Enable RTSP session ID mapping for the service group.
Possible values: ON, OFF Default value: OFF
cltTimeout Time, in seconds, after which to terminate an idle client connection. Maximum value: 31536000
svrTimeout Time, in seconds, after which to terminate an idle server connection. Maximum value: 31536000
CKA Enable client keep-alive for the service group.
Possible values: YES, NO
TCPB Enable TCP buffering for the service group.
Possible values: YES, NO
CMP Enable compression for the specified service.
Possible values: YES, NO
maxBandwidth Maximum bandwidth, in Kbps, allocated for all the services in the service group. Minimum value: 0 Maximum value: 4294967287
monThreshold Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. Minimum value: 0 Maximum value: 65535
downStateFlush Flush all active transactions associated with all the services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions.
Possible values: ENABLED, DISABLED Default value: ENABLED
tcpProfileName Name of the TCP profile that contains TCP configuration settings for the service group.
httpProfileName Name of the HTTP profile that contains HTTP configuration settings for the service group.
comment Any information about the service group.
appflowLog Enable logging of AppFlow information for the specified service group.
Possible values: ENABLED, DISABLED Default value: ENABLED
netProfile Network profile for the service group.
autoDisablegraceful Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service.
Possible values: YES, NO Default value: NO
autoDisabledelay The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service.
autoDelayedTrofs Indicates graceful movement of IP-Port binding/s to TROFS when IP addresses are removed from DNS response. System will wait for monitor response timeout period before moving to TROFS .
Possible values: YES, NO Default value: NO
monConnectionClose Close monitoring connections by sending the service a connection termination message with the specified bit set.
Possible values: RESET, FIN Default value: NONE
autoScale Set this parameter to API to enable using Desired State API for binding intended servicegroup member set. Setting this parameter to API may result in error if the already existing member bindings fall under below category -
- Domain based server
- Named servers
- servers whose name and IP do not match. example: add server 1.2.3.4 4.3.2.1
- Loopback servers should be named only 127.0.0.1 or 0000:0000:0000:0000:0000:0000:0000:0001.
Possible values: DISABLED, DNS, POLICY, CLOUD, API Default value: DISABLED
Example
set servicegroup http_svc_group -maxClient 100 To set the attribute maxclient for multiple servicegroups at once, use the following command: set servicegroup http_svc_group[1-3] -maxClient 100
add serviceGroup
Creates a service group. You can group similar services into a service group and use them as a single entity.
Synopsis
add serviceGroup
Arguments
serviceGroupName Name of the service group. 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.
serviceType Protocol used to exchange data 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, SIP_TCP, SIP_SSL, DNS_TCP, ADNS_TCP, MYSQL, MSSQL, ORACLE, MONGO, MONGO_TLS, RADIUS, RADIUSListener, RDP, DIAMETER, SSL_DIAMETER, TFTP, SMPP, PPTP, GRE, SYSLOGTCP, SYSLOGUDP, FIX, SSL_FIX, USER_TCP, USER_SSL_TCP, QUIC, IPFIX, LOGSTREAM, LOGSTREAM_SSL, MQTT, MQTT_TLS, QUIC_BRIDGE, DOT, ADNS_DOT
cacheType Cache type supported by the cache server.
Possible values: TRANSPARENT, REVERSE, FORWARD
td Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. Minimum value: 0 Maximum value: 4094
maxClient Maximum number of simultaneous open connections for the service group. Minimum value: 0 Maximum value: 4294967294
maxReq Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. Minimum value: 0 Maximum value: 65535
cacheable Use the transparent cache redirection virtual server to forward the request to the cache server. Note: Do not set this parameter if you set the Cache Type.
Possible values: YES, NO Default value: NO
cip Insert the Client IP header in requests forwarded to the service.
Possible values: ENABLED, DISABLED
cipHeader Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client’s IP header name.
usip Use client’s IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections.
Possible values: YES, NO
pathMonitor Path monitoring for clustering
Possible values: YES, NO
pathMonitorIndv Individual Path monitoring decisions.
Possible values: YES, NO
useproxyport Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES.
Possible values: YES, NO
healthMonitor Monitor the health of this service. Available settings function as follows: YES - Send probes to check the health of the service. NO - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times.
Possible values: YES, NO Default value: YES
sp Enable surge protection for the service group.
Possible values: ON, OFF Default value: OFF
rtspSessionidRemap Enable RTSP session ID mapping for the service group.
Possible values: ON, OFF Default value: OFF
cltTimeout Time, in seconds, after which to terminate an idle client connection. Maximum value: 31536000
svrTimeout Time, in seconds, after which to terminate an idle server connection. Maximum value: 31536000
CKA Enable client keep-alive for the service group.
Possible values: YES, NO
TCPB Enable TCP buffering for the service group.
Possible values: YES, NO
CMP Enable compression for the specified service.
Possible values: YES, NO
maxBandwidth Maximum bandwidth, in Kbps, allocated for all the services in the service group. Minimum value: 0 Maximum value: 4294967287
monThreshold Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. Minimum value: 0 Maximum value: 65535
state Initial state of the service group.
Possible values: ENABLED, DISABLED Default value: ENABLED
downStateFlush Flush all active transactions associated with all the services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions.
Possible values: ENABLED, DISABLED Default value: ENABLED
tcpProfileName Name of the TCP profile that contains TCP configuration settings for the service group.
httpProfileName Name of the HTTP profile that contains HTTP configuration settings for the service group.
comment Any information about the service group.
appflowLog Enable logging of AppFlow information for the specified service group.
Possible values: ENABLED, DISABLED Default value: ENABLED
netProfile Network profile for the service group.
autoScale Auto scale option for a servicegroup
Possible values: DISABLED, DNS, POLICY, CLOUD, API Default value: DISABLED
memberPort member port
autoDisablegraceful Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service.
Possible values: YES, NO Default value: NO
autoDisabledelay The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service.
autoDelayedTrofs Indicates graceful movement of IP-Port binding/s to TROFS when IP addresses are removed from DNS response. System will wait for monitor response timeout period before moving to TROFS .
Possible values: YES, NO Default value: NO
monConnectionClose Close monitoring connections by sending the service a connection termination message with the specified bit set.
Possible values: RESET, FIN Default value: NONE
Example
add servicegroup http_svc_group http To add service groups sgrp1, sgrp2 and sgrp3 at one go use the following command: add servicegroup sgrp[1-3] http
stat serviceGroup
Displays configuration statistics of the specified service group or all the service groups configured on the appliance.
Synopsis
stat serviceGroup [
Arguments
serviceGroupName Name of the service group for which to display settings.
detail Specifies detailed output (including more statistics). The output can be quite voluminous. Without this argument, the output will show only a summary.
fullValues Specifies that numbers and strings should be displayed in their full form. Without this option, long strings are shortened and large numbers are abbreviated
ntimes The number of times, in intervals of seven seconds, the statistics should be displayed. Default value: 1 Minimum value: 0
logFile The name of the log file to be used as input.
clearstats Clear the statsistics / counters
Possible values: basic, full
Output
count devno stateflag
Counters
State Current state of the server. There are seven possible values: UP(7), DOWN(1), UNKNOWN(2), BUSY(3), OFS(Out of Service)(4), TROFS(Transition Out of Service)(5), TROFS_DOWN(Down When going Out of Service)(8)
Service type (Type) The service type of this service.Possible values are ADNS, DNS, MYSQL, RTSP, SSL_DIAMETER, ADNS_TCP, DNS_TCP, NNTP, SIP_UDP, SSL_TCP, ANY, FTP, RADIUS, SNMP, TCP, DHCPRA, HTTP, RDP, SSL, TFTP, DIAMETER, MSSQL, RPCSVR, SSL_BRIDGE, UDP
Related Commands
disable serviceGroup
Disables a service group or a member of a service group. To disable a service group, provide only the service group name. To disable only a member of a service group, in addition to the service group name, provide the name of the server that hosts the service, and the port number of the service.
Synopsis
disable serviceGroup
Arguments
serviceGroupName Name of the service group.
serverName Name of the server that hosts the service.
port Port number of the service.
delay Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE).
graceFul Wait for all existing connections to the service to terminate before shutting down the service.
Possible values: YES, NO Default value: NO
Example
disable servicegroup http_svc_group 10.102.27.153 80 -delay 10 To disable multiple servicegroups use the following command: disable servicegroup http_svc_group[1-3] 10.102.27.[153-155] 80 -delay 30
unbind serviceGroup
Unbinds a service or a monitor from a service group.
Synopsis
unbind serviceGroup
Arguments
serviceGroupName Name of the service group.
IP IP address of the server that hosts the service. Mutually exclusive with the Server Name parameter.
serverName Name of the server that hosts the service. Mutually exclusive with the IP Address parameter.
port Port number of the service.
monitorName Name of the monitor to bind to the service group.
Example
unbind servicegroup http_svc_group 10.102.27.153 80 To unbind multiple servers following command can be used: unbind servicegroup http_svc_group 10.102.27.[153-155] 80
rm serviceGroup
Removes a service group.
Synopsis
rm serviceGroup
Arguments
serviceGroupName Name of the service group.
Example
rm servicegroup http_svc_group To remove multiple servicegroups at once, the following command can be used: rm servicegroup http_svc_group[1-3]
unset serviceGroup
Removes the attributes of the specified service group. Attributes for which a default value is available revert to their default values..Refer to the set serviceGroup command for meanings of the arguments.
Synopsis
unset serviceGroup
Example
unset servicegroup http_svc_group -maxClient