Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Reference Manual Oracle Solaris Cluster 3.3 3/13 |
scds_get_current_method_name(3HA)
scds_get_resource_group_name(3HA)
scds_get_resource_type_name(3HA)
scds_get_rg_hostnames_zone(3HA)
scha_cluster_getlogfacility(3HA)
scha_cluster_getnodename_zone(3HA)
scha_resourcegroup_get_zone(3HA)
scha_resourcegroup_open_zone(3HA)
scha_resource_setstatus_zone(3HA)
scha_resourcetype_get_zone(3HA)
- retrieve the name of a zone on whose behalf a method is running
cc [flags…] -I /usr/cluster/include file -L /usr/cluster/lib -l dsdev #include <rgm/libdsdev.h> const char *scds_get_zone_name(scds_handle_t handle);
The scds_get_zone_name() function returns a pointer to a character string. If the following conditions are met, this character string contains the name of the zone on the local node in which a global_zone resource is configured:
The Global_zone resource type property is set to TRUE.
See the rt_properties(5) man page for information about the Global_zone resource type property.
The resource group is configured in a non-global zone, either in the global cluster or in a zone cluster.
In all other cases, including the following, the character string is NULL:
The resource group is configured in the global zone.
The Global_zone resource type property is set to FALSE, or the Global_zone_override resource property is set to FALSE.
To obtain the name of the zone in which a method is actually executing, use the zonename command. See the zonename(1) man page.
The pointer to the character string points to memory that belongs to the Data Service Development Library (DSDL). Do not modify this memory. A call to scds_close() invalidates this pointer.
The following parameters are supported:
The handle that is returned from scds_initialize(3HA).
The function succeeded.
See scha_calls(3HA) for a description of other error codes.
Include file
Library
See the attributes(5) man page for descriptions of the following attributes:
|
zonename(1), scds_close(3HA), scds_initialize(3HA), scha_calls(3HA), attributes(5), rt_properties(5)