2
* hbagent.h: heartbeat snmp subagnet header file.
4
* Copyright (c) 2004 Intel Corp.
6
* Author: Zou Yixiong (yixiong.zou@intel.com)
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
#ifndef __hasubagent_h__
25
#define __hasubagent_h__
34
#include "snmp-config-resolve.h"
35
#include <clplumbing/cl_uuid.h>
37
#define CACHE_TIME_OUT 5
38
#define LHAAGENTID "lha-snmpagent"
39
#define DEFAULT_TIME_OUT 5 /* default timeout value for snmp in sec. */
41
typedef enum lha_group {
50
typedef enum lha_attribute {
51
/* LHA_CLUSTERINFO stats */
57
/* LHA_RESOURCEINFO stats */
62
int get_int_value(lha_group_t group, lha_attribute_t attr, size_t index, uint32_t * value);
64
int get_str_value(lha_group_t group, lha_attribute_t attr, size_t index, char * * value);
66
int clusterinfo_get_int_value(lha_attribute_t attr, size_t index, uint32_t * value);
68
int rsinfo_get_int_value(lha_attribute_t attr, size_t index, uint32_t * value);
71
/* LHAHeartbeatConfigInfo partial-mode */
72
typedef enum lha_hbconfig {
87
int hbconfig_get_str(lha_hbconfig_t attr_no, char * * value);
90
GPtrArray * get_hb_info(lha_group_t group);
116
#endif /* __hasubagent_h__ */