Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Get-NaSnmp


NAME
Get-NaSnmp

SYNOPSIS
Returns configuration information of the SNMP agent daemon.

SYNTAX
Get-NaSnmp [-Controller <NaController>] [<CommonParameters>]


DESCRIPTION
Returns configuration information of the SNMP agent daemon.


PARAMETERS
-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.PowerShell.SDK.Cmdlets.Snmp.SnmpStatusInfo


NOTES


Category: snmp
API: snmp-status

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

C:\PS>Get-NaSnmp


Returns configuration information of the SNMP agent daemon.


Communities : {public}
Contact : Bill Smith
IsTrapEnabled : True
Location : Main lab
Traphosts : {x3550rre8.rtprre.testdomain}


-------------- Example 2 --------------

C:\PS>(Get-NaSnmp).Communities


Get SNMP community list.


AccessControl Community
------------- ---------
ro public


-------------- Example 3 --------------

C:\PS>(Get-NaSnmp).Traphosts


Lists SNMP trap destinations.


HostName IpAddress
-------- ---------
x3550rre8.rtprre.testdomain 10.61.167.148



RELATED LINKS







 Data ONTAP® PowerShell Toolkit