|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcEmsSnmpHistory
NAME
Get-NcEmsSnmpHistory
SYNOPSIS
Get EMS SNMP history.
SYNTAX
Get-NcEmsSnmpHistory [[-Node] <String[]>] [[-SequenceNumber] <String[]>] [[-
MessageName] <String[]>] [-Attributes <EmsSnmpHistoryInfo>] [-Controller <Nc
Controller[]>] [<CommonParameters>]
Get-NcEmsSnmpHistory -Template [-Controller <NcController[]>] [<CommonParame
ters>]
Get-NcEmsSnmpHistory -Query <EmsSnmpHistoryInfo> [-Attributes <EmsSnmpHistor
yInfo>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get EMS SNMP history.
PARAMETERS
-Node <String[]>
Node emitting the EMS message. Data ONTAP wildcards are permitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SequenceNumber <String[]>
The message sequence number. Data ONTAP wildcards are permitted.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-MessageName <String[]>
The emitted message's name. Data ONTAP wildcards are permitted.
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <EmsSnmpHistoryInfo>
For improved scalability in large clusters, provide an EmsSnmpHistoryInf
o object with various fields set to indicate which fields to return on a
ll objects. Undesired fields should remain set to null. Use "Get-NcEms
SnmpHistory -Template" to get the initially empty EmsSnmpHistoryInfo obj
ect. If not specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty EmsSnmpHistoryInfo object for use with advanced
queries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <EmsSnmpHistoryInfo>
For advanced queries, provide a EmsSnmpHistoryInfo object with various f
ields set to indicate which records to retrieve. Other fields should re
main set to null. Use "Get-NcEmsSnmpHistory -Template" to get the initi
ally empty EmsSnmpHistoryInfo object.
Required? true
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.C.Types.Ems.EmsSnmpHistoryInfo
NOTES
Category: ems
API: ems-snmp-history-get-iter
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcEmsSnmpHistory -SequenceNumber 1
Get EMS SNMP messages with a sequence number of 1.
DropsSincePreviousTime :
Message : app.log.info
MessageName : app.log.info
Node : fas3070cluster01-01
PreviousTime :
PreviousTimeDT :
SeqNum : 1
SnmpAddress : {10.61.169.73:public}
Time : 1333129342
TimeDT : 3/30/2012 1:42:22 PM
-------------- Example 2 --------------
C:\PS>$q = Get-NcEmsSnmpHistory -Template
$q.SnmpAddress = "10.61.169.73*"
Get-NcEmsSnmpHistory -Query $q
Get the EMS SNMP messages that match the given query.
DropsSincePreviousTime :
Message : app.log.info
MessageName : app.log.info
Node : fas3070cluster01-01
PreviousTime :
PreviousTimeDT :
SeqNum : 1
SnmpAddress : {10.61.169.73:public}
Time : 1333129342
TimeDT : 3/30/2012 1:42:22 PM
RELATED LINKS
Remove-NcEmsSnmpHistory
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|