Set-SyslogServerSet-SyslogServer

摘要Synopsis

设置 syslog 服务器终结点。Sets the syslog server endpoint.

语法Syntax

Set-SyslogServer [-Remove] [[-ServerName] <Object>] [-NoEncryption] [-SkipCertificateCheck] [-UseUDP]
 [-SkipCNCheck] [[-ServerPort] <Object>] [-AsJob]

示例Examples

示例 1Example 1

Set-SyslogServer -ServerName <FQDN or IP address of Syslog server>

示例 2Example 2

-NoEncryption

示例 3Example 3

-SkipCertificateCheck

示例 4Example 4

-SkipCNCheck

示例 5Example 5

-UseUDP

示例 6Example 6

Set-SyslogServer -Remove

parametersParameters

-ServerName-ServerName

Syslog 服务器的 FQDN 或 IPv4 地址。The FQDN or IPv4 Address of syslog server. 如果没有任何其他参数,默认协议为启用加密的 TCP;证书验证;证书名称检查。Without any other parameter, default protocol is TCP with enabled encryption; Certificate validation; Certificate name check.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ServerPort-ServerPort

Syslog 服务器的服务器端口。The server port of the Syslog server.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-NoEncryption-NoEncryption

如果希望对 TCP 流量禁用加密,请指定 NoEncryption。Specify NoEncryption if desire to disable encryption for TCP traffic.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SkipCNCheck-SkipCNCheck

如果希望跳过检查证书名称,请指定 SkipCNCheck。Specify SkipCNCheck if desire to skip checking certificate name.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SkipCertificateCheck-SkipCertificateCheck

如果希望跳过检查 Syslog 服务器证书,请指定 SkipCertificateCheck。Specify SkipCertificateCheck if desire to skip checking Syslog Server certificate.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-UseUDP-UseUDP

如果 Syslog 服务器使用 UDP 协议,请指定 UseUDP。Specify UseUDP if Syslog server uses UDP protocol.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Remove-Remove

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

后续步骤Next steps

有关如何访问和使用特权终结点的信息,请参阅使用 Azure Stack Hub 中的特权终结点For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.