< Back

Set-iBMCSNMPTrapServer

Tue Jan 14, 2020 3:12 am

NAME Set-iBMCSNMPTrapServer



SYNOPSIS

Modify iBMC SNMP Trap Notification Server.





SYNTAX

Set-iBMCSNMPTrapServer [-Session] <RedfishSession[]> -MemberId <Int32[]> [-Enabled <Boolean[]>]

[-TrapServerAddress <String[]>] [-TrapServerPort <Int32[]>] [<CommonParameters>]





DESCRIPTION

Modify iBMC SNMP Trap Notification Server.





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



-MemberId <Int32[]>

Indicates which trap notification server to modify.

MemberId is the unique primary ID for Trap Notification Server.

Support integer value range: [0, 3]



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Enabled <Boolean[]>

Indicates Whether the trap server is enabled.

Support values are powershell boolean value: $true(1), $false(0).



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-TrapServerAddress <String[]>

Indicates the Notificate Server address.

Available values: IPv4, IPv6 address or domain name.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-TrapServerPort <Int32[]>

Indicates the Notificate Server port.

Available Value range: [1, 65535]



Required? false

Position? named

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

Null

Returns Null 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:\\> Set-iBMCSNMPTrapServer $session -MemberId 1 -Enabled $true -TrapServerAddress 192.168.2.8 -TrapServerPort

1024











RELATED LINKS

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



Get-iBMCSNMPSetting

Set-iBMCSNMPSetting

Get-iBMCSNMPTrapSetting

Set-iBMCSNMPTrapSetting

Get-iBMCSNMPTrapServer

Connect-iBMC

Disconnect-iBMC