|
148 | 148 | * [Subinterfaces Show Commands](#subinterfaces-show-commands)
|
149 | 149 | * [Subinterfaces Config Commands](#subinterfaces-config-commands)
|
150 | 150 | * [Syslog](#syslog)
|
| 151 | + * [Syslog show commands](#syslog-show-commands) |
151 | 152 | * [Syslog config commands](#syslog-config-commands)
|
152 | 153 | * [System State](#system-state)
|
153 | 154 | * [Processes](#processes)
|
@@ -8545,40 +8546,71 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#static
|
8545 | 8546 |
|
8546 | 8547 | ## Syslog
|
8547 | 8548 |
|
| 8549 | +### Syslog Show Commands |
| 8550 | +
|
| 8551 | +This subsection explains how to display configured syslog servers. |
| 8552 | +
|
| 8553 | +**show syslog** |
| 8554 | +
|
| 8555 | +This command displays configured syslog servers. |
| 8556 | +
|
| 8557 | +- Usage: |
| 8558 | + ``` |
| 8559 | + show syslog |
| 8560 | + ``` |
| 8561 | +
|
| 8562 | +- Example: |
| 8563 | + ``` |
| 8564 | + admin@sonic:~$ show syslog |
| 8565 | + SERVER IP SOURCE IP PORT VRF |
| 8566 | + ----------- ----------- ------ ------- |
| 8567 | + 2.2.2.2 1.1.1.1 514 default |
| 8568 | + ``` |
| 8569 | +
|
8548 | 8570 | ### Syslog Config Commands
|
8549 | 8571 |
|
8550 |
| -This sub-section of commands is used to add or remove the configured syslog servers. |
| 8572 | +This subsection explains how to configure syslog servers. |
8551 | 8573 |
|
8552 | 8574 | **config syslog add**
|
8553 | 8575 |
|
8554 |
| -This command is used to add a SYSLOG server to the syslog server list. Note that more that one syslog server can be added in the device. |
| 8576 | +This command is used to add a syslog server to the syslog server list. |
| 8577 | +Note that more that one syslog server can be added in the device. |
8555 | 8578 |
|
8556 | 8579 | - Usage:
|
8557 | 8580 | ```
|
8558 |
| - config syslog add <ip_address> |
| 8581 | + config syslog add <server_address> |
8559 | 8582 | ```
|
8560 | 8583 |
|
| 8584 | +- Parameters: |
| 8585 | + - _server_address_: syslog server IP address |
| 8586 | + - _source_: syslog source IP address |
| 8587 | + - _port_: syslog server UDP port |
| 8588 | + - _vrf_: syslog VRF device |
| 8589 | +
|
8561 | 8590 | - Example:
|
8562 | 8591 | ```
|
8563 |
| - admin@sonic:~$ sudo config syslog add 1.1.1.1 |
8564 |
| - Syslog server 1.1.1.1 added to configuration |
8565 |
| - Restarting rsyslog-config service... |
| 8592 | + admin@sonic:~$ sudo config syslog add 2.2.2.2 --source 1.1.1.1 --port 514 --vrf default |
| 8593 | + Running command: systemctl reset-failed rsyslog-config |
| 8594 | + Running command: systemctl restart rsyslog-config |
8566 | 8595 | ```
|
8567 | 8596 |
|
8568 |
| -**config syslog delete** |
| 8597 | +**config syslog del** |
8569 | 8598 |
|
8570 |
| -This command is used to delete the syslog server configured. |
| 8599 | +This command is used to delete the configured syslog server. |
8571 | 8600 |
|
8572 | 8601 | - Usage:
|
8573 | 8602 | ```
|
8574 |
| - config syslog del <ip_address> |
| 8603 | + config syslog del <server_address> |
8575 | 8604 | ```
|
8576 | 8605 |
|
| 8606 | +- Parameters: |
| 8607 | + - _server_address_: syslog server IP address |
| 8608 | +
|
8577 | 8609 | - Example:
|
8578 | 8610 | ```
|
8579 |
| - admin@sonic:~$ sudo config syslog del 1.1.1.1 |
8580 |
| - Syslog server 1.1.1.1 removed from configuration |
8581 |
| - Restarting rsyslog-config service... |
| 8611 | + admin@sonic:~$ sudo config syslog del 2.2.2.2 |
| 8612 | + Running command: systemctl reset-failed rsyslog-config |
| 8613 | + Running command: systemctl restart rsyslog-config |
8582 | 8614 | ```
|
8583 | 8615 |
|
8584 | 8616 | Go Back To [Beginning of the document](#) or [Beginning of this section](#syslog)
|
|
0 commit comments