Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcEmsConfig


NAME
Set-NcEmsConfig

SYNOPSIS
Set the EMS Configuration.

SYNTAX
Set-NcEmsConfig [[-MailFrom] <String>] [[-MailServer] <String>] [[-Suppressi
on] [<Boolean>]] [[-Console] [<Boolean>]] [[-MaxLogShowSize] <Int32>] [[-Tra
ceLogSize] <Int32>] [[-ConsoleLogLevel] <String>] [[-MaxTargetLogSize] <Stri
ng>] [[-MaxTargetEventSize] <String>] [-Controller <NcController[]>] [-WhatI
f] [-Confirm] [<CommonParameters>]


DESCRIPTION
Set the EMS Configuration.


PARAMETERS
-MailFrom <String>
The from address of ems mail.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MailServer <String>
The mail server to use when sending mail.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Suppression [<Boolean>]
If true, suppression will be used.

Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Console [<Boolean>]
If true, logging will be used.

Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MaxLogShowSize <Int32>
Maximum number of events to show.

Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-TraceLogSize <Int32>
Maximum number of traces kept.

Required? false
Position? 6
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ConsoleLogLevel <String>
Console logging level. Possible values:
"node_fault" - A data corruption has been detected or the node i
s unable to provide client service
"svc_fault" - A temporary loss of service has been detected, ty
pically a transient software fault
"node_error" - A hardware error has been detected which is not i
mmediately fatal
"svc_error" - A software error has been detected which is not i
mmediately fatal
"warning" - A high-priority message, does not indicate a faul
t
"notice" - A normal-priority message, does not indicate a fa
ult
"info" - A low-priority message, does not indicate a fault
"debug" - A debugging message, typically suppressed from cu
stomer
"var" - Message has variable severity, selected at runtim
e

Required? false
Position? 7
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MaxTargetLogSize <String>
The target upper limit of the event log file size in bytes. Used by auto
suppression to control growth of log file size.

Required? false
Position? 8
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-MaxTargetEventSize <String>
Maximum bytes per event per week. Used by autosuppression to control gro
wth of log file size.

Required? false
Position? 9
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


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 and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
NetApp.Ontapi.Filer.C.Ems810.EmsConfigInfo


NOTES


Category: ems
API: ems-config-modify
Family: cluster

-------------- Example 1 --------------

C:\PS>Set-NcEmsConfig -MailFrom admin@localhost


Set the mail from address to admin@localhost for the local cluster EMS confi
guration.


Console : True
ConsoleLogLevel : node_fault
MailFrom : admin@localhost
MailServer : localhost
MaxLogShowSize : 2048
MaxTargetEventBytes : 262144
MaxTargetLogSize : 5242880
Suppression : True
TraceLogSize : 2048



RELATED LINKS
Get-NcEmsConfig







 Data ONTAP® PowerShell Toolkit