Hello,
Ref. https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-get-virtual-system-router-dynamic-rout...
there is quite some old topic regarding my questions, but we have issues with this approach and it is also pretty ugly. We have been using
sh -c 'printf "set virtual-system 4\nshow route\nexit\n" | clish'
but it randomly worked on R80 and it is failing all the way on R81 (after recent upgrade)
This is what we get in the logs on GW itself.
Jul 6 14:56:53 2022 Gateway01 xpand[27931]: admin localhost t +volatile:clish:admin:23304 t
Jul 6 14:56:54 2022 Gateway01 clish[23304]: User admin logged in with ReadWrite permission
Jul 6 14:56:54 2022 Gateway01 clish[23304]: Failed to get terminal settings.
Jul 6 14:56:54 2022 Gateway01 xpand[27931]: admin localhost t -volatile:clish:admin:23304
Jul 6 14:56:54 2022 Gateway01 clish[23304]: User admin logged out due to an error from CLI shell
Is there any other way to get routing information via API including virtual systems?
Thanks in advance.