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