这是来自PowerShell的示例代码:
$SPNAME = Read-Host "Please enter Server name with org-root/ls-<SNAME>"
$SN = Get-UcsBlade -AssignedToDn $SPNAME | select Serial
$ChassisID = Get-UcsBlade -AssignedToDn $SPNAME | select ChassisId
Write-Host $SN
Write-Host $ChassisID
$ChassisName = Get-UcsChassis $ChassisID | select UsrLbl
Write-Host $ChassisName
此处ChassisID的输出显示为1.我希望它显示变量值而不是ID值。