vSphere PowerCLI Reference

Get-VMHostSnmp

Synopsis

Retrieves hosts SNMP configuration.

Syntax

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

Related Commands

Online version
Set-VMHostSNMP
Test-VMHostSNMP

Detailed Description

Retrieves hosts SNMP configuration. To specify a server different from the default one, use the -Server parameter.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given 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

VmHostSnmp

Notes

Supported only on ESX 3.5 or later.

Examples

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

Get-VMHostSNMP

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


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.