下面是我對UCSPowerShell的問題爲UCS
Remove-Item F:\Logs\UCS\*
$server= Read-Host -Prompt 'Please enter UCS IP'
$Chasis= '(ChassisId 1)'
connect-UCS $server
Get-UcsTechSupport -PathPattern 'F:\Logs\UCS\${ucs}-techsupp-chassis.tar' -RemoveFromUcs -TimeoutSec 1200 -$Chasis -CimcId all
我得到以下錯誤,當我嘗試運行它的腳本..
Get-UcsTechSupport : A positional parameter cannot be found that accepts argument '-ChassisId 1'.
At F:\Logs\ucs1.ps1:5 char:1
+ Get-UcsTechSupport -PathPattern 'F:\Logs\UCS\${ucs}-techsupp-chassis.tar' -Remov ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-UcsTechSupport], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Cisco.Ucs.Cmdlets.GetUcsTechSupport
請格式化你的代碼。 (http://stackoverflow.com/help/formatting) – Chostakovitch