PowerCLI Reference

Get-VMHostSnmp

Synopsis

This cmdlet retrieves hosts SNMP configuration.

Syntax

Get-VMHostSnmp [[-Server] <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-VMHostSNMP
Test-VMHostSNMP

Detailed Description

This cmdlet retrieves hosts SNMP configuration. To specify a server different from the default one, use the Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsetrue (ByValue)

Return Type

Zero or more VmHostSnmp objects

Notes

Examples

-------------- Example 1 --------------

Get-VMHostSNMP

Retrieves the host SNMP configuration. Operates on the default server which must be an ESX host.


Copyright © VMware, Inc. All rights reserved.