Skip to main content
Chuchubi
New Member
October 1, 2023
Question

CLI parser error when trying to create Static route on FortiWeb VM KVM

  • October 1, 2023
  • 3 replies
  • 6670 views

Hi guys,

Maybe someone had this before. I am using an trial/evaluation version of FortiWeb 6. According to Fortinet I should be able to evaluate Fortiweb for 15 days. Now I am trying to create the first Static default route towards my Fortigate. When I click on a OK nothing happens. When I click on OK again I get "CLI Parser error". And here is where it gets stuck. Via CLI it will kick you out and you would have to logon again. Afterwards only parser error when you try again. I tried v6 built1464 and 1489. Anyone experienced this?Fortiwebv6built 1489.PNG 

    3 replies

    Raghu_Kumar
    Staff
    Staff
    October 1, 2023

    Hello,

     

    When entering a command, the CLI requires that you use valid syntax and conform to expected input constraints. It will reject invalid commands.

    For example, if you do not type the entire object that will receive the action of a command operator such as config, the CLI will return an error message such as:

    Command fail. CLI parsing error

     

    This document uses the following conventions to describe valid command syntax.

    https://docs.fortinet.com/document/fortiweb/7.4.0/cli-reference/909750/command-syntax

    mpeddalla
    Staff
    Staff
    October 1, 2023

    Hello @Chuchubi ,

     

    Thank you for contacting the Fortinet forum portal,

     

    -As confirmed by my @Raghu_Kumar  because of the error in the configuration you might see that error.

    -Did you try creating from CLI ? if not I would recommend to try 

     

    config router static

    edit <route_index>

    set device "<interface_name>"

    set dst "<destination_ip>"

    set gateway "<router_ip>"

    next

    end

     

    example: default gateway 

     

    config router static

    edit 1

    set dst "0.0.0.0 0.0.0.0"

    set gateway "192.0.2.1"

    set device port1

    next

    end

     

    -In the above diagram which you posted you didn't enter full destination 0.0.0.0/0.0.0.0 please correct and check.

     

    refer to below article steps :

    https://docs.fortinet.com/document/fortiweb/7.4.0/cli-reference/180788/router-static

     

    Best Regards,

    Manasa.

     

     

    Chuchubi
    ChuchubiAuthor
    New Member
    October 1, 2023

    Hi Manasa,
    When I run the command in CLI it won't even take the "edit 1" string. Let alone the rest. As I mentioned above this error I get it in GUI and CLI.Fortiweb failed CLI command.PNG

    ddsouza_FTNT
    Staff
    Staff
    October 3, 2023

    @Chuchubi Could you please share the output of the following commands?

    show system interface port1

    show router static

    Chuchubi
    ChuchubiAuthor
    New Member
    October 3, 2023

    @ddsouza_FTNT , I tested a few other builds and I found built 0577 that worked for me without errors. So I am just testing a POC with that version now. Thanks for your assist.

    ddsouza_FTNT
    Staff
    Staff
    October 4, 2023

    No worries. Glad to know you didn't come across the same problem with the latest build.