We ran the following command 'show cli syntax', which is described as 'Show the EBNF syntax of all commands in mode'.
Here is a small sample of what we got:
MODE configure
(0) [ no ] aaa group server radius <s0>
(1) [ no ] aaa test-radius-authentication
(2) [ no ] aaa accounting default { group <s0> [ <s1> [ <s2> [ <s3> [ <s4> [ <s5> [ <s6> [ <s7> ] ] ] ] ] ] ] [ none ] | local [ none1 ] | none2 }
(3) [ no ] aaa authorization { ssh-publickey | ssh-certificate } default { group <s0> [ { <s1> [ { <s2> [ { <s3> [ { <s4> [ { <s5> [ { <s6> [ { <s7> } ] } ] } ] } ] } ] } ] } ] | local }
(4) [ no ] aaa authentication login console { group <s0> [ { none | <s1> [ { none | <s2> [ { none | <s3> [ { none | <s4> [ { none | <s5> [ { none | <s6> [ { none | <s7> [ { none } ] } ] } ] } ] } ] } ] } ] } ] | local | none }
(5) [ no ] aaa authentication login default { group <s0> [ { none | <s1> [ { none | <s2> [ { none | <s3> [ { none | <s4> [ { none | <s5> [ { none | <s6> [ { none | <s7> [ { none } ] } ] } ] } ] } ] } ] } ] } ] | local | none }
(6) [ no ] aaa authentication login { default | console } fallback error local
(7) [ no ] aaa authentication login error-enable
(8) [ no ] aaa authentication login { mschap | mschapv2 | chap } enable
(9) [ no ] aaa authentication login ascii-authentication
(10) [ no ] aaa authentication login invalid-username-log
Based on my research this is not EBNF code. I am sure it is related but was wondering if anyone had ideas how to proceed.
My current thoughts is that I have to write ebnf to process this data? and then I can use it to validate input?
Any guidance will be greatly appreciated.
-
Dan