Knowledge Center Contents Previous Next |
ls_unlockhost()
Unlocks a locked local host.
DESCRIPTION
ls_unlockhost() unlocks a host locked by ls_lockhost(). On success, ls_unlockhost() changes the status of the local host to indicate that it is no longer locked by the user.
Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.
SYNOPSIS
#include <lsf/lsf.h> int ls_unlockhost(void)RETURN VALUES
integer:0
The function was successful.
integer:-1
The function failed.
ERRORS
If the function fails, lserrno is set to indicate the error. In particular, ls_unlockhost() sets lserrno to LSE_LIM_NLOCKED if the host is not locked.
SEE ALSO
Related APIs:
ls_limcontrol() - shuts down or reboots a host's LIM
ls_lockhost() - locks a host
Equivalent line command
lsadmin limunlock
Files:
${LSF_ENVDIR-/etc}/lsf.conf
$LSF_CONFDIR/lsf.shared
$LSF_CONFDIR/lsf.cluster.cluster_name
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next |