11-07-2001
My answer was deleted [I don't know why] therefore I write it again.
SAM is System Administration Manager and you can config all system with it.
In kernel configuration, you have to increase variable "max_files_open" [or any simillar name - I don't remember] or [better way] incerase macro max_users.
SAM will ask you for reboot ...
8 More Discussions You Might Find Interesting
1. HP-UX
hi, any idea how to get more info on the usage, unix equivalent of sam in hp-ux? thanks (7 Replies)
Discussion started by: yls177
7 Replies
2. UNIX for Dummies Questions & Answers
On running ‘Disk Devices’ tools under ‘Disks and File Systems’ option of System Administration Manager (SAM) in our UNIX Server (HP 9000 running HPUX B.11.11 U) a warning message appeared. The message that appeared reads as follows
“The Logical Volume Manager shows this device file,... (3 Replies)
Discussion started by: mhbd
3 Replies
3. UNIX for Advanced & Expert Users
I am having trouble getting restricted SAM to work by allocating Privileges to a "group". I can make it work by allocaing to the userid's, but would preferre to use the "group" option.
Running B.11.11
Tried the following....
1) Created a user group in /etc/group first
2) Used the... (1 Reply)
Discussion started by: Andrek
1 Replies
4. HP-UX
Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my... (5 Replies)
Discussion started by: paqman
5 Replies
5. HP-UX
Any ideas on why SAM would take so long to load and initialize? (4 Replies)
Discussion started by: csaunders
4 Replies
6. HP-UX
Hi there,
I am building an HP UX 11 server (first time) and I'm trying to mount the CDROM with SAM. What am I supposed to enter in the "mount directory" box?
Also, I can't ftp to the server due to a logon failure. I used root id and password. I deleted the file in the /etc/ftpd directory but... (8 Replies)
Discussion started by: rbglo
8 Replies
7. HP-UX
Good afternoon.
I am a newbie.
We just had a potentially big problem (negated to having good backups).
Basically, there is an option in SAM, to delete all the data from the system that a user ever created.
Lo and behold, silly me, I choose that option, and all sorts of needed files... (5 Replies)
Discussion started by: instant000
5 Replies
8. HP-UX
I've just been on an HP Training Course for HPUXv11.31 and found out about the gui / web for SMH. I never did a course on HP11v23. On our two servers here in the UK that run 11.23 I'm pretty sure that when I typed in "sam" on the command line it went to a sort of smh. (There was a message saying... (2 Replies)
Discussion started by: markp1965
2 Replies
LEARN ABOUT CENTOS
sam_hc_callback_register
SAM_HC_CALLBACK_REGISTER(3) Corosync Cluster Engine Programmer's Manual SAM_HC_CALLBACK_REGISTER(3)
NAME
sam_hc_callback_register - Register health check callback
SYNOPSIS
#include <corosync/sam.h>
cs_error_t sam_hc_callback_register (sam_hc_callback_t cb);
DESCRIPTION
The sam_hc_callback_register function is used to register a user provided healthcheck callback. After calling of this function, the SAM is
switched from application driven healthchecking to event driven healthchecking. In this mode, sam_hc_send(3) does not need to be executed.
The parameter cb is callback function of type sam_hc_callback_t defined as:
typedef int (*sam_hc_callback_t)(void);
This function will be regulargly called and must return 0 if the process is functioning normally, or -1 if the process is executing abnor-
mally. When -1 is returned, the SAM server execute the registered recovery policy.
A value of NULL can be passed into this function to switch into application driven healthchecking. cb to NULL.
RETURN VALUE
This call return CS_OK value if successful, otherwise and error is returned.
ERRORS
CS_ERR_BAD_HANDLE
SAM was not initialized and registered or health checking is in running state
CS_ERR_LIBRARY
internal library call failed. This can occur during fork() or pipe () system calls and the errno variable can be read to retrieve
more information.
SEE ALSO
sam_start(3), sam_stop(3), sam_hc_send(3), sam_register(3),
CS_ERR_TRY_AGAIN Resource temporarily unavailable
CS_ERR_INVALID_PARAM Invalid argument
CS_ERR_ACCESS Permission denied
CS_ERR_LIBRARY The connection failed
CS_ERR_INTERRUPT System call inturrupted by a signal
CS_ERR_NOT_SUPPORTED The requested protocol/functuality not supported
CS_ERR_MESSAGE_ERROR Incorrect auth message received
CS_ERR_NO_MEMORY Not enough memory to completed the requested task
corosync Man Page 12/01/2009 SAM_HC_CALLBACK_REGISTER(3)