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_name() functions print values from the data structures returned by the scds_get_name() functions. The scds_free_name() functions free the memory allocated by the scds_get_name() functions.
Functions that handle host names include:
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() or scds_get_rs_hostnames().
scds_free_net_list(3HA) – free the memory allocated by scds_get_rg_hostnames() or scds_get_rs_hostnames().
Functions that handle port lists include:
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().
Functions that handle network addresses include:
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.