25 #ifndef _agentpp_config_mib_h
26 #define _agentpp_config_mib_h
35 #define oidAgentppCfgLogLevelError "1.3.6.1.4.1.4976.3.3.1.1.1.0"
36 #define oidAgentppCfgLogLevelWarning "1.3.6.1.4.1.4976.3.3.1.1.2.0"
37 #define oidAgentppCfgLogLevelEvent "1.3.6.1.4.1.4976.3.3.1.1.3.0"
38 #define oidAgentppCfgLogLevelInfo "1.3.6.1.4.1.4976.3.3.1.1.4.0"
39 #define oidAgentppCfgLogLevelDebug "1.3.6.1.4.1.4976.3.3.1.1.5.0"
40 #define oidAgentppCfgSecSrcAddrValidation "1.3.6.1.4.1.4976.3.3.1.2.1.0"
43 #define oidAgentppCfgStoragePath "1.3.6.1.4.1.4976.3.3.1.3.1.1.2"
44 #define colAgentppCfgStoragePath "2"
45 #define oidAgentppCfgStorageFormat "1.3.6.1.4.1.4976.3.3.1.3.1.1.3"
46 #define colAgentppCfgStorageFormat "3"
47 #define oidAgentppCfgStorageLastStore "1.3.6.1.4.1.4976.3.3.1.3.1.1.4"
48 #define colAgentppCfgStorageLastStore "4"
49 #define oidAgentppCfgStorageLastRestore "1.3.6.1.4.1.4976.3.3.1.3.1.1.5"
50 #define colAgentppCfgStorageLastRestore "5"
51 #define oidAgentppCfgStorageOperation "1.3.6.1.4.1.4976.3.3.1.3.1.1.6"
52 #define colAgentppCfgStorageOperation "6"
53 #define oidAgentppCfgStorageStorageType "1.3.6.1.4.1.4976.3.3.1.3.1.1.7"
54 #define colAgentppCfgStorageStorageType "7"
55 #define oidAgentppCfgStorageStatus "1.3.6.1.4.1.4976.3.3.1.3.1.1.8"
56 #define colAgentppCfgStorageStatus "8"
60 #define oidAgentppCfgStorageEntry "1.3.6.1.4.1.4976.3.3.1.3.1.1"
61 #define nAgentppCfgStoragePath 0
62 #define cAgentppCfgStoragePath 2
63 #define nAgentppCfgStorageFormat 1
64 #define cAgentppCfgStorageFormat 3
65 #define nAgentppCfgStorageLastStore 2
66 #define cAgentppCfgStorageLastStore 4
67 #define nAgentppCfgStorageLastRestore 3
68 #define cAgentppCfgStorageLastRestore 5
69 #define nAgentppCfgStorageOperation 4
70 #define cAgentppCfgStorageOperation 6
71 #define nAgentppCfgStorageStorageType 5
72 #define cAgentppCfgStorageStorageType 7
73 #define nAgentppCfgStorageStatus 6
74 #define cAgentppCfgStorageStatus 8
82 #ifdef AGENTPP_NAMESPACE
94 OperationTask(
int op, agentppCfgStorageOperation* source) {
98 virtual ~OperationTask() { }
103 agentppCfgStorageOperation* initiator;
131 agentppCfgSecSrcAddrValidation();
132 virtual ~agentppCfgSecSrcAddrValidation();
134 static agentppCfgSecSrcAddrValidation* instance;
136 virtual void get_request(
Request*,
int);
137 virtual long get_state();
138 virtual void set_state(
long);
139 virtual int set(
const Vbx&);
140 virtual bool value_ok(
const Vbx&);
144 e_notAvailable = 3 };
167 agentpp_config_mib();
168 virtual ~agentpp_config_mib() { }
176 agentpp_config_mib(
Mib*);
186 agentppCfgLogLevel(
int,
const Oidx&);
187 virtual ~agentppCfgLogLevel();
189 virtual long get_state();
190 virtual void set_state(
long);
191 virtual void get_request(
Request*,
int);
192 virtual bool value_ok(
const Vbx&);
193 virtual int commit_set_request(
Request*,
int);
194 virtual int undo_set_request(
Request*,
int&);
217 agentppCfgStoragePath(
const Oidx&);
218 virtual ~agentppCfgStoragePath();
221 virtual void get_request(
Request*,
int);
222 virtual NS_SNMP OctetStr get_state();
223 virtual void set_state(
const NS_SNMP OctetStr&);
224 virtual int prepare_set_request(
Request*,
int&);
227 virtual int commit_set_request(
Request*,
int);
247 agentppCfgStorageFormat(
const Oidx&);
248 virtual ~agentppCfgStorageFormat();
251 virtual void get_request(
Request*,
int);
252 virtual long get_state();
253 virtual void set_state(
long);
254 virtual int prepare_set_request(
Request*,
int&);
255 virtual bool value_ok(
const Vbx&);
288 friend class OperationTask;
290 agentppCfgStorageOperation(
const Oidx&);
291 virtual ~agentppCfgStorageOperation();
294 virtual void get_request(
Request*,
int);
295 virtual long get_state();
296 virtual void set_state(
long);
297 virtual int set(
const Vbx&);
298 virtual int prepare_set_request(
Request*,
int&);
299 virtual bool value_ok(
const Vbx&);
307 virtual bool is_volatile() {
return TRUE; }
310 OperationTask* operationTask;
329 agentppCfgStorageStorageType(
const Oidx&);
330 virtual ~agentppCfgStorageStorageType();
333 virtual void get_request(
Request*,
int);
334 virtual long get_state();
335 virtual void set_state(
long);
336 virtual int set(
const Vbx&);
337 virtual int prepare_set_request(
Request*,
int&);
363 agentppCfgStorageStatus(
const Oidx&);
364 virtual ~agentppCfgStorageStatus();
367 virtual long get_state();
368 virtual void set_state(
long);
369 virtual int set(
const Vbx&);
370 virtual int prepare_set_request(
Request*,
int&);
398 agentppCfgStorageEntry();
399 virtual ~agentppCfgStorageEntry();
401 static agentppCfgStorageEntry* instance;
403 virtual void get_request(
Request*,
int);
404 virtual int prepare_set_request(
Request*,
int&);
405 virtual int is_transition_ok(
MibTable*,
407 const Oidx&,
int,
int);
417 void set_mib(
Mib* m);
418 Mib* get_mib() {
return mib; }
424 virtual void reset() { }
432 void set_secure_paths(
bool b) { securePaths = b;}
440 bool is_secure_paths() {
return securePaths; }
449 #ifdef AGENTPP_NAMESPACE