Dumps Kernel data to the KERNEL.DAT file. Instead of creating a new file subsequent calls to this function will append Kernel data to the KERNEL.DAT file.
Syntax
DumpKernel(iMode, sName)
iMode:
The Kernel data to dump:
0x0001 |
Dump general statistics. |
0x0002 |
Dump the task. |
0x0004 |
Dump the I/O device. |
0x0008 |
Dump the driver. |
0x0010 |
Dump netstat. (This mode is deprecated and no longer active in version 7.10 or later.) |
0x0020 |
Dump the table. |
0x0040 |
Dump the queue. |
0x0100 | Dump list of current SCADA parameter settings |
0x4000 |
Dump in verbose mode. |
0x8000 |
Dump kernel data in non-verbose mode. |
You can select any one of the above modes or may add them together to get more than one type of information. For example, to dump driver and I/O device data in verbose mode, set iMode to 0x400c (0x0004 + 0x0008 + 0x4000). Using 0x4000 on its own will dump no data, it needs to be combined with another mode.
sName:
The queue or table name (if "", returns data for all queues or tables). Only valid if iMode is 0x0020 and 0x0040.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
Example
DumpKernel(0x8000, "");
!Dump the Kernel data
See Also
Published June 2018