Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

BaseLine template in CiscoWorks

Hi !

I have some difficulties with baselines template in CiscoWorks RME Version 4.1.1

1° in the online help I see it is possible to use [#.*] syntax to specify one genric word. This is great if I have :

snmp-server location (one_word)

but if I want :

snmp-server location More than one word

each time test failed:

I used syntax :

[# snmp-server location .#]

To specify more than one word after "snmp-server location" but each time the test failed

2° I would like to use baseline template to standardize our loggin banner.

your banner must be :

++++++++++++++++++++++

++++++ ++++ ++++++

++++++++++++++++++++++

+ Private Network +

+ bla bla bla +

++++++++++++++++++++++

How can I specify carriange return line and feed when I type login banner S "Banner" S

Thanks !

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: BaseLine template in CiscoWorks

You should not be using ^C as the delimiter. Instead, use the single character '"'. For example:

+ banner login "+++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++

+++++++++++ ++++++++ ++++++++++++

++++++++++ +++++ +++++++++++

+++++++++ +++ ++++++++++

+++++++++++++++++++++++++++++++++

+ this is like our banner +

+++++++++++++++++++++++++++++++++"

8 REPLIES
Cisco Employee

Re: BaseLine template in CiscoWorks

In order to match a command which may contain a variable length of words, you need to use the whole line regexp. So, to make sure a device has an SNMP location configured, you would use:

+ [#snmp-server location .*#]

In order to support multi-line commands in baseline templates, you need to separate lines with "". For example:

+ banner motd "Thisisamulti-linebanner."

Would match the following MOTD banner:

This

is

a

multi-line

banner.

New Member

Re: BaseLine template in CiscoWorks

Hi !

Thanks a lot for your help I try for my banner and it's work perfectly (with all needed spaces caracters)..... To deploy and stadartized. I has used the check box "Check compliance and deploy" to my tested device. But I I run a second compliance test with the same device the compliance check failed for banner.... and command to deploy is my banner but with a lot of space caracter in less. Should I use some other special caracter when I need more then one space caracters inlines ?

About the snmp-server location it was I had understand but I don't know why when I was try it last week each test failed when I had use morte than 1 word.... this morning I had copy/paste your sentence everything works perfectly.... I don't know why exactly...

Cisco Employee

Re: BaseLine template in CiscoWorks

How did you deploy the banner the first time? what protocol was used?

New Member

Re: BaseLine template in CiscoWorks

Most of our banner was paste in initial configuration through console port.

But after you gave me the hint for the new line, I had setup a login banner on one test device where no banner was configured. I was push this banner by using baseline template Check and deploy option....

Because the test switch is a 2960, our organisation standart specify to use telnet to access all of our device (is it true also for CiscoWorks software) but we have also some old device not capable ssh which we are use telnet to acces them.

Cisco Employee

Re: BaseLine template in CiscoWorks

Please post the XML export of the baseline template which failed the compliance check.

New Member

Re: BaseLine template in CiscoWorks

Hi !

in the Zip file I have include thoses files:

"banner push en to switch.txt" --> This the Banner I had push to switch by using the template copy in file : "baselinetemplate banner.txt", I also have had the "Job detail - Work order push banner.htm" which is the job detail when I have use baseline template to push my banner on my test switch. The last file "Baseline Compliance Report Check compliance banner failed.htm" is the failed compliance issue I would like to resolved....

Because of special security consideration, I can't provide identity about the organisation I working to, for this purpose I create a special dummy banner is look like which one we are using....

Cisco Employee

Re: BaseLine template in CiscoWorks

You should not be using ^C as the delimiter. Instead, use the single character '"'. For example:

+ banner login "+++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++

+++++++++++ ++++++++ ++++++++++++

++++++++++ +++++ +++++++++++

+++++++++ +++ ++++++++++

+++++++++++++++++++++++++++++++++

+ this is like our banner +

+++++++++++++++++++++++++++++++++"

New Member

Re: BaseLine template in CiscoWorks

Hi !

sorry for the delay,

I try changing ^C caracter by " as delimiter and now evrything is working well about this in our templates

956
Views
0
Helpful
8
Replies
CreatePlease to create content