< Back

Get-NSInfra

Mon Jan 13, 2020 9:04 pm

NAME Get-NSInfra



SYNOPSIS

The Get-NSInfra command provide information about all the Xenapp/VDA servers





SYNTAX

Get-NSInfra [[-Computers] <String[]>] [-LogErrors] [<CommonParameters>]





DESCRIPTION

Get-NSInfra provides below information





1. ServerName



2. LastBootTime



3. Total RAM



4. FreeRam



5. UsedRAM



6. RAMPercentUsed



7. Avg.CPUUsage



8. PageFile



9. AllocatedBaseSize_MB



10. PeakUsage_MB



11. CurrentUsage_MB







.EXAMPLE.1



This command provide information of all the Xenapp/VDA Server



Get-NSInfra





ServerName : Server009

LastBootTime : 3/17/2018 6:56:36 AM

Total RAM : 4

FreeRam : 0.57

UsedRAM : 3.43

RAMPercentUsed : 14.26

Avg.CPUUsage : 32.6

PageFile : C:\\pagefile.sys

AllocatedBaseSize_MB : 4352

PeakUsage_MB : 139

CurrentUsage_MB : 109

isTempPageFile : False













.EXAMPLE.2



PS C:\\Users\\nadsiddi> Get-NSInfra -Computers Server008





ServerName : Server008

LastBootTime : 3/16/2018 9:38:37 PM

Total RAM : 4

FreeRam : 1.58

UsedRAM : 2.42

RAMPercentUsed : 39.52

Avg.CPUUsage : 3.4

PageFile : C:\\pagefile.sys

AllocatedBaseSize_MB : 704

PeakUsage_MB : 173

CurrentUsage_MB : 41













.EXAMPLE.3



Using the below methoid will help to collect the error log at error.log file



Get-NSInfra -Error 'E:\\Scripts\\Nadeem-Testing\\error.log'





.EXAMPLE.4



Using the below methoid will help to catch the warning messages under the variable $Catchwarning



Get-NSInfra -WarningVariable $Catchwarning





PARAMETERS

-Computers <String[]>



Required? false

Position? 1

Default value (Get-BrokerMachine).DNSName + (Get-BrokerController).DNSName

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-LogErrors [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS