Parallels RAS PowerShell - Status Info Example

#Establish a connection with Parallels RAS (Replace Administrator with your RAS root account). New-RASSession Administrator ###### RDS status info ###### #Adding a RAS RDS New-RDS -Server "rds.company.dom" -Username administrator #Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-Apply # Get RDS status info Get-RDSStatus -Server rds.company.dom ID Site ID Server CPU Load Memory Load Agent State -- ------ ------ ---------- ------------ -------------- 1 1 rds.company.dom 8 15 OK ###### GW status info ###### #Adding a RAS GW New-GW -Server "gw.company.dom" -Username administrator #Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-Apply # Get GW status info Get-GWStatus -Server gw.company.dom ID Site ID Server CPU Load Memory Load Agent State -- ------ ------ ---------- ------------ -------------- 1 1 gw.company.dom 13 47 OK ###### PA status info ###### #Adding a RAS PA New-PA -Server "pa.company.dom" -Username administrator #Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-Apply # Get PA status info Get-PAStatus -Server pa.company.dom ID Site ID Server CPU Load Memory Load Agent State -- ------ ------ ---------- ------------ -------------- 1 1 pa.company.dom 2 46 OK ###### Site status info ###### #Adding a RAS Site New-Site -Server "site.company.dom" -Name "MySite" -Username administrator #Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-Apply # Get Site status info Get-SiteStatus -Server site.company.dom ID Site ID Server CPU Load Memory Load Agent State -- ------ ------ ---------- ------------ -------------- 1 1 site.company.dom 0 0 OK ###### VDI Host status info ###### #Add a VDI Host servers. $VDIHost = New-VDIHost -Server "vdi.company.dom" -VDIType VmwareESXi6_0 -VDIUsername root -VDIAgentOStype Appliance -VDIAgent "vdiagent.company.do" -Username root #Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-Apply # Get VDI Host status info Get-VDIHostStatus -Id $VDIHost.Id ID Site ID Server CPU Load Memory Load Agent State -- ------ ------ ---------- ------------ -------------- 1 1 vdi.company.dom 18 60 OK #End the current RAS session. Remove-RASSession