implemented SNMP target sync with agent for cached DCIs; GUID functions refactoring...
[public/netxms.git] / include / nms_cscp.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2015 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU Lesser General Public License as published
7 ** by the Free Software Foundation; either version 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU Lesser General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** File: nms_cscp.h
20 **
21 **/
22
23 #ifndef _nms_cscp_h_
24 #define _nms_cscp_h_
25
26 /**
27 * Constants
28 */
29 #define NXCP_VERSION 3
30
31 #define SERVER_LISTEN_PORT_FOR_CLIENTS 4701
32 #define SERVER_LISTEN_PORT_FOR_MOBILES 4747
33 #define MAX_DCI_STRING_VALUE 256
34 #define CLIENT_CHALLENGE_SIZE 256
35 #define NXCP_HEADER_SIZE 16
36 #define NXCP_ENCRYPTION_HEADER_SIZE 16
37 #define NXCP_EH_UNENCRYPTED_BYTES 8
38 #define NXCP_EH_ENCRYPTED_BYTES (NXCP_ENCRYPTION_HEADER_SIZE - NXCP_EH_UNENCRYPTED_BYTES)
39 #ifdef __64BIT__
40 #define PROXY_ENCRYPTION_CTX ((NXCPEncryptionContext *)_ULL(0xFFFFFFFFFFFFFFFF))
41 #else
42 #define PROXY_ENCRYPTION_CTX ((NXCPEncryptionContext *)0xFFFFFFFF)
43 #endif
44
45 #ifndef EVP_MAX_IV_LENGTH
46 #define EVP_MAX_IV_LENGTH 16
47 #endif
48
49 #define RECORD_ORDER_NORMAL 0
50 #define RECORD_ORDER_REVERSED 1
51
52 #define NXCP_TEMP_BUF_SIZE 65536
53
54 /**
55 * Ciphers
56 */
57 #define NXCP_CIPHER_AES_256 0
58 #define NXCP_CIPHER_BLOWFISH_256 1
59 #define NXCP_CIPHER_IDEA 2
60 #define NXCP_CIPHER_3DES 3
61 #define NXCP_CIPHER_AES_128 4
62 #define NXCP_CIPHER_BLOWFISH_128 5
63
64 #define NXCP_SUPPORT_AES_256 0x01
65 #define NXCP_SUPPORT_BLOWFISH_256 0x02
66 #define NXCP_SUPPORT_IDEA 0x04
67 #define NXCP_SUPPORT_3DES 0x08
68 #define NXCP_SUPPORT_AES_128 0x10
69 #define NXCP_SUPPORT_BLOWFISH_128 0x20
70
71 #ifdef __HP_aCC
72 #pragma pack 1
73 #else
74 #pragma pack(1)
75 #endif
76
77 /**
78 * Message field flags
79 */
80 #define NXCP_MFF_SIGNED 0x01
81
82 /**
83 * Address family ID for NXCP
84 */
85 #define NXCP_AF_INET 0
86 #define NXCP_AF_INET6 1
87
88 /**
89 * NXCP data field structure
90 */
91 typedef struct
92 {
93 UINT32 fieldId; // Field identifier
94 BYTE type; // Data type
95 BYTE flags; // flags (may by type-dependent)
96 WORD int16;
97 union
98 {
99 INT32 int32;
100 INT64 int64;
101 UINT32 uint32;
102 UINT64 uint64;
103 double real;
104 struct
105 {
106 UINT32 length;
107 WORD value[1]; // actual size depends on length value
108 } string;
109 struct
110 {
111 union
112 {
113 UINT32 v4;
114 BYTE v6[16];
115 } addr;
116 BYTE family;
117 BYTE maskBits;
118 BYTE padding[6];
119 } inetaddr;
120 } data;
121 } NXCP_MESSAGE_FIELD;
122
123 #define df_int16 int16
124 #define df_int32 data.int32
125 #define df_uint32 data.uint32
126 #define df_int64 data.int64
127 #define df_uint64 data.uint64
128 #define df_real data.real
129 #define df_string data.string
130 #define df_inetaddr data.inetaddr
131
132 /**
133 * Message structure
134 */
135 typedef struct
136 {
137 UINT16 code; // Message (command) code
138 UINT16 flags; // Message flags
139 UINT32 size; // Message size (including header) in bytes
140 UINT32 id; // Unique message identifier
141 UINT32 numFields; // Number of fields in message
142 NXCP_MESSAGE_FIELD fields[1]; // Data fields - actual length depends on value in numFields
143 } NXCP_MESSAGE;
144
145 /**
146 * Encrypted payload header
147 */
148 typedef struct
149 {
150 UINT32 dwChecksum;
151 UINT32 dwReserved; // Align to 8-byte boundary
152 } NXCP_ENCRYPTED_PAYLOAD_HEADER;
153
154 /**
155 * Encrypted message structure
156 */
157 typedef struct
158 {
159 WORD code; // Should be CMD_ENCRYPTED_MESSAGE
160 BYTE padding; // Number of bytes added to the end of message
161 BYTE reserved;
162 UINT32 size; // Size of encrypted message (including encryption header and padding)
163 BYTE data[1]; // Encrypted payload
164 } NXCP_ENCRYPTED_MESSAGE;
165
166 /**
167 * DCI data header structure
168 */
169 typedef struct
170 {
171 UINT32 dciId;
172 UINT32 numRows;
173 UINT32 dataType;
174 UINT32 padding;
175 } DCI_DATA_HEADER;
176
177 /**
178 * DCI data row structure
179 */
180 typedef struct
181 {
182 UINT32 timeStamp;
183 union
184 {
185 UINT32 int32;
186 UCS2CHAR string[MAX_DCI_STRING_VALUE];
187 struct
188 {
189 UINT32 padding;
190 union
191 {
192 UINT64 int64;
193 double real;
194 } v64;
195 } ext;
196 } value;
197 } DCI_DATA_ROW;
198
199 #if defined(__HP_aCC)
200 #pragma pack
201 #elif defined(_AIX) && !defined(__GNUC__)
202 #pragma pack(pop)
203 #else
204 #pragma pack()
205 #endif
206
207 /**
208 * Data types
209 */
210 #define NXCP_DT_INT32 0
211 #define NXCP_DT_STRING 1
212 #define NXCP_DT_INT64 2
213 #define NXCP_DT_INT16 3
214 #define NXCP_DT_BINARY 4
215 #define NXCP_DT_FLOAT 5
216 #define NXCP_DT_INETADDR 6
217
218 /**
219 * Message flags
220 */
221 #define MF_BINARY 0x0001
222 #define MF_END_OF_FILE 0x0002
223 #define MF_DONT_ENCRYPT 0x0004
224 #define MF_END_OF_SEQUENCE 0x0008
225 #define MF_REVERSE_ORDER 0x0010
226 #define MF_CONTROL 0x0020
227
228 /**
229 * Message (command) codes
230 */
231 #define CMD_LOGIN 0x0001
232 #define CMD_LOGIN_RESP 0x0002
233 #define CMD_KEEPALIVE 0x0003
234 #define CMD_OPEN_HELPDESK_ISSUE 0x0004
235 #define CMD_GET_OBJECTS 0x0005
236 #define CMD_OBJECT 0x0006
237 #define CMD_DELETE_OBJECT 0x0007
238 #define CMD_MODIFY_OBJECT 0x0008
239 #define CMD_OBJECT_LIST_END 0x0009
240 #define CMD_OBJECT_UPDATE 0x000A
241 #define CMD_GET_EVENTS 0x000B
242 #define CMD_EVENTLOG_RECORDS 0x000C
243 #define CMD_GET_CONFIG_VARLIST 0x000D
244 #define CMD_SET_CONFIG_VARIABLE 0x000E
245 #define CMD_GET_OBJECT_TOOLS 0x000F
246 #define CMD_EXECUTE_ACTION 0x0010
247 #define CMD_DELETE_CONFIG_VARIABLE 0x0011
248 #define CMD_NOTIFY 0x0012
249 #define CMD_TRAP 0x0013
250 #define CMD_OPEN_EPP 0x0014
251 #define CMD_CLOSE_EPP 0x0015
252 #define CMD_SAVE_EPP 0x0016
253 #define CMD_EPP_RECORD 0x0017
254 #define CMD_EVENT_DB_UPDATE 0x0018
255 #define CMD_TRAP_CFG_UPDATE 0x0019
256 #define CMD_SET_EVENT_INFO 0x001A
257 #define CMD_EVENT_DB_RECORD 0x001B
258 #define CMD_LOAD_EVENT_DB 0x001C
259 #define CMD_REQUEST_COMPLETED 0x001D
260 #define CMD_LOAD_USER_DB 0x001E
261 #define CMD_USER_DATA 0x001F
262 #define CMD_GROUP_DATA 0x0020
263 #define CMD_USER_DB_EOF 0x0021
264 #define CMD_UPDATE_USER 0x0022
265 #define CMD_DELETE_USER 0x0023
266 #define CMD_CREATE_USER 0x0024
267 #define CMD_LOCK_USER_DB 0x0025
268 #define CMD_UNLOCK_USER_DB 0x0026
269 #define CMD_USER_DB_UPDATE 0x0027
270 #define CMD_SET_PASSWORD 0x0028
271 #define CMD_GET_NODE_DCI_LIST 0x0029
272 #define CMD_NODE_DCI 0x002A
273 #define CMD_GET_LOG_DATA 0x002B
274 #define CMD_DELETE_NODE_DCI 0x002C
275 #define CMD_MODIFY_NODE_DCI 0x002D
276 #define CMD_UNLOCK_NODE_DCI_LIST 0x002E
277 #define CMD_SET_OBJECT_MGMT_STATUS 0x002F
278 #define CMD_CREATE_NEW_DCI 0x0030
279 #define CMD_GET_DCI_DATA 0x0031
280 #define CMD_DCI_DATA 0x0032
281 #define CMD_GET_MIB_TIMESTAMP 0x0033
282 #define CMD_GET_MIB 0x0034
283 #define CMD_TEST_DCI_TRANSFORMATION 0x0035
284 #define CMD_GET_JOB_LIST 0x0036
285 #define CMD_CREATE_OBJECT 0x0037
286 #define CMD_GET_EVENT_NAMES 0x0038
287 #define CMD_EVENT_NAME_LIST 0x0039
288 #define CMD_BIND_OBJECT 0x003A
289 #define CMD_UNBIND_OBJECT 0x003B
290 #define CMD_UNINSTALL_AGENT_POLICY 0x003C
291 #define CMD_OPEN_SERVER_LOG 0x003D
292 #define CMD_CLOSE_SERVER_LOG 0x003E
293 #define CMD_QUERY_LOG 0x003F
294 #define CMD_AUTHENTICATE 0x0040
295 #define CMD_GET_PARAMETER 0x0041
296 #define CMD_GET_LIST 0x0042
297 #define CMD_ACTION 0x0043
298 #define CMD_GET_CURRENT_USER_ATTR 0x0044
299 #define CMD_SET_CURRENT_USER_ATTR 0x0045
300 #define CMD_GET_ALL_ALARMS 0x0046
301 #define CMD_GET_ALARM_COMMENTS 0x0047
302 #define CMD_ACK_ALARM 0x0048
303 #define CMD_ALARM_UPDATE 0x0049
304 #define CMD_ALARM_DATA 0x004A
305 #define CMD_DELETE_ALARM 0x004B
306 #define CMD_ADD_CLUSTER_NODE 0x004C
307 #define CMD_GET_POLICY_INVENTORY 0x004D
308 #define CMD_LOAD_ACTIONS 0x004E
309 #define CMD_ACTION_DB_UPDATE 0x004F
310 #define CMD_MODIFY_ACTION 0x0050
311 #define CMD_CREATE_ACTION 0x0051
312 #define CMD_DELETE_ACTION 0x0052
313 #define CMD_ACTION_DATA 0x0053
314 #define CMD_GET_CONTAINER_CAT_LIST 0x0054
315 #define CMD_CONTAINER_CAT_DATA 0x0055
316 #define CMD_DELETE_CONTAINER_CAT 0x0056
317 #define CMD_CREATE_CONTAINER_CAT 0x0057
318 #define CMD_MODIFY_CONTAINER_CAT 0x0058
319 #define CMD_POLL_NODE 0x0059
320 #define CMD_POLLING_INFO 0x005A
321 #define CMD_COPY_DCI 0x005B
322 #define CMD_WAKEUP_NODE 0x005C
323 #define CMD_DELETE_EVENT_TEMPLATE 0x005D
324 #define CMD_GENERATE_EVENT_CODE 0x005E
325 #define CMD_FIND_NODE_CONNECTION 0x005F
326 #define CMD_FIND_MAC_LOCATION 0x0060
327 #define CMD_CREATE_TRAP 0x0061
328 #define CMD_MODIFY_TRAP 0x0062
329 #define CMD_DELETE_TRAP 0x0063
330 #define CMD_LOAD_TRAP_CFG 0x0064
331 #define CMD_TRAP_CFG_RECORD 0x0065
332 #define CMD_QUERY_PARAMETER 0x0066
333 #define CMD_GET_SERVER_INFO 0x0067
334 #define CMD_SET_DCI_STATUS 0x0068
335 #define CMD_FILE_DATA 0x0069
336 #define CMD_TRANSFER_FILE 0x006A
337 #define CMD_UPGRADE_AGENT 0x006B
338 #define CMD_GET_PACKAGE_LIST 0x006C
339 #define CMD_PACKAGE_INFO 0x006D
340 #define CMD_REMOVE_PACKAGE 0x006E
341 #define CMD_INSTALL_PACKAGE 0x006F
342 #define CMD_LOCK_PACKAGE_DB 0x0070
343 #define CMD_UNLOCK_PACKAGE_DB 0x0071
344 #define CMD_ABORT_FILE_TRANSFER 0x0072
345 #define CMD_CHECK_NETWORK_SERVICE 0x0073
346 #define CMD_GET_AGENT_CONFIG 0x0074
347 #define CMD_UPDATE_AGENT_CONFIG 0x0075
348 #define CMD_GET_PARAMETER_LIST 0x0076
349 #define CMD_DEPLOY_PACKAGE 0x0077
350 #define CMD_INSTALLER_INFO 0x0078
351 #define CMD_GET_LAST_VALUES 0x0079
352 #define CMD_APPLY_TEMPLATE 0x007A
353 #define CMD_SET_USER_VARIABLE 0x007B
354 #define CMD_GET_USER_VARIABLE 0x007C
355 #define CMD_ENUM_USER_VARIABLES 0x007D
356 #define CMD_DELETE_USER_VARIABLE 0x007E
357 #define CMD_ADM_MESSAGE 0x007F
358 #define CMD_ADM_REQUEST 0x0080
359 #define CMD_GET_NETWORK_PATH 0x0081
360 #define CMD_REQUEST_SESSION_KEY 0x0082
361 #define CMD_ENCRYPTED_MESSAGE 0x0083
362 #define CMD_SESSION_KEY 0x0084
363 #define CMD_REQUEST_ENCRYPTION 0x0085
364 #define CMD_GET_ROUTING_TABLE 0x0086
365 #define CMD_EXEC_TABLE_TOOL 0x0087
366 #define CMD_TABLE_DATA 0x0088
367 #define CMD_CANCEL_JOB 0x0089
368 #define CMD_CHANGE_SUBSCRIPTION 0x008A
369 #define CMD_GET_SYSLOG 0x008B
370 #define CMD_SYSLOG_RECORDS 0x008C
371 #define CMD_JOB_CHANGE_NOTIFICATION 0x008D
372 #define CMD_DEPLOY_AGENT_POLICY 0x008E
373 #define CMD_LOG_DATA 0x008F
374 #define CMD_GET_OBJECT_TOOL_DETAILS 0x0090
375 #define CMD_EXECUTE_SERVER_COMMAND 0x0091
376 #define CMD_UPLOAD_FILE_TO_AGENT 0x0092
377 #define CMD_UPDATE_OBJECT_TOOL 0x0093
378 #define CMD_DELETE_OBJECT_TOOL 0x0094
379 #define CMD_SETUP_PROXY_CONNECTION 0x0095
380 #define CMD_GENERATE_OBJECT_TOOL_ID 0x0096
381 #define CMD_GET_SERVER_STATS 0x0097
382 #define CMD_GET_SCRIPT_LIST 0x0098
383 #define CMD_GET_SCRIPT 0x0099
384 #define CMD_UPDATE_SCRIPT 0x009A
385 #define CMD_DELETE_SCRIPT 0x009B
386 #define CMD_RENAME_SCRIPT 0x009C
387 #define CMD_GET_SESSION_LIST 0x009D
388 #define CMD_KILL_SESSION 0x009E
389 #define CMD_GET_TRAP_LOG 0x009F
390 #define CMD_TRAP_LOG_RECORDS 0x00A0
391 #define CMD_START_SNMP_WALK 0x00A1
392 #define CMD_SNMP_WALK_DATA 0x00A2
393 #define CMD_GET_MAP_LIST 0x00A3
394 #define CMD_LOAD_MAP 0x00A4
395 #define CMD_SAVE_MAP 0x00A5
396 #define CMD_DELETE_MAP 0x00A6
397 #define CMD_RESOLVE_MAP_NAME 0x00A7
398 #define CMD_SUBMAP_DATA 0x00A8
399 #define CMD_UPLOAD_SUBMAP_BK_IMAGE 0x00A9
400 #define CMD_GET_SUBMAP_BK_IMAGE 0x00AA
401 #define CMD_GET_MODULE_LIST 0x00AB
402 #define CMD_UPDATE_MODULE_INFO 0x00AC
403 #define CMD_COPY_USER_VARIABLE 0x00AD
404 #define CMD_RESOLVE_DCI_NAMES 0x00AE
405 #define CMD_GET_MY_CONFIG 0x00AF
406 #define CMD_GET_AGENT_CFG_LIST 0x00B0
407 #define CMD_OPEN_AGENT_CONFIG 0x00B1
408 #define CMD_SAVE_AGENT_CONFIG 0x00B2
409 #define CMD_DELETE_AGENT_CONFIG 0x00B3
410 #define CMD_SWAP_AGENT_CONFIGS 0x00B4
411 #define CMD_TERMINATE_ALARM 0x00B5
412 #define CMD_GET_NXCP_CAPS 0x00B6
413 #define CMD_NXCP_CAPS 0x00B7
414 #define CMD_GET_OBJECT_COMMENTS 0x00B8
415 #define CMD_UPDATE_OBJECT_COMMENTS 0x00B9
416 #define CMD_ENABLE_AGENT_TRAPS 0x00BA
417 #define CMD_PUSH_DCI_DATA 0x00BB
418 #define CMD_GET_ADDR_LIST 0x00BC
419 #define CMD_SET_ADDR_LIST 0x00BD
420 #define CMD_RESET_COMPONENT 0x00BE
421 #define CMD_GET_DCI_EVENTS_LIST 0x00BF
422 #define CMD_EXPORT_CONFIGURATION 0x00C0
423 #define CMD_IMPORT_CONFIGURATION 0x00C1
424 #define CMD_GET_TRAP_CFG_RO 0x00C2
425 #define CMD_SNMP_REQUEST 0x00C3
426 #define CMD_GET_DCI_INFO 0x00C4
427 #define CMD_GET_GRAPH_LIST 0x00C5
428 #define CMD_SAVE_GRAPH 0x00C6
429 #define CMD_DELETE_GRAPH 0x00C7
430 #define CMD_GET_PERFTAB_DCI_LIST 0x00C8
431 #define CMD_ADD_CA_CERTIFICATE 0x00C9
432 #define CMD_DELETE_CERTIFICATE 0x00CA
433 #define CMD_GET_CERT_LIST 0x00CB
434 #define CMD_UPDATE_CERT_COMMENTS 0x00CC
435 #define CMD_QUERY_L2_TOPOLOGY 0x00CD
436 #define CMD_AUDIT_RECORD 0x00CE
437 #define CMD_GET_AUDIT_LOG 0x00CF
438 #define CMD_SEND_SMS 0x00D0
439 #define CMD_GET_COMMUNITY_LIST 0x00D1
440 #define CMD_UPDATE_COMMUNITY_LIST 0x00D2
441 #define CMD_GET_SITUATION_LIST 0x00D3
442 #define CMD_DELETE_SITUATION 0x00D4
443 #define CMD_CREATE_SITUATION 0x00D5
444 #define CMD_DEL_SITUATION_INSTANCE 0x00D6
445 #define CMD_UPDATE_SITUATION 0x00D7
446 #define CMD_SITUATION_DATA 0x00D8
447 #define CMD_SITUATION_CHANGE 0x00D9
448 #define CMD_CREATE_MAP 0x00DA
449 #define CMD_UPLOAD_FILE 0x00DB
450 #define CMD_DELETE_FILE 0x00DC
451 #define CMD_CONFIG_SET_CLOB 0x00E1
452 #define CMD_CONFIG_GET_CLOB 0x00E2
453 #define CMD_RENAME_MAP 0x00E3
454 #define CMD_CLEAR_DCI_DATA 0x00E4
455 #define CMD_GET_LICENSE 0x00E5
456 #define CMD_CHECK_LICENSE 0x00E6
457 #define CMD_RELEASE_LICENSE 0x00E7
458 #define CMD_ISC_CONNECT_TO_SERVICE 0x00E8
459 #define CMD_REGISTER_AGENT 0x00E9
460 #define CMD_GET_SERVER_FILE 0x00EA
461 #define CMD_FORWARD_EVENT 0x00EB
462 #define CMD_GET_USM_CREDENTIALS 0x00EC
463 #define CMD_UPDATE_USM_CREDENTIALS 0x00ED
464 #define CMD_GET_DCI_THRESHOLDS 0x00EE
465 #define CMD_GET_IMAGE 0x00EF
466 #define CMD_CREATE_IMAGE 0x00F0
467 #define CMD_DELETE_IMAGE 0x00F1
468 #define CMD_MODIFY_IMAGE 0x00F2
469 #define CMD_LIST_IMAGES 0x00F3
470 #define CMD_LIST_SERVER_FILES 0x00F4
471 #define CMD_GET_TABLE 0x00F5
472 #define CMD_QUERY_TABLE 0x00F6
473 #define CMD_OPEN_CONSOLE 0x00F7
474 #define CMD_CLOSE_CONSOLE 0x00F8
475 #define CMD_GET_SELECTED_OBJECTS 0x00F9
476 #define CMD_GET_VLANS 0x00FA
477 #define CMD_HOLD_JOB 0x00FB
478 #define CMD_UNHOLD_JOB 0x00FC
479 #define CMD_CHANGE_ZONE 0x00FD
480 #define CMD_GET_AGENT_FILE 0x00FE
481 #define CMD_GET_FILE_DETAILS 0x00FF
482 #define CMD_IMAGE_LIBRARY_UPDATE 0x0100
483 #define CMD_GET_NODE_COMPONENTS 0x0101
484 #define CMD_UPDATE_ALARM_COMMENT 0x0102
485 #define CMD_GET_ALARM 0x0103
486 #define CMD_GET_TABLE_LAST_VALUES 0x0104
487 #define CMD_GET_TABLE_DCI_DATA 0x0105
488 #define CMD_GET_THRESHOLD_SUMMARY 0x0106
489 #define CMD_RESOLVE_ALARM 0x0107
490 #define CMD_FIND_IP_LOCATION 0x0108
491 #define CMD_REPORT_DEVICE_STATUS 0x0109
492 #define CMD_REPORT_DEVICE_INFO 0x010A
493 #define CMD_GET_ALARM_EVENTS 0x010B
494 #define CMD_GET_ENUM_LIST 0x010C
495 #define CMD_GET_TABLE_LIST 0x010D
496 #define CMD_GET_MAPPING_TABLE 0x010E
497 #define CMD_UPDATE_MAPPING_TABLE 0x010F
498 #define CMD_DELETE_MAPPING_TABLE 0x0110
499 #define CMD_LIST_MAPPING_TABLES 0x0111
500 #define CMD_GET_NODE_SOFTWARE 0x0112
501 #define CMD_GET_WINPERF_OBJECTS 0x0113
502 #define CMD_GET_WIRELESS_STATIONS 0x0114
503 #define CMD_GET_SUMMARY_TABLES 0x0115
504 #define CMD_MODIFY_SUMMARY_TABLE 0x0116
505 #define CMD_DELETE_SUMMARY_TABLE 0x0117
506 #define CMD_GET_SUMMARY_TABLE_DETAILS 0x0118
507 #define CMD_QUERY_SUMMARY_TABLE 0x0119
508 #define CMD_SHUTDOWN 0x011A
509 #define CMD_SNMP_TRAP 0x011B
510 #define CMD_GET_SUBNET_ADDRESS_MAP 0x011C
511 #define CMD_FILE_MONITORING 0x011D
512 #define CMD_CANCEL_FILE_MONITORING 0x011E
513 #define CMD_CHANGE_OBJECT_TOOL_STATUS 0x011F
514 #define CMD_SET_ALARM_STATUS_FLOW 0x0120
515 #define CMD_DELETE_ALARM_COMMENT 0x0121
516 #define CMD_GET_EFFECTIVE_RIGHTS 0x0122
517 #define CMD_GET_DCI_VALUES 0x0123
518 #define CMD_GET_HELPDESK_URL 0x0124
519 #define CMD_UNLINK_HELPDESK_ISSUE 0x0125
520 #define CMD_GET_FOLDER_CONTENT 0x0126
521 #define CMD_FILEMGR_DELETE_FILE 0x0127
522 #define CMD_FILEMGR_RENAME_FILE 0x0128
523 #define CMD_FILEMGR_MOVE_FILE 0x0129
524 #define CMD_FILEMGR_UPLOAD 0x012A
525 #define CMD_GET_SWITCH_FDB 0x012B
526 #define CMD_COMMAND_OUTPUT 0x012C
527 #define CMD_GET_LOC_HISTORY 0x012D
528 #define CMD_TAKE_SCREENSHOT 0x012E
529 #define CMD_EXECUTE_SCRIPT 0x012F
530 #define CMD_EXECUTE_SCRIPT_UPDATE 0x0130
531 #define CMD_FILEMGR_CREATE_FOLDER 0x0131
532 #define CMD_QUERY_ADHOC_SUMMARY_TABLE 0x0132
533 #define CMD_GRAPH_UPDATE 0x0133
534 #define CMD_ENABLE_IPV6 0x0134
535 #define CMD_FORCE_DCI_POLL 0x0135
536 #define CMD_GET_DCI_SCRIPT_LIST 0x0136
537 #define CMD_DATA_COLLECTION_CONFIG 0x0137
538 #define CMD_SET_SERVER_ID 0x0138
539
540 #define CMD_RS_LIST_REPORTS 0x1100
541 #define CMD_RS_GET_REPORT 0x1101
542 #define CMD_RS_SCHEDULE_EXECUTION 0x1102
543 #define CMD_RS_LIST_RESULTS 0x1103
544 #define CMD_RS_RENDER_RESULT 0x1104
545 #define CMD_RS_DELETE_RESULT 0x1105
546 #define CMD_RS_LIST_SCHEDULES 0x1106
547 #define CMD_RS_DELETE_SCHEDULE 0x1107
548 #define CMD_RS_NOTIFY 0x1108
549 #define CMD_RS_ADD_REPORT_NOTIFY 0x1109
550
551 /**
552 * Variable identifiers
553 */
554 #define VID_LOGIN_NAME ((UINT32)1)
555 #define VID_PASSWORD ((UINT32)2)
556 #define VID_OBJECT_ID ((UINT32)3)
557 #define VID_OBJECT_NAME ((UINT32)4)
558 #define VID_OBJECT_CLASS ((UINT32)5)
559 #define VID_SNMP_VERSION ((UINT32)6)
560 #define VID_PARENT_CNT ((UINT32)7)
561 #define VID_IP_ADDRESS ((UINT32)8)
562 #define VID_IP_NETMASK ((UINT32)9)
563 #define VID_OBJECT_STATUS ((UINT32)10)
564 #define VID_IF_INDEX ((UINT32)11)
565 #define VID_IF_TYPE ((UINT32)12)
566 #define VID_FLAGS ((UINT32)13)
567 #define VID_CREATION_FLAGS ((UINT32)14)
568 #define VID_AGENT_PORT ((UINT32)15)
569 #define VID_AUTH_METHOD ((UINT32)16)
570 #define VID_SHARED_SECRET ((UINT32)17)
571 #define VID_SNMP_AUTH_OBJECT ((UINT32)18)
572 #define VID_SNMP_OID ((UINT32)19)
573 #define VID_NAME ((UINT32)20)
574 #define VID_VALUE ((UINT32)21)
575 #define VID_PEER_GATEWAY ((UINT32)22)
576 #define VID_NOTIFICATION_CODE ((UINT32)23)
577 #define VID_EVENT_CODE ((UINT32)24)
578 #define VID_SEVERITY ((UINT32)25)
579 #define VID_MESSAGE ((UINT32)26)
580 #define VID_DESCRIPTION ((UINT32)27)
581 #define VID_RCC ((UINT32)28) /* RCC == Request Completion Code */
582 #define VID_LOCKED_BY ((UINT32)29)
583 #define VID_IS_DELETED ((UINT32)30)
584 #define VID_CHILD_CNT ((UINT32)31)
585 #define VID_ACL_SIZE ((UINT32)32)
586 #define VID_INHERIT_RIGHTS ((UINT32)33)
587 #define VID_USER_NAME ((UINT32)34)
588 #define VID_USER_ID ((UINT32)35)
589 #define VID_USER_SYS_RIGHTS ((UINT32)36)
590 #define VID_USER_FLAGS ((UINT32)37)
591 #define VID_NUM_MEMBERS ((UINT32)38) /* Number of members in users group */
592 #define VID_IS_GROUP ((UINT32)39)
593 #define VID_USER_FULL_NAME ((UINT32)40)
594 #define VID_USER_DESCRIPTION ((UINT32)41)
595 #define VID_UPDATE_TYPE ((UINT32)42)
596 #define VID_DCI_ID ((UINT32)43)
597 #define VID_POLLING_INTERVAL ((UINT32)44)
598 #define VID_RETENTION_TIME ((UINT32)45)
599 #define VID_DCI_SOURCE_TYPE ((UINT32)46)
600 #define VID_DCI_DATA_TYPE ((UINT32)47)
601 #define VID_DCI_STATUS ((UINT32)48)
602 #define VID_MGMT_STATUS ((UINT32)49)
603 #define VID_MAX_ROWS ((UINT32)50)
604 #define VID_TIME_FROM ((UINT32)51)
605 #define VID_TIME_TO ((UINT32)52)
606 #define VID_DCI_DATA ((UINT32)53)
607 #define VID_NUM_THRESHOLDS ((UINT32)54)
608 #define VID_DCI_NUM_MAPS ((UINT32)55)
609 #define VID_DCI_MAP_IDS ((UINT32)56)
610 #define VID_DCI_MAP_INDEXES ((UINT32)57)
611 #define VID_NUM_MIBS ((UINT32)58)
612 #define VID_MIB_NAME ((UINT32)59)
613 #define VID_MIB_FILE_SIZE ((UINT32)60)
614 #define VID_MIB_FILE ((UINT32)61)
615 #define VID_PROPERTIES ((UINT32)62)
616 #define VID_ALARM_SEVERITY ((UINT32)63)
617 #define VID_ALARM_KEY ((UINT32)64)
618 #define VID_ALARM_TIMEOUT ((UINT32)65)
619 #define VID_ALARM_MESSAGE ((UINT32)66)
620 #define VID_RULE_ID ((UINT32)67)
621 #define VID_NUM_SOURCES ((UINT32)68)
622 #define VID_NUM_EVENTS ((UINT32)69)
623 #define VID_NUM_ACTIONS ((UINT32)70)
624 #define VID_RULE_SOURCES ((UINT32)71)
625 #define VID_RULE_EVENTS ((UINT32)72)
626 #define VID_RULE_ACTIONS ((UINT32)73)
627 #define VID_NUM_RULES ((UINT32)74)
628 #define VID_CATEGORY ((UINT32)75)
629 #define VID_UPDATED_CHILD_LIST ((UINT32)76)
630 #define VID_EVENT_NAME_TABLE ((UINT32)77)
631 #define VID_PARENT_ID ((UINT32)78)
632 #define VID_CHILD_ID ((UINT32)79)
633 #define VID_SNMP_PORT ((UINT32)80)
634 #define VID_CONFIG_FILE_DATA ((UINT32)81)
635 #define VID_COMMENTS ((UINT32)82)
636 #define VID_POLICY_ID ((UINT32)83)
637 #define VID_SNMP_USM_METHODS ((UINT32)84)
638 #define VID_PARAMETER ((UINT32)85)
639 #define VID_NUM_STRINGS ((UINT32)86)
640 #define VID_ACTION_NAME ((UINT32)87)
641 #define VID_NUM_ARGS ((UINT32)88)
642 #define VID_SNMP_AUTH_PASSWORD ((UINT32)89)
643 #define VID_CLASS_ID_LIST ((UINT32)90)
644 #define VID_SNMP_PRIV_PASSWORD ((UINT32)91)
645 #define VID_NOTIFICATION_DATA ((UINT32)92)
646 #define VID_ALARM_ID ((UINT32)93)
647 #define VID_TIMESTAMP ((UINT32)94)
648 #define VID_ACK_BY_USER ((UINT32)95)
649 #define VID_IS_ACK ((UINT32)96)
650 #define VID_ACTION_ID ((UINT32)97)
651 #define VID_IS_DISABLED ((UINT32)98)
652 #define VID_ACTION_TYPE ((UINT32)99)
653 #define VID_ACTION_DATA ((UINT32)100)
654 #define VID_EMAIL_SUBJECT ((UINT32)101)
655 #define VID_RCPT_ADDR ((UINT32)102)
656 #define VID_CATEGORY_NAME ((UINT32)103)
657 #define VID_CATEGORY_ID ((UINT32)104)
658 #define VID_DCI_DELTA_CALCULATION ((UINT32)105)
659 #define VID_TRANSFORMATION_SCRIPT ((UINT32)106)
660 #define VID_POLL_TYPE ((UINT32)107)
661 #define VID_POLLER_MESSAGE ((UINT32)108)
662 #define VID_SOURCE_OBJECT_ID ((UINT32)109)
663 #define VID_DESTINATION_OBJECT_ID ((UINT32)110)
664 #define VID_NUM_ITEMS ((UINT32)111)
665 #define VID_ITEM_LIST ((UINT32)112)
666 #define VID_MAC_ADDR ((UINT32)113)
667 #define VID_TEMPLATE_VERSION ((UINT32)114)
668 #define VID_NODE_TYPE ((UINT32)115)
669 #define VID_INSTANCE ((UINT32)116)
670 #define VID_TRAP_ID ((UINT32)117)
671 #define VID_TRAP_OID ((UINT32)118)
672 #define VID_TRAP_OID_LEN ((UINT32)119)
673 #define VID_TRAP_NUM_MAPS ((UINT32)120)
674 #define VID_SERVER_VERSION ((UINT32)121)
675 #define VID_SUPPORTED_ENCRYPTION ((UINT32)122)
676 #define VID_EVENT_ID ((UINT32)123)
677 #define VID_AGENT_VERSION ((UINT32)124)
678 #define VID_FILE_NAME ((UINT32)125)
679 #define VID_PACKAGE_ID ((UINT32)126)
680 #define VID_PACKAGE_VERSION ((UINT32)127)
681 #define VID_PLATFORM_NAME ((UINT32)128)
682 #define VID_PACKAGE_NAME ((UINT32)129)
683 #define VID_SERVICE_TYPE ((UINT32)130)
684 #define VID_IP_PROTO ((UINT32)131)
685 #define VID_IP_PORT ((UINT32)132)
686 #define VID_SERVICE_REQUEST ((UINT32)133)
687 #define VID_SERVICE_RESPONSE ((UINT32)134)
688 #define VID_POLLER_NODE_ID ((UINT32)135)
689 #define VID_SERVICE_STATUS ((UINT32)136)
690 #define VID_NUM_PARAMETERS ((UINT32)137)
691 #define VID_NUM_OBJECTS ((UINT32)138)
692 #define VID_OBJECT_LIST ((UINT32)139)
693 #define VID_DEPLOYMENT_STATUS ((UINT32)140)
694 #define VID_ERROR_MESSAGE ((UINT32)141)
695 #define VID_SERVER_ID ((UINT32)142)
696 #define VID_SEARCH_PATTERN ((UINT32)143)
697 #define VID_NUM_VARIABLES ((UINT32)144)
698 #define VID_COMMAND ((UINT32)145)
699 #define VID_PROTOCOL_VERSION ((UINT32)146)
700 #define VID_ZONE_ID ((UINT32)147)
701 #define VID_ZONING_ENABLED ((UINT32)148)
702 #define VID_ICMP_PROXY ((UINT32)149)
703 #define VID_IP_ADDRESS_COUNT ((UINT32)150)
704 #define VID_ENABLED ((UINT32)151)
705 #define VID_REMOVE_DCI ((UINT32)152)
706 #define VID_TEMPLATE_ID ((UINT32)153)
707 #define VID_PUBLIC_KEY ((UINT32)154)
708 #define VID_SESSION_KEY ((UINT32)155)
709 #define VID_CIPHER ((UINT32)156)
710 #define VID_KEY_LENGTH ((UINT32)157)
711 #define VID_SESSION_IV ((UINT32)158)
712 #define VID_CONFIG_FILE ((UINT32)159)
713 #define VID_STATUS_CALCULATION_ALG ((UINT32)160)
714 #define VID_NUM_LOCAL_NETS ((UINT32)161)
715 #define VID_NUM_REMOTE_NETS ((UINT32)162)
716 #define VID_APPLY_FLAG ((UINT32)163)
717 #define VID_NUM_TOOLS ((UINT32)164)
718 #define VID_TOOL_ID ((UINT32)165)
719 #define VID_NUM_COLUMNS ((UINT32)166)
720 #define VID_NUM_ROWS ((UINT32)167)
721 #define VID_TABLE_TITLE ((UINT32)168)
722 #define VID_EVENT_NAME ((UINT32)169)
723 #define VID_CLIENT_TYPE ((UINT32)170)
724 #define VID_LOG_NAME ((UINT32)171)
725 #define VID_OPERATION ((UINT32)172)
726 #define VID_MAX_RECORDS ((UINT32)173)
727 #define VID_NUM_RECORDS ((UINT32)174)
728 #define VID_CLIENT_INFO ((UINT32)175)
729 #define VID_OS_INFO ((UINT32)176)
730 #define VID_LIBNXCL_VERSION ((UINT32)177)
731 #define VID_VERSION ((UINT32)178)
732 #define VID_NUM_NODES ((UINT32)179)
733 #define VID_LOG_FILE ((UINT32)180)
734 #define VID_HOP_COUNT ((UINT32)181)
735 #define VID_NUM_SCHEDULES ((UINT32)182)
736 #define VID_STATUS_PROPAGATION_ALG ((UINT32)183)
737 #define VID_FIXED_STATUS ((UINT32)184)
738 #define VID_STATUS_SHIFT ((UINT32)185)
739 #define VID_STATUS_TRANSLATION_1 ((UINT32)186)
740 #define VID_STATUS_TRANSLATION_2 ((UINT32)187)
741 #define VID_STATUS_TRANSLATION_3 ((UINT32)188)
742 #define VID_STATUS_TRANSLATION_4 ((UINT32)189)
743 #define VID_STATUS_SINGLE_THRESHOLD ((UINT32)190)
744 #define VID_STATUS_THRESHOLD_1 ((UINT32)191)
745 #define VID_STATUS_THRESHOLD_2 ((UINT32)192)
746 #define VID_STATUS_THRESHOLD_3 ((UINT32)193)
747 #define VID_STATUS_THRESHOLD_4 ((UINT32)194)
748 #define VID_AGENT_PROXY ((UINT32)195)
749 #define VID_TOOL_TYPE ((UINT32)196)
750 #define VID_TOOL_DATA ((UINT32)197)
751 #define VID_ACL ((UINT32)198)
752 #define VID_TOOL_FILTER ((UINT32)199)
753 #define VID_SERVER_UPTIME ((UINT32)200)
754 #define VID_NUM_ALARMS ((UINT32)201)
755 #define VID_ALARMS_BY_SEVERITY ((UINT32)202)
756 #define VID_NETXMSD_PROCESS_WKSET ((UINT32)203)
757 #define VID_NETXMSD_PROCESS_VMSIZE ((UINT32)204)
758 #define VID_NUM_SESSIONS ((UINT32)205)
759 #define VID_NUM_SCRIPTS ((UINT32)206)
760 #define VID_SCRIPT_ID ((UINT32)207)
761 #define VID_SCRIPT_CODE ((UINT32)208)
762 #define VID_SESSION_ID ((UINT32)209)
763 #define VID_RECORDS_ORDER ((UINT32)210)
764 #define VID_NUM_SUBMAPS ((UINT32)211)
765 #define VID_SUBMAP_LIST ((UINT32)212)
766 #define VID_SUBMAP_ATTR ((UINT32)213)
767 #define VID_NUM_LINKS ((UINT32)214)
768 #define VID_LINK_LIST ((UINT32)215)
769 #define VID_MAP_ID ((UINT32)216)
770 #define VID_NUM_MAPS ((UINT32)217)
771 #define VID_NUM_MODULES ((UINT32)218)
772 #define VID_DST_USER_ID ((UINT32)219)
773 #define VID_MOVE_FLAG ((UINT32)220)
774 #define VID_CHANGE_PASSWD_FLAG ((UINT32)221)
775 #define VID_GUID ((UINT32)222)
776 #define VID_ACTIVATION_EVENT ((UINT32)223)
777 #define VID_DEACTIVATION_EVENT ((UINT32)224)
778 #define VID_SOURCE_OBJECT ((UINT32)225)
779 #define VID_ACTIVE_STATUS ((UINT32)226)
780 #define VID_INACTIVE_STATUS ((UINT32)227)
781 #define VID_SCRIPT ((UINT32)228)
782 #define VID_NODE_LIST ((UINT32)229)
783 #define VID_DCI_LIST ((UINT32)230)
784 #define VID_CONFIG_ID ((UINT32)231)
785 #define VID_FILTER ((UINT32)232)
786 #define VID_SEQUENCE_NUMBER ((UINT32)233)
787 #define VID_VERSION_MAJOR ((UINT32)234)
788 #define VID_VERSION_MINOR ((UINT32)235)
789 #define VID_VERSION_RELEASE ((UINT32)236)
790 #define VID_CONFIG_ID_2 ((UINT32)237)
791 #define VID_IV_LENGTH ((UINT32)238)
792 #define VID_DBCONN_STATUS ((UINT32)239)
793 #define VID_CREATION_TIME ((UINT32)240)
794 #define VID_LAST_CHANGE_TIME ((UINT32)241)
795 #define VID_TERMINATED_BY_USER ((UINT32)242)
796 #define VID_STATE ((UINT32)243)
797 #define VID_CURRENT_SEVERITY ((UINT32)244)
798 #define VID_ORIGINAL_SEVERITY ((UINT32)245)
799 #define VID_HELPDESK_STATE ((UINT32)246)
800 #define VID_HELPDESK_REF ((UINT32)247)
801 #define VID_REPEAT_COUNT ((UINT32)248)
802 #define VID_SNMP_RAW_VALUE_TYPE ((UINT32)249)
803 #define VID_CONFIRMATION_TEXT ((UINT32)250)
804 #define VID_FAILED_DCI_INDEX ((UINT32)251)
805 #define VID_ADDR_LIST_TYPE ((UINT32)252)
806 #define VID_COMPONENT_ID ((UINT32)253)
807 #define VID_SYNC_COMMENTS ((UINT32)254)
808 #define VID_EVENT_LIST ((UINT32)255)
809 #define VID_NUM_TRAPS ((UINT32)256)
810 #define VID_TRAP_LIST ((UINT32)257)
811 #define VID_NXMP_CONTENT ((UINT32)258)
812 #define VID_ERROR_TEXT ((UINT32)259)
813 #define VID_COMPONENT ((UINT32)260)
814 #define VID_CONSOLE_UPGRADE_URL ((UINT32)261)
815 #define VID_CLUSTER_TYPE ((UINT32)262)
816 #define VID_NUM_SYNC_SUBNETS ((UINT32)263)
817 #define VID_SYNC_SUBNETS ((UINT32)264)
818 #define VID_NUM_RESOURCES ((UINT32)265)
819 #define VID_RESOURCE_ID ((UINT32)266)
820 #define VID_SNMP_PROXY ((UINT32)267)
821 #define VID_PORT ((UINT32)268)
822 #define VID_PDU ((UINT32)269)
823 #define VID_PDU_SIZE ((UINT32)270)
824 #define VID_IS_SYSTEM ((UINT32)271)
825 #define VID_GRAPH_CONFIG ((UINT32)272)
826 #define VID_NUM_GRAPHS ((UINT32)273)
827 #define VID_GRAPH_ID ((UINT32)274)
828 #define VID_AUTH_TYPE ((UINT32)275)
829 #define VID_CERTIFICATE ((UINT32)276)
830 #define VID_SIGNATURE ((UINT32)277)
831 #define VID_CHALLENGE ((UINT32)278)
832 #define VID_CERT_MAPPING_METHOD ((UINT32)279)
833 #define VID_CERT_MAPPING_DATA ((UINT32)280)
834 #define VID_CERTIFICATE_ID ((UINT32)281)
835 #define VID_NUM_CERTIFICATES ((UINT32)282)
836 #define VID_ALARM_TIMEOUT_EVENT ((UINT32)283)
837 #define VID_NUM_GROUPS ((UINT32)284)
838 #define VID_QSIZE_CONDITION_POLLER ((UINT32)285)
839 #define VID_QSIZE_CONF_POLLER ((UINT32)286)
840 #define VID_QSIZE_DCI_POLLER ((UINT32)287)
841 #define VID_QSIZE_DBWRITER ((UINT32)288)
842 #define VID_QSIZE_EVENT ((UINT32)289)
843 #define VID_QSIZE_DISCOVERY ((UINT32)290)
844 #define VID_QSIZE_NODE_POLLER ((UINT32)291)
845 #define VID_QSIZE_ROUTE_POLLER ((UINT32)292)
846 #define VID_QSIZE_STATUS_POLLER ((UINT32)293)
847 #define VID_SYNTHETIC_MASK ((UINT32)294)
848 #define VID_SUBSYSTEM ((UINT32)295)
849 #define VID_SUCCESS_AUDIT ((UINT32)296)
850 #define VID_WORKSTATION ((UINT32)297)
851 #define VID_USER_TAG ((UINT32)298)
852 #define VID_REQUIRED_POLLS ((UINT32)299)
853 #define VID_SYS_DESCRIPTION ((UINT32)300)
854 #define VID_SITUATION_ID ((UINT32)301)
855 #define VID_SITUATION_INSTANCE ((UINT32)302)
856 #define VID_SITUATION_NUM_ATTRS ((UINT32)303)
857 #define VID_INSTANCE_COUNT ((UINT32)304)
858 #define VID_SITUATION_COUNT ((UINT32)305)
859 #define VID_NUM_TRUSTED_NODES ((UINT32)306)
860 #define VID_TRUSTED_NODES ((UINT32)307)
861 #define VID_TIMEZONE ((UINT32)308)
862 #define VID_NUM_CUSTOM_ATTRIBUTES ((UINT32)309)
863 #define VID_MAP_DATA ((UINT32)310)
864 #define VID_PRODUCT_ID ((UINT32)311)
865 #define VID_CLIENT_ID ((UINT32)312)
866 #define VID_LICENSE_DATA ((UINT32)313)
867 #define VID_TOKEN ((UINT32)314)
868 #define VID_SERVICE_ID ((UINT32)315)
869 #define VID_TOKEN_SOFTLIMIT ((UINT32)316)
870 #define VID_TOKEN_HARDLIMIT ((UINT32)317)
871 #define VID_USE_IFXTABLE ((UINT32)318)
872 #define VID_USE_X509_KEY_FORMAT ((UINT32)319)
873 #define VID_STICKY_FLAG ((UINT32)320)
874 #define VID_AUTOBIND_FILTER ((UINT32)321)
875 #define VID_BASE_UNITS ((UINT32)322)
876 #define VID_MULTIPLIER ((UINT32)323)
877 #define VID_CUSTOM_UNITS_NAME ((UINT32)324)
878 #define VID_PERFTAB_SETTINGS ((UINT32)325)
879 #define VID_EXECUTION_STATUS ((UINT32)326)
880 #define VID_EXECUTION_RESULT ((UINT32)327)
881 #define VID_TABLE_NUM_ROWS ((UINT32)328)
882 #define VID_TABLE_NUM_COLS ((UINT32)329)
883 #define VID_JOB_COUNT ((UINT32)330)
884 #define VID_JOB_ID ((UINT32)331)
885 #define VID_JOB_TYPE ((UINT32)332)
886 #define VID_JOB_STATUS ((UINT32)333)
887 #define VID_JOB_PROGRESS ((UINT32)334)
888 #define VID_FAILURE_MESSAGE ((UINT32)335)
889 #define VID_POLICY_TYPE ((UINT32)336)
890 #define VID_FIELDS ((UINT32)337)
891 #define VID_LOG_HANDLE ((UINT32)338)
892 #define VID_START_ROW ((UINT32)339)
893 #define VID_TABLE_OFFSET ((UINT32)340)
894 #define VID_NUM_FILTERS ((UINT32)341)
895 #define VID_GEOLOCATION_TYPE ((UINT32)342)
896 #define VID_LATITUDE ((UINT32)343)
897 #define VID_LONGITUDE ((UINT32)344)
898 #define VID_NUM_ORDERING_COLUMNS ((UINT32)345)
899 #define VID_SYSTEM_TAG ((UINT32)346)
900 #define VID_NUM_ENUMS ((UINT32)347)
901 #define VID_NUM_PUSH_PARAMETERS ((UINT32)348)
902 #define VID_OLD_PASSWORD ((UINT32)349)
903 #define VID_MIN_PASSWORD_LENGTH ((UINT32)350)
904 #define VID_LAST_LOGIN ((UINT32)351)
905 #define VID_LAST_PASSWORD_CHANGE ((UINT32)352)
906 #define VID_DISABLED_UNTIL ((UINT32)353)
907 #define VID_AUTH_FAILURES ((UINT32)354)
908 #define VID_RUNTIME_FLAGS ((UINT32)355)
909 #define VID_FILE_SIZE ((UINT32)356)
910 #define VID_MAP_TYPE ((UINT32)357)
911 #define VID_LAYOUT ((UINT32)358)
912 #define VID_SEED_OBJECT ((UINT32)359)
913 #define VID_BACKGROUND ((UINT32)360)
914 #define VID_NUM_ELEMENTS ((UINT32)361)
915 #define VID_INTERFACE_ID ((UINT32)362)
916 #define VID_LOCAL_INTERFACE_ID ((UINT32)363)
917 #define VID_LOCAL_NODE_ID ((UINT32)364)
918 #define VID_SYS_NAME ((UINT32)365)
919 #define VID_LLDP_NODE_ID ((UINT32)366)
920 #define VID_IF_SLOT ((UINT32)367)
921 #define VID_IF_PORT ((UINT32)368)
922 #define VID_IMAGE_DATA ((UINT32)369)
923 #define VID_IMAGE_PROTECTED ((UINT32)370)
924 #define VID_NUM_IMAGES ((UINT32)371)
925 #define VID_IMAGE_MIMETYPE ((UINT32)372)
926 #define VID_PEER_NODE_ID ((UINT32)373)
927 #define VID_PEER_INTERFACE_ID ((UINT32)374)
928 #define VID_VRRP_VERSION ((UINT32)375)
929 #define VID_VRRP_VR_COUNT ((UINT32)376)
930 #define VID_DESTINATION_FILE_NAME ((UINT32)377)
931 #define VID_NUM_TABLES ((UINT32)378)
932 #define VID_IMAGE ((UINT32)379)
933 #define VID_DRIVER_NAME ((UINT32)380)
934 #define VID_DRIVER_VERSION ((UINT32)381)
935 #define VID_NUM_VLANS ((UINT32)382)
936 #define VID_CREATE_JOB_ON_HOLD ((UINT32)383)
937 #define VID_TILE_SERVER_URL ((UINT32)384)
938 #define VID_BACKGROUND_LATITUDE ((UINT32)385)
939 #define VID_BACKGROUND_LONGITUDE ((UINT32)386)
940 #define VID_BACKGROUND_ZOOM ((UINT32)387)
941 #define VID_BRIDGE_BASE_ADDRESS ((UINT32)388)
942 #define VID_SUBMAP_ID ((UINT32)389)
943 #define VID_REPORT_DEFINITION ((UINT32)390)
944 #define VID_SLMCHECK_TYPE ((UINT32)391)
945 #define VID_REASON ((UINT32)392)
946 #define VID_NODE_ID ((UINT32)393)
947 #define VID_UPTIME_DAY ((UINT32)394)
948 #define VID_UPTIME_WEEK ((UINT32)395)
949 #define VID_UPTIME_MONTH ((UINT32)396)
950 #define VID_PRIMARY_NAME ((UINT32)397)
951 #define VID_NUM_RESULTS ((UINT32)398)
952 #define VID_RESULT_ID_LIST ((UINT32)399)
953 #define VID_RENDER_FORMAT ((UINT32)400)
954 #define VID_FILE_OFFSET ((UINT32)401)
955 #define VID_IS_TEMPLATE ((UINT32)402)
956 #define VID_DOT1X_PAE_STATE ((UINT32)403)
957 #define VID_DOT1X_BACKEND_STATE ((UINT32)404)
958 #define VID_IS_COMPLETE ((UINT32)405)
959 #define VID_MODIFY_TIME ((UINT32)406)
960 #define VID_IS_PHYS_PORT ((UINT32)407)
961 #define VID_CREATE_STATUS_DCI ((UINT32)408)
962 #define VID_NUM_COMMENTS ((UINT32)409)
963 #define VID_COMMENT_ID ((UINT32)410)
964 #define VID_DCOBJECT_TYPE ((UINT32)411)
965 #define VID_INSTANCE_COLUMN ((UINT32)412)
966 #define VID_DATA_COLUMN ((UINT32)413)
967 #define VID_ADMIN_STATE ((UINT32)414)
968 #define VID_OPER_STATE ((UINT32)415)
969 #define VID_EXPECTED_STATE ((UINT32)416)
970 #define VID_LINK_COLOR ((UINT32)417)
971 #define VID_CONNECTION_TYPE ((UINT32)418)
972 #define VID_RESOLVED_BY_USER ((UINT32)419)
973 #define VID_IS_STICKY ((UINT32)420)
974 #define VID_DATE_FORMAT ((UINT32)421)
975 #define VID_TIME_FORMAT ((UINT32)422)
976 #define VID_LINK_ROUTING ((UINT32)423)
977 #define VID_BACKGROUND_COLOR ((UINT32)424)
978 #define VID_FORCE_RELOAD ((UINT32)425)
979 #define VID_DISCOVERY_RADIUS ((UINT32)426)
980 #define VID_BATTERY_LEVEL ((UINT32)427)
981 #define VID_VENDOR ((UINT32)428)
982 #define VID_MODEL ((UINT32)429)
983 #define VID_OS_NAME ((UINT32)430)
984 #define VID_OS_VERSION ((UINT32)431)
985 #define VID_SERIAL_NUMBER ((UINT32)432)
986 #define VID_DEVICE_ID ((UINT32)433)
987 #define VID_MAPPING_TABLE_ID ((UINT32)434)
988 #define VID_INSTD_METHOD ((UINT32)435)
989 #define VID_INSTD_DATA ((UINT32)436)
990 #define VID_INSTD_FILTER ((UINT32)437)
991 #define VID_ACCURACY ((UINT32)438)
992 #define VID_GEOLOCATION_TIMESTAMP ((UINT32)439)
993 #define VID_SAMPLE_COUNT ((UINT32)440)
994 #define VID_HEIGHT ((UINT32)441)
995 #define VID_RADIO_COUNT ((UINT32)442)
996 #define VID_OBJECT_TOOLTIP_ONLY ((UINT32)443)
997 #define VID_SUMMARY_TABLE_ID ((UINT32)444)
998 #define VID_MENU_PATH ((UINT32)445)
999 #define VID_COLUMNS ((UINT32)446)
1000 #define VID_TITLE ((UINT32)447)
1001 #define VID_DAY_OF_WEEK ((UINT32)448)
1002 #define VID_DAY_OF_MONTH ((UINT32)449)
1003 #define VID_LOCALE ((UINT32)450)
1004 #define VID_READ_ONLY ((UINT32)451)
1005 #define VID_CLIENT_ADDRESS ((UINT32)452)
1006 #define VID_SHORT_TIME_FORMAT ((UINT32)453)
1007 #define VID_BOOT_TIME ((UINT32)454)
1008 #define VID_REQUEST_ID ((UINT32)455)
1009 #define VID_ADDRESS_MAP ((UINT32)456)
1010 #define VID_XMPP_ID ((UINT32)457)
1011 #define VID_FILE_SIZE_LIMIT ((UINT32)458)
1012 #define VID_FILE_FOLLOW ((UINT32)459)
1013 #define VID_FILE_DATA ((UINT32)460)
1014 #define VID_ALARM_STATUS_FLOW_STATE ((UINT32)461)
1015 #define VID_GROUPS ((UINT32)462)
1016 #define VID_EFFECTIVE_RIGHTS ((UINT32)463)
1017 #define VID_EXTENSION_COUNT ((UINT32)464)
1018 #define VID_TIMED_ALARM_ACK_ENABLED ((UINT32)465)
1019 #define VID_TABLE_EXTENDED_FORMAT ((UINT32)466)
1020 #define VID_RS_JOB_ID ((UINT32)467)
1021 #define VID_RS_JOB_TYPE ((UINT32)468)
1022 #define VID_RS_REPORT_NAME ((UINT32)469)
1023 #define VID_HELPDESK_LINK_ACTIVE ((UINT32)470)
1024 #define VID_URL ((UINT32)471)
1025 #define VID_PEER_PROTOCOL ((UINT32)472)
1026 #define VID_VIEW_REFRESH_INTERVAL ((UINT32)473)
1027 #define VID_COMMAND_NAME ((UINT32)474)
1028 #define VID_COMMAND_SHORT_NAME ((UINT32)475)
1029 #define VID_MODULE_DATA_COUNT ((UINT32)476)
1030 #define VID_NEW_FILE_NAME ((UINT32)477)
1031 #define VID_ALARM_LIST_DISP_LIMIT ((UINT32)478)
1032 #define VID_LANGUAGE ((UINT32)479)
1033 #define VID_ROOT ((UINT32)480)
1034 #define VID_INCLUDE_NOVALUE_OBJECTS ((UINT32)481)
1035 #define VID_RECEIVE_OUTPUT ((UINT32)482)
1036 #define VID_SESSION_STATE ((UINT32)483)
1037 #define VID_PAGE_SIZE ((UINT32)484)
1038 #define VID_EXECUTION_END_FLAG ((UINT32)485)
1039 #define VID_COUNTRY ((UINT32)486)
1040 #define VID_CITY ((UINT32)487)
1041 #define VID_STREET_ADDRESS ((UINT32)488)
1042 #define VID_POSTCODE ((UINT32)489)
1043 #define VID_FUNCTION ((UINT32)490)
1044 #define VID_RESPONSE_TIME ((UINT32)491)
1045 #define VID_QSIZE_DCI_CACHE_LOADER ((UINT32)492)
1046 #define VID_MTU ((UINT32)493)
1047 #define VID_ALIAS ((UINT32)494)
1048 #define VID_AP_INDEX ((UINT32)495)
1049 #define VID_PROTOCOL_VERSION_EX ((UINT32)496)
1050 #define VID_SCRIPT_LIST ((UINT32)497)
1051 #define VID_TOOL_LIST ((UINT32)498)
1052 #define VID_NUM_SUMMARY_TABLES ((UINT32)499)
1053 #define VID_SUMMARY_TABLE_LIST ((UINT32)500)
1054 #define VID_OVERVIEW_DCI_COUNT ((UINT32)501)
1055 #define VID_OVERVIEW_ONLY ((UINT32)502)
1056 #define VID_AGENT_CACHE_MODE ((UINT32)503)
1057 #define VID_DATE ((UINT32)504)
1058
1059 // Base variabe for single threshold in message
1060 #define VID_THRESHOLD_BASE ((UINT32)0x00800000)
1061
1062 // Map elements list base
1063 #define VID_ELEMENT_LIST_BASE ((UINT32)0x10000000)
1064 #define VID_LINK_LIST_BASE ((UINT32)0x40000000)
1065
1066 // Node info list base
1067 #define VID_NODE_INFO_LIST_BASE ((UINT32)0x60000000)
1068
1069 // Variable ranges for object's ACL
1070 #define VID_ACL_USER_BASE ((UINT32)0x00001000)
1071 #define VID_ACL_USER_LAST ((UINT32)0x00001FFF)
1072 #define VID_ACL_RIGHTS_BASE ((UINT32)0x00002000)
1073 #define VID_ACL_RIGHTS_LAST ((UINT32)0x00002FFF)
1074
1075 // Variable range for user group members
1076 #define VID_GROUP_MEMBER_BASE ((UINT32)0x00004000)
1077 #define VID_GROUP_MEMBER_LAST ((UINT32)0x00004FFF)
1078
1079 // Variable range for data collection object attributes
1080 #define VID_DCI_COLUMN_BASE ((UINT32)0x30000000)
1081 #define VID_DCI_THRESHOLD_BASE ((UINT32)0x20000000)
1082 #define VID_DCI_SCHEDULE_BASE ((UINT32)0x10000000)
1083
1084 // Variable range for event argument list
1085 #define VID_EVENT_ARG_BASE ((UINT32)0x00008000)
1086 #define VID_EVENT_ARG_LAST ((UINT32)0x00008FFF)
1087
1088 // Variable range for trap parameter list
1089 #define VID_TRAP_PLEN_BASE ((UINT32)0x00009000)
1090 #define VID_TRAP_PLEN_LAST ((UINT32)0x000093FF)
1091 #define VID_TRAP_PNAME_BASE ((UINT32)0x00009400)
1092 #define VID_TRAP_PNAME_LAST ((UINT32)0x000097FF)
1093 #define VID_TRAP_PDESCR_BASE ((UINT32)0x00009800)
1094 #define VID_TRAP_PDESCR_LAST ((UINT32)0x00009BFF)
1095 #define VID_TRAP_PFLAGS_BASE ((UINT32)0x00009C00)
1096 #define VID_TRAP_PFLAGS_LAST ((UINT32)0x00009FFF)
1097
1098 // Object information can contain variable number of parent and child objects' ids.
1099 // Because each variable in message have to have unique identifier,
1100 // we reserver a two range ids for this variables.
1101 #define VID_PARENT_ID_BASE ((UINT32)0x00003000)
1102 #define VID_PARENT_ID_LAST ((UINT32)0x00003FFF)
1103
1104 // Reservation of 0x7FFFFFFF ids for child object's list
1105 #define VID_CHILD_ID_BASE ((UINT32)0x80000000)
1106 #define VID_CHILD_ID_LAST ((UINT32)0xFFFFFFFE)
1107
1108 // Base value for custom attributes and module data
1109 #define VID_CUSTOM_ATTRIBUTES_BASE ((UINT32)0x70000000)
1110 #define VID_MODULE_DATA_BASE ((UINT32)0x71000000)
1111
1112 // Base value for overview DCI list
1113 #define VID_OVERVIEW_DCI_LIST_BASE ((UINT32)0x72000000)
1114
1115 // IP address list base
1116 #define VID_IP_ADDRESS_LIST_BASE ((UINT32)0x7F000000)
1117
1118 // Base value for cluster resource list
1119 #define VID_RESOURCE_LIST_BASE ((UINT32)0x20000000)
1120
1121 // Base value for cluster sync network list
1122 #define VID_SYNC_SUBNETS_BASE ((UINT32)0x28000000)
1123
1124 // Base value for agent's enum values
1125 #define VID_ENUM_VALUE_BASE ((UINT32)0x10000000)
1126
1127 // Base value for agent's action arguments
1128 #define VID_ACTION_ARG_BASE ((UINT32)0x10000000)
1129
1130 // Base value for agent's parameter list
1131 #define VID_PARAM_LIST_BASE ((UINT32)0x10000000)
1132 #define VID_ENUM_LIST_BASE ((UINT32)0x20000000)
1133 #define VID_PUSHPARAM_LIST_BASE ((UINT32)0x30000000)
1134 #define VID_TABLE_LIST_BASE ((UINT32)0x40000000)
1135
1136 // Base value for DCI last values
1137 #define VID_DCI_VALUES_BASE ((UINT32)0x10000000)
1138
1139 // Base value for variable names
1140 #define VID_VARLIST_BASE ((UINT32)0x10000000)
1141
1142 // Base value for network list
1143 #define VID_VPN_NETWORK_BASE ((UINT32)0x10000000)
1144
1145 // Base value for network list
1146 #define VID_OBJECT_TOOLS_BASE ((UINT32)0x10000000)
1147
1148 // Base values for table data
1149 #define VID_COLUMN_INFO_BASE ((UINT32)0x10000000)
1150 #define VID_COLUMN_NAME_BASE ((UINT32)0x10000000)
1151 #define VID_COLUMN_FMT_BASE ((UINT32)0x20000000)
1152 #define VID_ROW_DATA_BASE ((UINT32)0x30000000)
1153
1154 // Base value for event log records
1155 #define VID_EVENTLOG_MSG_BASE ((UINT32)0x10000000)
1156
1157 // Base value for syslog records
1158 #define VID_SYSLOG_MSG_BASE ((UINT32)0x10000000)
1159
1160 // Base value for trap log records
1161 #define VID_TRAP_LOG_MSG_BASE ((UINT32)0x10000000)
1162
1163 // Base value for script list
1164 #define VID_SCRIPT_LIST_BASE ((UINT32)0x10000000)
1165
1166 // Base value for session data
1167 #define VID_SESSION_DATA_BASE ((UINT32)0x10000000)
1168
1169 // Base value for SNMP walker data
1170 #define VID_SNMP_WALKER_DATA_BASE ((UINT32)0x10000000)
1171
1172 // Base value for map list
1173 #define VID_MAP_LIST_BASE ((UINT32)0x10000000)
1174
1175 // Base value for module list
1176 #define VID_MODULE_LIST_BASE ((UINT32)0x10000000)
1177
1178 // Base value for agent configs list
1179 #define VID_AGENT_CFG_LIST_BASE ((UINT32)0x10000000)
1180
1181 // Base and last values for condition's DCI list
1182 #define VID_DCI_LIST_BASE ((UINT32)0x40000000)
1183 #define VID_DCI_LIST_LAST ((UINT32)0x4FFFFFFF)
1184
1185 // Base value for DCI push data
1186 #define VID_PUSH_DCI_DATA_BASE ((UINT32)0x10000000)
1187
1188 // Base value for address list
1189 #define VID_ADDR_LIST_BASE ((UINT32)0x10000000)
1190
1191 // Base value for trap configuration records
1192 #define VID_TRAP_INFO_BASE ((UINT32)0x10000000)
1193
1194 // Base value for graph list
1195 #define VID_GRAPH_LIST_BASE ((UINT32)0x10000000)
1196 #define VID_GRAPH_ACL_BASE ((UINT32)0x20000000)
1197
1198 // Base value for system DCI list
1199 #define VID_SYSDCI_LIST_BASE ((UINT32)0x10000000)
1200
1201 // Base value for certificate list
1202 #define VID_CERT_LIST_BASE ((UINT32)0x10000000)
1203
1204 // Base value for various string lists
1205 #define VID_STRING_LIST_BASE ((UINT32)0x10000000)
1206
1207 // Base values for situation lists
1208 #define VID_SITUATION_ATTR_LIST_BASE ((UINT32)0x10000000)
1209 #define VID_INSTANCE_LIST_BASE ((UINT32)0x20000000)
1210
1211 // Base value for object links list
1212 #define VID_OBJECT_LINKS_BASE ((UINT32)0x10000000)
1213 #define VID_SUBMAP_LINK_NAMES_BASE ((UINT32)0x20000000)
1214
1215 #define VID_TABLE_COLUMN_INFO_BASE ((UINT32)0x10000000)
1216 #define VID_TABLE_DATA_BASE ((UINT32)0x20000000)
1217
1218 #define VID_JOB_LIST_BASE ((UINT32)0x10000000)
1219
1220 #define VID_COLUMN_FILTERS_BASE ((UINT32)0x10000000)
1221 #define VID_ORDERING_COLUMNS_BASE ((UINT32)0x40000000)
1222
1223 #define VID_USM_CRED_LIST_BASE ((UINT32)0x10000000)
1224
1225 #define VID_IMAGE_LIST_BASE ((UINT32)0x10000000)
1226
1227 #define VID_VLAN_LIST_BASE ((UINT32)0x10000000)
1228
1229 #define VID_NETWORK_PATH_BASE ((UINT32)0x40000000)
1230
1231 #define VID_COMPONENT_LIST_BASE ((UINT32)0x20000000)
1232
1233 #define VID_RADIO_LIST_BASE ((UINT32)0x30000000)
1234
1235 #define VID_RULE_LIST_BASE ((UINT32)0x10000000)
1236
1237 #define VID_EXTENSION_LIST_BASE ((UINT32)0x10000000)
1238
1239 #define VID_DCI_VALUES_BASE ((UINT32)0x10000000)
1240
1241 #define VID_FILE_LIST_BASE ((UINT32)0x10000000)
1242
1243 #define VID_LOC_LIST_BASE ((UINT32)0x10000000)
1244
1245 #ifdef __cplusplus
1246
1247 inline BOOL IsBinaryMsg(NXCP_MESSAGE *msg)
1248 {
1249 return ntohs(msg->flags) & MF_BINARY;
1250 }
1251
1252 #endif
1253
1254
1255 #endif /* _nms_cscp_h_ */