1DPM_PING(3)                  DPM Library Functions                 DPM_PING(3)
2
3
4

NAME

6       dpm_ping  -  check if Disk Pool Manager is alive and return its version
7       number
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "dpm_api.h"
12
13       int dpm_ping (char *server, char *info)
14

DESCRIPTION

16       dpm_ping checks if the Disk Pool Manager is alive and returns its  ver‐
17       sion number.
18

OPTIONS

20       server specifies the Disk Pool Manager hostname.  If NULL, the DPM_HOST
21              environment variable is used.
22
23       info   points at a buffer to receive  the  information  (currently  the
24              version  number).   The  buffer  must be at least 256 characters
25              long.
26

RETURN VALUE

28       This routine returns 0 if the operation was successful  or  -1  if  the
29       operation failed. In the latter case, serrno is set appropriately.
30

ERRORS

32       EFAULT       info is a NULL pointer.
33
34       SENOSHOST    Host unknown.
35
36       SENOSSERV    Service unknown.
37
38       SECOMERR     Communication error.
39
40       EDPMNACT     Disk Pool Manager is not running or is being shutdown.
41
42
43
44LCG                      $Date: 2007/05/09 06:38:31 $              DPM_PING(3)
Impressum