Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Invoke-NaEmsAutosupportLog


NAME
Invoke-NaEmsAutosupportLog

SYNOPSIS
This cmdlet is used by applications to log specific events occurring on a ho
st system.

SYNTAX
Invoke-NaEmsAutosupportLog [-ComputerName] <String> [-EventId] <Int64> [-Eve
ntSource] <String> [-AppVersion] <String> [-Category] <String> [-EventDescri
ption] <String> [-LogLevel] <Int32> [-GenerateAutosupport] [-Controller <NaC
ontroller>] [<CommonParameters>]


DESCRIPTION
This cmdlet is used by applications to log specific events occurring on a ho
st system.


PARAMETERS
-ComputerName <String>
Host name invoking the API.

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

-EventId <Int64>
ID of event.

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

-EventSource <String>
Name of the application invoking the API.

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

-AppVersion <String>
Version of application invoking the API.

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

-Category <String>
Application defined category of the event.

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

-EventDescription <String>
Description of event to log. An application defined message to log.

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

-LogLevel <Int32>
Log level. Accepted values are 0 for 'emergency', 1 for 'alert', 2 for
'critical', 3 for 'error', 4 for 'warning', 5 for 'notice', 6 for 'info'
, and 7 for 'debug'.

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

-GenerateAutosupport
If 'true', an AutoSupport message will be generated.

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

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

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



NOTES


Category: ems
API: ems-autosupport-log

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

C:\PS>Invoke-NaEmsAutosupportLog -ComputerName "host1" -EventId 100 -EventSo
urce "powershell" -AppVersion "2.0" -Category "test" -EventDescription "this
is a test message." -LogLevel 6


Log a test EMS log message.






RELATED LINKS







 Data ONTAP® PowerShell Toolkit