ILB Command and Subcommands

You can use ilbadm and its subcommands to manipulate the load-balancing rules. For
more detailed information about ilbadm subcommands, refer to the ilbadm(1M) man page.

Table 26-2 ILB Commands and Subcommands Used to Manipulate the Load-balancing Rules

ILB Command

Description

ilbadm create-rule

Creates a
rule name with the given characteristics.

ilbadm show-rule

Displays characteristics of specified rules or displays all
the rules if no rules are specified.

ilbadm delete-rule

Removes all information pertaining to a rule name. If
name does not exist, this subcommand fails.

ilbadm enable-rule

Enables a named rule, or all
the rules if no names are specified.

ilbadm disable-rule

Disables a named rule or all
the rules if no names are specified.

ilbadm show-statistics

Shows statistics. For example, -t with
this subcommand includes a time stamp with every header.

ilbadm show-hc-result

Shows the health check
results for the servers that are associated with the specified name of the
rule rule-name. If rule-name is not specified, the health check results of
servers for all the rules are displayed.

ilbadm show-nat

Displays NAT table information.

ilbadm create-servergroup

Creates a server
group. Additional servers can be added by using ilbadm add-server.

ilbadm delete-servergroup

Deletes a server group.

ilbadm show-servergroup

Lists a server group or lists all the server groups if no
server group is specified.

ilbadm enable-server

Enables a disabled server.

ilbadm disable-server

Disables the specified servers.

ilbadm add-server

Adds the
specified servers to server groups.

ilbadm show-server

Displays servers associated with the named
rules or displays all the servers if a rule name is not specified.

ilbadm remove-server

Removes servers from a server group.

ilbadm create-healthcheck

Sets up health check information
that can be used to set up rules.

ilbadm show-persist

Displays the session persistence
mapping table.

ilbadm export-config filename

Exports the existing configuration file in a format suitable
for importing when needed by using ilbadm import. If filename is not specified, then ilbadm export
writes to stdout.

ilbadm import-config -p filename

Imports a file and replaces the existing configuration
with the contents of this imported file. If filename is not specified, then ilbadm import
reads from stdin.