SAM_REGISTER(3) Corosync Cluster Engine Programmer's Manual SAM_REGISTER(3)NAME
sam_rehister - Register component for health checking
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_register (unsigned int *instance_id);
DESCRIPTION
The sam_register function is used to register a process for healthchecking. If recovery policy is set to SAM_RECOVERY_POLICY_RESTART and
recovery action will be taken, the new process instance will begin execution at the next code line after this function is called.
This function can be called only once and SAM must be initialized by sam_initialize(3) function.
The instance_id argument is a pointer to a value storing the current iteration instance. If this parameter is NULL, no instance_id is
returned. and then, no instance_id will be returned. This value starts at 0 for the first iteration instance, and increases by 1 each time
a recovery restart is executed. After reaching MAX_INT, the instance_id will reset to 0.
The placement of this function is important because after it is called, the process id will change.
After registration, event driven health checking is not running.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
health checking was not started by calling sam_start(3) function.
CS_ERR_LIBRARY
internal library call failed. This can be one of pipe creation or fork. It's possible to get more information from errno.
SEE ALSO sam_start(3), sam_initialize(3), sam_hc_callback_register(3)corosync Man Page 12/01/2009 SAM_REGISTER(3)
Check Out this Related Man Page
SAM_START(3) Corosync Cluster Engine Programmer's Manual SAM_START(3)NAME
sam_start - Start health checking
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_start (void);
DESCRIPTION
The sam_start function is used to start health checking of application. After calling this function, the active process needs to send
healthchecks within the registered time interval by calling sam_hc_send(3). If event driven healthchecking is configured by calling
sam_register(3), an internal thread will be created and send health check confirmations four times per time_interval.
Application must be registered by calling sam_register(3) before this function can be called.
An application can always stop health checking by calling the sam_stop(3) function.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
component was not registered by calling sam_register(3) function.
SEE ALSO sam_hc_send(3), sam_stop(3), sam_register(3), sam_hc_callback_register(3)corosync Man Page 12/01/2009 SAM_START(3)
Dear guys
I am thanks for all to provide us these important subjects, which we need it in our work as system administrator, or technical support. As you know, In the Data center (disaster recovery) There are systems working under multi operating systems such as (AIX,HP Unix , sun... (1 Reply)
I have a 7029-6C3 that was running AIX 5.2; I tried to update to 5.2.10.5, rebooted, and the box went south. Upon further digging through the h/w logs, I found the error "Service Processor Firmware Failure"
I can't get the machine to boot - not even to CD. How can I recover from this? Or can... (10 Replies)
Hi All,
I would like to know if there is a downloadable AIX health check script available from IBM that would print a report of a servers health status.
I've been working on a number of Sun Solaris servers and Sun provide a sun checkup script which can give you an ORI figure as well as a list... (3 Replies)
I'm sorting out the disaster recovery plan for a critical server. It's a Dell PowerEdge 2850 running Openserver 5.0.6a.
We have a disaster recovery agreement with HP and they have just confirmed that in the event of a total disaster such as the server being totally wiped out, they would NOT... (2 Replies)
Dear all,
There wasn't any monitoring on our server except on the filesystem.
Therefore, I was wondering anything i should do on a daily basis to check on the server's status, health, hardware, or any other thing as a disaster prevention? Also, what command i should use to do that?
... (2 Replies)
hi all, and pludi:
as command hpasmcli for linux server to check health, any such a same command to check hp server using windows server 2003 OS health ? (0 Replies)
I am constantly getting request to run reports on our AIX server for system health (cpu, io, memory, etc) when users experience performance issues. We are using SolarWinds to monitor system health and it works great for cpu and disk space; however, I cant seem to get memory and io to work... (5 Replies)
Hi
Could any one explain the meaning & purpose of below mention parameters in layman term. Suppose if we set below paramet what will happen.
error-reset-recovery=boot
error-reset-recovery=sync (3 Replies)
Hi,
I have iPlanet 7.0 process running on Solaris system
SunOS mymac15.10 Generic_150400-59 sun4v sparc sun4v.
The link here suggests to use the below command to get process runtime details / health inorder to understand if the iPlanet process is hung or good.
/usr/bin/ps -o "pid ppid... (4 Replies)