Good afternoon!
Is it possible to monitor a CPU load in WinCC OA?
Thank you for your answers!
Monitoring CPU load in WinCC OA
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Monitoring CPU load in WinCC OA
Hello Mr. Fedosov,
there is no predefined functionality available in WinCC OA to monitor the CPU-load.
Maybe you can find tools for the operating system or add-ons which return the necessary information.
Please tell us what the functionalitiy in detail is you want to implement.
Best Regards
Leopold Knipp
Senior Support Specialist
there is no predefined functionality available in WinCC OA to monitor the CPU-load.
Maybe you can find tools for the operating system or add-ons which return the necessary information.
Please tell us what the functionalitiy in detail is you want to implement.
Best Regards
Leopold Knipp
Senior Support Specialist
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Monitoring CPU load in WinCC OA
On Linux this is rather simple as the /proc pseudo filesystem provides this information directly from the kernel.
I made a small panel which shows a trend with 3 curves: userCPU (this is the sum of normal processes executing in user mode and
niced processes executing in user mode), systemCPU and totalCPU (sum of the two others).
The number of CPUs is also read from the kernel via /proc/cpuinfo
Have fun! https://www.winccoa.com/fileadmin/image ... 0302-3.pnl
I made a small panel which shows a trend with 3 curves: userCPU (this is the sum of normal processes executing in user mode and
niced processes executing in user mode), systemCPU and totalCPU (sum of the two others).
The number of CPUs is also read from the kernel via /proc/cpuinfo
Have fun! https://www.winccoa.com/fileadmin/image ... 0302-3.pnl
- Attachments
-
- cpu-20120302-3.pnl
- (2.99 KiB) Downloaded 270 times
-
- cpu-20120302-2.pnl
- (2.99 KiB) Downloaded 268 times
-
- cpu-20120302.pnl
- (2.98 KiB) Downloaded 266 times
-
- cpu.pnl
- (2.65 KiB) Downloaded 253 times
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
Re: Monitoring CPU load in WinCC OA
The Lab section of the portal shows a library called 'Performance helper'. It shows how the Windows API is used to interrogate figures like the one you ask for ( and many others). Of course, the Lab contains software that is not officially supported. You'd need a C++ compiler to build a Control DLL that can call the OS.
The easiest way would be to call a command line tool outputting its result to an ascii file and reading this from a script. Look at the following link:
http://uk.answers.yahoo.com/question/in ... 640AAzIcVi
Good luck !
The easiest way would be to call a command line tool outputting its result to an ascii file and reading this from a script. Look at the following link:
http://uk.answers.yahoo.com/question/in ... 640AAzIcVi
Good luck !
- Konstantin
- Posts:3
- Joined: Tue Feb 28, 2012 7:29 am
Re: Monitoring CPU load in WinCC OA
Thank you very much for your answers. And if it is needed to monitor a CPU load under Solaris OS, is it possible to execute a console command from a WinCC OA CTRL script?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Monitoring CPU load in WinCC OA
Yes, of course. Call the external command via our system() CTRL function, redirect the output to a tmpfile and read this file afterwards from the CTRL script.
Have a look onto the Solaris mpstat command.
Have a look onto the Solaris mpstat command.