Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Remove-NaSnmpTrapHost


NAME
Remove-NaSnmpTrapHost

SYNOPSIS
Deletes a host from the list of trap hosts.

SYNTAX
Remove-NaSnmpTrapHost [-Hosts] <String[]> [-Controller <NaController>] [-Wha
tIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Deletes a host from the list of trap hosts.


PARAMETERS
-Hosts <String[]>
Specify the host(s) to be removed. Host may be specified in Domain Name
format 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 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

-WhatIf


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

-Confirm


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.Types.Snmp.SnmpStatusInfo


NOTES


Category: snmp
API: snmp-traphost-delete

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

C:\PS>Remove-NaSnmpTrapHost 10.10.10.10 10.10.10.20


Removes the specified trap destinations.


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



RELATED LINKS
Add-SnmpTrapHost
Get-NaSnmp







 Data ONTAP® PowerShell Toolkit