< Back

Get-iBMCSNMPTrapServer

Tue Jan 14, 2020 2:57 am

NAME Get-iBMCSNMPTrapServer



SYNOPSIS

Get iBMC SNMP Trap Notification Servers.





SYNTAX

Get-iBMCSNMPTrapServer [-Session] <RedfishSession[]> [<CommonParameters>]





DESCRIPTION

Get iBMC SNMP Trap Notification Servers.





PARAMETERS

-Session <RedfishSession[]>

iBMC redfish session object which is created by Connect-iBMC cmdlet.

A session object identifies an iBMC server to which this cmdlet will be executed.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

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

PSObject[][]

Returns PSObject Array indicates SNMP Trap Notification Servers if cmdlet executes successfully.

In case of an error or warning, exception will be returned.





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



PS C:\\>$credential = Get-Credential



PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> Get-iBMCSNMPTrapServer -Session $session



Host : 10.1.1.2

MemberId : 0

BobEnabled : False

Enabled : False

TrapServerAddress :

TrapServerPort : 300



Host : 10.1.1.2

MemberId : 1

BobEnabled : False

Enabled : True

TrapServerAddress : 192.168.2.8

TrapServerPort : 310



Host : 10.1.1.2

MemberId : 2

BobEnabled : False

Enabled : False

TrapServerAddress : 192.168.2.7

TrapServerPort : 163



Host : 10.1.1.2

MemberId : 3

BobEnabled : True

Enabled : True

TrapServerAddress : 10.10.10.2

TrapServerPort : 202











RELATED LINKS

https://github.com/Huawei/Huawei-iBMC-Cmdlets



Get-iBMCSNMPSetting

Set-iBMCSNMPSetting

Get-iBMCSNMPTrapSetting

Set-iBMCSNMPTrapSetting

Set-iBMCSNMPTrapServer

Connect-iBMC

Disconnect-iBMC