< Back

Get-iBMCSMTPSetting

Tue Jan 14, 2020 2:56 am

NAME Get-iBMCSMTPSetting



SYNOPSIS

Get iBMC SMTP Basic Settings.





SYNTAX

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





DESCRIPTION

Get iBMC SMTP Basic Settings.





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 indicates SMTP Basic Settings 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-iBMCSMTPSetting -Session $session



Host : 10.1.1.2

ServiceEnabled : True

ServerAddress : smtp.qq.com

TLSEnabled : True

AnonymousLoginEnabled : False

SenderUserName : smtp-sender@huawei.com

SenderAddress : xmufive@qq.com

EmailSubject : Server Alert

EmailSubjectContains : {HostName, BoardSN, ProductAssetTag}

AlarmSeverity : Major











RELATED LINKS

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



Set-iBMCSMTPSetting

Get-iBMCSMTPRecipients

Set-iBMCSMTPRecipient

Connect-iBMC

Disconnect-iBMC