heasley
2016-07-21 11:17:26 UTC
A user recommended the following change for Fortigate (fnlogin). Does
anyone know if the following works in 4.x to disable the pager and
return to the command prompt?
config global
config system console
set output standard
end
Or, if it is no necessary to continue supporting 4.x?
I know that it works on firmware 5.x and I also know that firmware 4.x is end of support :-)
anyone know if the following works in 4.x to disable the pager and
return to the command prompt?
config global
config system console
set output standard
end
Or, if it is no necessary to continue supporting 4.x?
The fnlogin script tries to disable the paging fortigate paging mode.
With multiple vdom you have to patch the following line in bin/fnlogin
proc run_commands { prompt command } {
global in_proc
set in_proc 1
# Disable output paging.
- send -- "config system console\r"
- expect -re $prompt; send -- "set output standard\r"
+ send -- "config global\r"
+ expect -re $prompt; send -- "config system console\r"
expect -re $prompt; send -- "set output standard\r"
expect -re $prompt; send -- "end\r"
expect -re $prompt
do you know if this works on older versions of the fortigate o/s?With multiple vdom you have to patch the following line in bin/fnlogin
proc run_commands { prompt command } {
global in_proc
set in_proc 1
# Disable output paging.
- send -- "config system console\r"
- expect -re $prompt; send -- "set output standard\r"
+ send -- "config global\r"
+ expect -re $prompt; send -- "config system console\r"
expect -re $prompt; send -- "set output standard\r"
expect -re $prompt; send -- "end\r"
expect -re $prompt
I know that it works on firmware 5.x and I also know that firmware 4.x is end of support :-)