|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Add-NaSnmpTrapHost
NAME
Add-NaSnmpTrapHost
SYNOPSIS
Adds a host to the list of trap hosts.
SYNTAX
Add-NaSnmpTrapHost [-Hosts] <String[]> [-Controller <NaController>] [-Warnin
gAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
DESCRIPTION
Adds a host to the list of trap hosts.
PARAMETERS
-Hosts <String[]>
Specify the host(s) to be added. Host may be specified in Domain Name f
ormat such as MyHost.MyNetwork.com, or as an IP address such as 10.20.30
.40. If a Domain Name is used, the host must resolve to an IP address.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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.Collections.Hashtable
NOTES
Category: snmp
API: snmp-traphost-add
-------------- Example 1 --------------
C:\PS>Add-NaSnmpTrapHost 10.10.10.10 10.10.10.20
Name Value
---- -----
Communities {NetApp.Ontapi.Filer.Snmp.CommunityInfo}
Traphosts {x3550rre8.rtprre.testdomain, 10.10.10.10, 10
...
Location RTP Building 1 3rd floor lab
IsTrapEnabled True
Contact
RELATED LINKS
Remove-NaSnmpTrapHost
Get-NaSnmp
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|