Microsoft Operations Manager |
The GetLogFileInfomethod retrieves the path and size of the active log files. It also returns the amount of free space, in kilobytes, for the drive on which the log files are located.
[VBScript]
ActiveDirectory.GetLogFileInfo(Path Variant, Size Variant,
FreeSpace Variant)
Long
The following example shows how to get information about the Active Directory log files.
[VBScript]
Function GetADLogSize()
Dim objActiveDirectory
Dim strPath
Dim lngSize, lngFreeSpace
strPath = ""
lngSize = -1
lngFreeSpace = -1
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
objActiveDirectory.LogFileInfo(strPath, lngSize, lngFreeSpace)
Set objActiveDirectory = Nothing
GetADLogSize = lngSize
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.