Skip to main content
SnapCenter 4.8 cmdlets

Invoke-DiagnosticLogCollection

Contributors

Gets SnapCenter log files.

Syntax

Invoke-DiagnosticLogCollection [-SnapCenter]  <>  [-Hosts]  <String>  [-svms]  <String>  [-vcenter]  <String>  [-joblogs]  <Int64>  [-Cluster]  <String>

Detailed Description

Gets SnapCenter log files. Log files are returned in a .zip file. You can retrieve all SnapCenter logs, Svms, Vcenter, Cluster or logs for a individual plug-in or SnapCenter instance. You can also get logs for a specified job.

Parameters

Name Description Required? Pipeline Input Default Value

SnapCenter

false

true (ByPropertyName)

Hosts

false

true (ByPropertyName)

svms

false

true (ByPropertyName)

vcenter

false

true (ByPropertyName)

joblogs

false

true (ByPropertyName)

Cluster

false

true (ByPropertyName)

Examples

Example 1: Retrieving all logs

 Invoke-DiagnosticLogCollection -SnapCenter

This example syntax retrieves all log files.

Example 2: Retrieving logs for a designated jobs

 Invoke-DiagnosticLogCollection -Joblogs 1234,1235

This example syntax retrieves logs for job ID 1234 ad 1235.

Example 3: Retrieving Cluster logs

 Invoke-DiagnosticLogCollection -Cluster host123

This example syntax retrieves all cluster node logs.

Example 4: Retrieving Hosts logs

 Invoke-DiagnosticLogCollection -Hosts hostname1,hostname2

This example syntax retrieves all the hosts server,plugin and config logs.

Example 5: Retrieving svms logs

 Invoke-DiagnosticLogCollection -svms Vserver1,Vserver2

This example syntax retrieves all the vserver logs.