The functions listed in this section retrieve, print, and free network resources used by resources and resource groups. The scds_get_* functions in this section provide a convenient way of retrieving network resources without querying specific properties such as Network_resources_used, and Port_list using the RMAPI functions. The scds_print_* functions print values from the data structures returned by the scds_get_* functions. The scds_free_* functions free the memory allocated by the scds_get_* functions.
The following functions are concerned with hostnames.
scds_get_rg_hostnames(3HA) - retrieve a list of hostnames used by the network resources in a resource group.
scds_get_rs_hostnames(3HA) - retrieve a list of hostnames used by the resource.
scds_print_net_list(3HA) - print the contents of the list of hostnames returned by scds_get_rg_hostnames(3HA) or scds_get_rs_hostnames(3HA).
scds_free_net_list(3HA) - free the memory allocated by scds_get_rg_hostnames(3HA) or scds_get_rs_hostnames(3HA).
The following functions are concerned with port lists.
scds_get_port_list(3HA) - retrieve a list of port-protocol pairs used by a resource.
scds_print_port_list(3HA) - print the contents of the list of port-protocol pairs returned by scds_get_port_list.
scds_free_port_list(3HA) - free the memory allocated by scds_get_port_list.
The following functions are concerned with network addresses.
scds_get_netaddr_list(3HA) - retrieve a list of network addresses used by a resource.
scds_print_netaddr_list(3HA) - print the contents of the list of network addresses returned by scds_get_netaddr_list.
scds_free_netaddr_list(3HA) - free the memory allocated by scds_get_netaddr_list.