The Send-CVLogFile cmdlet sends the log files for a specific client or job to Commvault support and to any specified email address.
Before you can use this cmdlet, you must log on to your CommCell environment using the Connect-CVServer cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.
Syntax
Send-CVLogFile -ClientName String [-EmailAddr String] [-Force] [-WhatIf] [-Confirm] [CommonParameters]Send-CVLogFile -JobId int32 [-EmailAddr String] [-Force] [-WhatIf] [-Confirm] [CommonParameters]Required Parameters
|
Parameter |
Description |
Data type |
Values |
Accepts pipeline input? |
Accepts wildcard characters? |
Type of parameter |
|---|---|---|---|---|---|---|
|
|
The name of the client. |
String |
No |
No |
Named |
|
|
|
The ID of the job. |
Int32 |
The default value is 0. |
No |
No |
Named |
Optional Parameters
Commvault Parameters
|
Parameter |
Description |
Data type |
Accepts pipeline input? |
Accepts wildcard characters? |
Type of parameter |
|---|---|---|---|---|---|
|
– |
The email address to send the log files to. |
String |
No |
No |
Named |
Microsoft PowerShell Parameters
You can use the following Microsoft PowerShell parameters:
-
Debug
-
ErrorAction
-
ErrorVariable
-
OutBuffer
-
OutVariable
-
PipelineVariable
-
Verbose
-
WarningAction
-
WarningVariable
-
Force
-
Confirm
-
WhatIf
Note
Only a few cmdlets support Force, Confirm, and WhatIf parameters.
For more information, see "About Common Parameters" in the Microsoft PowerShell documentation.
Input
This cmdlet does not support input.
Output
A message that indicates whether the log files were sent successfully.
Examples
Send Log Files from a Client
The following example sends log files from a client in your CommCell environment, to Commvault support.
Send-CVLogFile -ClientName carbonwincs1
Send Log Files from a Job
The following example sends log files for job 175, to Commvault support and to the specified email address.
Send-CVLogFile -JobId 175 -EmailAddr admin@testlab.mycompany.com