Data ONTAP® PowerShell Toolkit

Cmdlet: Invoke-NaSnmpGet


NAME
Invoke-NaSnmpGet

SYNOPSIS
Retrieves the value of a snmp object.

SYNTAX
Invoke-NaSnmpGet [-OID] <String> [-Raw] [-Controller <NaController>] [-Warni
ngAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>
]


DESCRIPTION
Retrieves the value of a snmp object. This is a convenience method, not a h
igh-performance SNMP query tool.


PARAMETERS
-OID <String>
Fully qualified object identifier of a snmp object. Only numeric OID's (
ex: .1.3.6.1.4.1.789.1.1.1.0) are allowed.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Raw
Specify Raw to get a string value. Otherwise, a hashtable is written to
the output.

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

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

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

-WarningAction <ActionPreference>


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

-WarningVariable <String>


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
System.Object


NOTES


Category: snmp
API: snmp-get

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

C:\PS>Invoke-NaSnmpGet 1.3.6.1.4.1.789.1.1.2.0


Get the value of a single OID.

If 'IsValueHexadecimal' is true, the string returned in 'Value' is the hexad
ecimal representation of the octet string returned by a snmp call to the OID
. This output is not present if 'Value' is a normal string.


Name Value
---- -----
IsValueHexadecimal
Value NetApp Release 7.3.1: Thu Jan 8 01:17:51 PST
...


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

C:\PS>Invoke-NaSnmpGet 1.3.6.1.4.1.789.1.1.2.0 -Raw


Get the value of a single OID and write it to the pipeline in string form.


NetApp Release 7.3.1: Thu Jan 8 01:17:51 PST 2009



RELATED LINKS
Invoke-NaSnmpGetNext
Invoke-NaSnmpWalk







 Data ONTAP® PowerShell Toolkit