< Back

Set-iBMCSyslogServer

Tue Jan 14, 2020 3:14 am

NAME Set-iBMCSyslogServer



SYNOPSIS

Modify iBMC Syslog Notification Server.





SYNTAX

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

<String[]>] [-Port <Int32[]>] [-LogType <LogType[][]>] [<CommonParameters>]





DESCRIPTION

Modify iBMC Syslog 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 Syslog notification server to modify.

MemberId is the unique primary ID for Syslog 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 this server's syslog notification 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



-Address <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



-Port <Int32[]>

Indicates the Notificate Server port.

Support integer value range: [1, 65535]



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-LogType <LogType[][]>

Indicates the Log type that should be notificated.

Available combined value set: OperationLog, SecurityLog, EventLog.



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:\\> $LogType = ,@("OperationLog", "SecurityLog", "EventLog")

PS C:\\> Set-ibmcSyslogServer $session -MemberId 1 -Enabled $true -Address 192.168.14.9 -Port 515 -LogType $LogType











RELATED LINKS

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



Get-iBMCSyslogSetting

Set-iBMCSyslogSetting

Connect-iBMC

Disconnect-iBMC