UNSOLVED

amsuarez

updated

13 years ago

A

amsuarez

4 Posts

0

733

March 15th, 2014 11:00

CIFS server event log clear and backup from command line

Hi,

I think I explained my problem badly in another discussion. It proposed as a solution to use the GUI interface The manual which you mean talks about the GUI interface (Using Windows Administrative Tools with Celerra explain this) and this works successfully, but what need is to do the same (clear and save to file) from the command line.

I've tried using programs like eventquery, wevtutil, etc but neither works with Celerra VG8. This is why I've tried to do a C++ program to call Windows API Native ClearEventLog. I have not gotten it to work.

Celerra has to understand some Windows API to run the GUI interface. And here is where I am lost, neither Windows command nor windows API work.

     HANDLE h = OpenEventLog( "\\VCLSFLS9", "Security" );

     if (! ClearEventLog( h, "backup.evt") )

     {

          wprintf( L"BackupEventLog failed for initial export with %lu.\n", GetLastError() );

     }