Start a Conversation

Unsolved

This post is more than 5 years old

A

3224

February 26th, 2014 07:00

CIFS server event log clear and backup

We want to clear and backup event log from a batch command, in concrete the security context, on a remote machine. We have developed a small application in C# and C++ using an old Windows 2000 API which saves the event viewer log to a specified directory, it works with all kinds of Windows but no with Celerra.

  HANDLE h = OpenEventLog(server, "Security");
  
if(!BackupEventLog(h,"backup.evt"))
  
{
  wprintf
(L"BackupEventLog failed for initial export with %lu.\n", GetLastError());
  
}
  
return 1;

We need the evt file. Any suggestion?


Thanks.

4 Operator

 • 

8.6K Posts

February 26th, 2014 10:00

Which UNC path do you use for the server ?

4 Operator

 • 

8.6K Posts

February 26th, 2014 10:00

Can you manually get to the security.evt through the C$ share ?

See the VNX CIFS manual – esp. the part about “change the location of the Windows security log” / auto archiving and the “Using Windows Administrative Tools on VNX”

4 Posts

February 27th, 2014 07:00

Hi,where I put server is "\\ECFILESCE9I", is the name of the Celerra machine.

I can download the security.evt in the own machine, but if I try from my local computer I only can download it in txt or csv format. With my process it doesn' work, it returns an error 3 in the backup, incorrect or invalid path. The process of open is correct. I'm not sure if the UNC path is correct, I'm using the same for other machines with Windows.

4 Operator

 • 

8.6K Posts

February 27th, 2014 08:00

Please see the manuals I have mentioned

No Events found!

Top