SCCMWebService..::..ReadLogFile Method
Reads the specified log file.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public LogEntry[] ReadLogFile( string computerName, string uncPath, string logFile, int maxLogLines )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function ReadLogFile ( _ computerName As String, _ uncPath As String, _ logFile As String, _ maxLogLines As Integer _ ) As LogEntry()
[SoapHeaderAttribute] [WebMethodAttribute] public: array<LogEntry^>^ ReadLogFile( String^ computerName, String^ uncPath, String^ logFile, int^ maxLogLines )
Parameters
- computerName
- Type: String
Name of the computer.
- uncPath
- Type: String
The unc path to log directory.
- logFile
- Type: String
The log file name.
- maxLogLines
- Type: Int32
The maximum amount of log lines.
Return Value
Array of LogEntry.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or Unable to get SCCM client properties for computer + computerName + because host is unreachable! |