< Back

Remove-ZabbixHostInterface

Sun Jan 19, 2020 6:13 pm

NAME Remove-ZabbixHostInterface



SYNOPSIS

Remove host interface





SYNTAX

Remove-ZabbixHostInterface [[-HostID] <String>] [-InterfaceId] <Array> [-Port] <String> [[-jsonrpc] <String>]

[[-session] <String>] [[-id] <String>] [[-URL] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Remove host interface





PARAMETERS

-HostID <String>



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-InterfaceId <Array>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Port <String>



Required? true

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-jsonrpc <String>



Required? false

Position? 4

Default value ($global:zabSessionParams.jsonrpc)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-session <String>



Required? false

Position? 5

Default value ($global:zabSessionParams.session)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-id <String>



Required? false

Position? 6

Default value ($global:zabSessionParams.id)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-URL <String>



Required? false

Position? 7

Default value ($global:zabSessionParams.url)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



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, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ZabbixHost | ? name -match "host02" | Get-ZabbixHostInterface | ? port -Match 31021 |

Remove-ZabbixHostInterface



Remove single host interface









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Remove-ZabbixHostInterface -interfaceid (Get-ZabbixHost | ? name -match "host02" |

Get-ZabbixHostInterface).interfaceid



Remove all interfaces from host









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-ZabbixHost | ? name -match hostName | ? name -notmatch otherHostName | Get-ZabbixHostInterface | ? port

-match 31021 | Remove-ZabbixHostInterface



Remove interfaces by port











RELATED LINKS