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