Build Some Automatic Report
Posted: 29 Sep 2010 07:27
Hello Everybody,
each minute I produce this log file:
Heap_summary_information_2010-09-29-15.09.00.LOG
Heap_summary_information_2010-09-29-15.10.00.LOG
Heap_summary_information_2010-09-29-15.11.00.LOG
.................................
With inside this information:
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation. All rights reserved.
-------------------------------------------------------------
Session ID: 0 Total Desktop: ( 7360 KB - 11 desktops)
WinStation\Desktop Heap Size(KB) Used Rate(%)
-------------------------------------------------------------
WinSta0\Default 3072 4.1
WinSta0\Disconnect 64 4.0
WinSta0\Winlogon 128 9.7
Service-0x0-3e7$\Default 512 13.7
Service-0x0-3e4$\Default 512 1.8
Service-0x0-3e5$\Default 512 0.5
SAWinSta\SADesktop 512 0.5
__X78B95_89_IW\__A8D9S1_42_ID 512 0.4
Service-0x0-13280$\Default 512 1.4
Service-0x0-2f18567$\Default 512 1.3
Service-0x0-18b601$\Default 512 1.9
-------------------------------------------------------------
My goal is to build some report, 1 time at day, that read each row, and create multiple file like this
File 1:
WinSta0_Default_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 WinSta0\Default 4.1
Heap_summary_information_2010-09-29-15.10.00 WinSta0\Default 4.1
Heap_summary_information_2010-09-29-15.11.00 WinSta0\Default 4.1
File 2:
WinSta0_Disconnect_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 WinSta0\Disconnect 4.0
Heap_summary_information_2010-09-29-15.10.00 WinSta0\Disconnect 4.0
Heap_summary_information_2010-09-29-15.11.00 WinSta0\Disconnect 4.0
......
FILE n:
Service-0x0-18b601$_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 Service-0x0-3e7$\Default 1.9
Heap_summary_information_2010-09-29-15.10.00 Service-0x0-3e7$\Default 1.9
Heap_summary_information_2010-09-29-15.11.00 Service-0x0-3e7$\Default 1.9
The word Default can be omitted
It's possible to do this work with a script?
Regards
Dario
each minute I produce this log file:
Heap_summary_information_2010-09-29-15.09.00.LOG
Heap_summary_information_2010-09-29-15.10.00.LOG
Heap_summary_information_2010-09-29-15.11.00.LOG
.................................
With inside this information:
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation. All rights reserved.
-------------------------------------------------------------
Session ID: 0 Total Desktop: ( 7360 KB - 11 desktops)
WinStation\Desktop Heap Size(KB) Used Rate(%)
-------------------------------------------------------------
WinSta0\Default 3072 4.1
WinSta0\Disconnect 64 4.0
WinSta0\Winlogon 128 9.7
Service-0x0-3e7$\Default 512 13.7
Service-0x0-3e4$\Default 512 1.8
Service-0x0-3e5$\Default 512 0.5
SAWinSta\SADesktop 512 0.5
__X78B95_89_IW\__A8D9S1_42_ID 512 0.4
Service-0x0-13280$\Default 512 1.4
Service-0x0-2f18567$\Default 512 1.3
Service-0x0-18b601$\Default 512 1.9
-------------------------------------------------------------
My goal is to build some report, 1 time at day, that read each row, and create multiple file like this
File 1:
WinSta0_Default_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 WinSta0\Default 4.1
Heap_summary_information_2010-09-29-15.10.00 WinSta0\Default 4.1
Heap_summary_information_2010-09-29-15.11.00 WinSta0\Default 4.1
File 2:
WinSta0_Disconnect_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 WinSta0\Disconnect 4.0
Heap_summary_information_2010-09-29-15.10.00 WinSta0\Disconnect 4.0
Heap_summary_information_2010-09-29-15.11.00 WinSta0\Disconnect 4.0
......
FILE n:
Service-0x0-18b601$_2010-09-29.txt
that contains:
Heap_summary_information_2010-09-29-15.09.00 Service-0x0-3e7$\Default 1.9
Heap_summary_information_2010-09-29-15.10.00 Service-0x0-3e7$\Default 1.9
Heap_summary_information_2010-09-29-15.11.00 Service-0x0-3e7$\Default 1.9
The word Default can be omitted
It's possible to do this work with a script?
Regards
Dario