0.9b (c) 1995 Peter Childs
The function clears and optionally saves the audit log file of a computer.
Syntax
MyRc = NetMisc(NETAUDITLOGCLEAR, SrvName, save2File)
Parameters
The parameters required and returned are:
SrvName The computer name of the server to perform the operation on. If the computer is local use '' as the value for the server name
save2File A string assigning a name for an optional backup file. The calling application must have write privileges for the path specified by this parameter. If the path name is relative, it is assumed to be relative to the IBMLAN\LOGS directory
Example
/* Clear the audit log file and make a backup copy of it */ call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs' call LoadLsRxutFuncs NETAUDITLOGCLEAR = 580 SrvName = '\\DOMAIN_CONTRLR' save2File = 'AUDITLOG.001' myRc = NetMisc(NETAUDITLOGCLEAR, SrvName, save2File) if myRc <> '0' then do say 'Got error from NetMisc() ' myRc exitRc = 9 end else do say 'The operation completed successfully' exitRc = 0 end call DropLsRxutFuncs call RxFuncDrop 'LoadLsRxutFuncs' exit exitRc
Example Output
The operation completed successfully
Inf-HTML End Run - Successful