Skip to content

Set-OVApplianceAuditLogForwarding

Syntax

Set-OVApplianceAuditLogForwarding
    [-Enable]
    [-ComputerName <String[]>]
    [-Port <Int>]
    [-Protocol <String>]
    [-RemoveComputerName <String[]>]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]
Set-OVApplianceAuditLogForwarding
    [-Disable]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

HPE OneView can forward the internal audit log entries to a remote syslog server, in standard Syslog format. This Cmdlet will chnage the current status, remote Syslog destination and port to be configured on the appliance.

Info

Minimum required privileges: Infrastructure administrator

Examples

Example 1

Set-OVApplianceAuditLogForwarding -Enable -ComputerName MyTargetHost1.domain.com

Enable appliance remote Syslog audit log forwarding to the specified host.

Example 2

Set-OVApplianceAuditLogForwarding -Enable -ComputerName MyTargetHost1.domain.com, MyTargetHost2.domain.com -Port 5514

Enable appliance remote Syslog audit log forwarding to the specified hosts and custom UDP target port.

Example 3

Set-OVApplianceAuditLogForwarding -Enable -ComputerName MyTargetHost1.domain.com, MyTargetHost2.domain.com -Port 5514 -Protocol TLS

Enable appliance remote Syslog audit log forwarding to the specified hosts and custom UDP target port.

Example 4

Set-OVApplianceAuditLogForwarding -RemoveComputerName MyTargetHost2.domain.com

Remove the specified host from the existing remote Syslog audit log forwarding configuration.

Example 5

Set-OVApplianceAuditLogForwarding -Disable

Disable remote Syslog audit log forwarding configuration.

Parameters

-ApplianceConnection <Object>

Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters? False

-ComputerName <String[]>

The target remote Syslog server IP Address or FQDN.

Aliases None
Required? True
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Port <Int>

The target remote Syslog server port if not using the default 514/UDP port.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-RemoveComputerName <String[]>

Specify one or more remote Syslog server IP Address or FQDN to remove from the configuration.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Disable <SwitchParameter>

Using this parameter will disable remote Syslog audit log forwarding on the specified appliance.

Aliases None
Required? True
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Enable <SwitchParameter>

Using this parameter will enable remote Syslog audit log forwarding on the specified appliance.

Aliases None
Required? False
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Protocol <String>

Supported values:

* UDP
* TLS

Specify the protocol needed for the provided destination(s). If not specified, the default is UDP.

Aliases None
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, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this Cmdlet.

Return Values

The appliance audit log forwarding configuration.