I work with CiscoWorks version 4.1.1. We are using Baseline template feature to validate our standard configuration setup.
I would like to know if some logical operator are exist in the language used in baseline template. In the online help I find a reference on the language form SUN for regular expressions at the site :
on this site some basic logical operator are available : the " | " is use for binary " or " operator and " ( ) " for capture group.
If some others operator are exist please let me knowâ¦.
I'm trying to validate only should present usename/password are in configuration switches.
Here username should be there :
I tried " + [#![#username marc.*#]]|[#![#username alan.*#]] " and " + [#![#username alan.*#] |#![#username marc.*#]] " syntax and those failed (and some others with " ( ) " and spaces for tryin to group some of themâ¦. All of them failed. I'm sure " + [#![#username alan.*#]] " sentence working properly.
When I tried " + [#![#username alan.*#]] " with alan & marc in configuration as valide username the compliance as failed like it as should be. My understand is if I'm able to provide + username ! alan or ! marc the compliance should be pass if I have only username alan and/or marc in the configuration if something else is present the compliance as to be failed.
I also whould like to know if some conditionnal operation are exist, like we can see in some programmation languages, exemple :
if int vlan1 ip address x.x.x.4 | x.x.x.132 # this my first switch
fa0/24 should # is connected to another telecom device
no spanning-tree portfast
I know some " prerequisite " option is possible I did not explore this option at this timeâ¦. Because I had to post a question for the first part of this message I asked also for this at the same time to make easier possible the developpement of our template for your switches.
Thanks a lot !