Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sam_register(3) [debian man page]

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)
Man Page

11 More Discussions You Might Find Interesting

1. AIX

please help !!!

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)
Discussion started by: magasem
1 Replies

2. UNIX for Dummies Questions & Answers

health checks

Hello Anyone please help me with a health check script on HP-UX. (1 Reply)
Discussion started by: mahlathini
1 Replies

3. AIX

P-Series (7029-6C3) firware recovery?

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)
Discussion started by: thomn8r
10 Replies

4. AIX

AIX Health Check

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)
Discussion started by: backslash
3 Replies

5. SCO

Recovering OpenServer 5.0.6 onto different hardware

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)
Discussion started by: mmcardle
2 Replies

6. Solaris

Monitor server's health

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)
Discussion started by: beginningDBA
2 Replies

7. Red Hat

hp support package issue

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)
Discussion started by: maxlee24
0 Replies

8. AIX

AIX Memory & DISK IO

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)
Discussion started by: gmendiola
5 Replies

9. Solaris

Meaning of error-reset-recovery parameter in OK

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)
Discussion started by: sb200
3 Replies

10. UNIX for Advanced & Expert Users

Is possible to recovery a deleted file in AIX?

is it possible to recovery a deleted file in AIX? (2 Replies)
Discussion started by: fiyas
2 Replies

11. Shell Programming and Scripting

Need iplanet process health runtime details

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)
Discussion started by: mohtashims
4 Replies