FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
riteshpv
Staff
Staff
Article Id 339519
Description This article describes a solution for collecting logs.
Scope All supported versions of FortiSwitch.
Solution

When running the command show or show full-configuration or get, the output pauses with the prompt displaying --More--, as shown below:


sh full-configuration
config-version=S248EF-7.04-FW-build767-230602:opmode=0:vdom=0
conf_file_ver=10676016742320736859
buildno=0767
global_vdom=1

config system global

set 802.1x-ca-certificate "Fortinet_CA"
set 802.1x-certificate "Fortinet_Factory"
set admin-concurrent enable
set admin-lockout-duration 60
set admin-lockout-threshold 3
set admin-password-hash sha256
set admin-scp disable
set admin-ssh-grace-time 120
set admin-ssh-port 22
set admin-ssh-v1 disable
set admin-telnet-port 23
set admintimeout 400
set alertd-relog disable
set allow-subnet-overlap disable
set arp-timeout 180
--More--             


To view the complete output without interruptions, pressing any key on the keyboard repeatedly is necessary. This process can be cumbersome, especially when troubleshooting and collecting logs from multiple FortiSwitches.

 

To avoid this issue, run the following command on the FortiSwitch:

 

config system console

set output standard

end

 

With this setting applied, running the show or show full-configuration commands will provide the complete output without pressing any keys.

 

For FortiSwitches managed centrally (like FortiGate), the command can be set and pushed to the FortiSwitch using the custom-command feature. The procedure to push the configuration is illustrated in the example provided in Technical Tip: Auto-stp-priority.

Contributors