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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Parameterized configuration in RME

Hi,

i am using the paramterized scripting to configure banner motd command in which

name and location of router changes. but when i configure it & login into router it gives all the notice and details in one line while i need attached format. any idea how can i achieve it.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Parameterized configuration in RME

I checked the code, and it looks like parameterized templates and multiline commands are mutually exclusive. I don't see why this was done, and I can't think of a good reason why these two would be exclusive.

I can provide a patch to fix this, but you will need to contact the TAC to get it. Have your engineer contact me directly, and I will send them the patch.

21 REPLIES
Cisco Employee

Re: Parameterized configuration in RME

Replace NAME with $name and location with $location. Then define your parameter "XML" file:

10.1.1.1

Earth

Cisco Employee

Re: Parameterized configuration in RME

Actually, I think I misunderstood your problem. You have the template, but you're not getting the correct banner. When you define a multi-line command, you need to use the multi-line capability in Netconfig. Basically, you surround your banner with tags:

banner motd ...

...

See http://server/help/rme/fundamentals/netcfg_MultilineCmds.html in the RME online help for more details.

New Member

Re: Parameterized configuration in RME

Hi clarke

Can I use in Template? if yes whre i need to put in

thanks a lot

Cisco Employee

Re: Parameterized configuration in RME

Yes, you can use it in a template. You surround your banner command in the textarea with the tags. Just take your existing template, and surround the whole banner command with .

New Member

Re: Parameterized configuration in RME

Please check if this is correct.

banner motd ^c line ^c

if this correct then how can i fetch it form netconfig job, since no parameter is passed, if suggest if it wrong.

Cisco Employee

Re: Parameterized configuration in RME

No. Your template within the Netconfig GUI should be:

banner motd "------------------------------------------------------------------------

$name: $location

------------------------------------------------------------------------

NOTICE: This is a private network device. If you are not authorized

to connect or configure this device, disconnect at once! Actual

or attempted use, access, examination, or configuration change by an

unauthorized person will result in criminal and civil

prosecution to the full extent of the law."

Then, your parameter "XML" file should be similar to the one I provided in my first post.

New Member

Re: Parameterized configuration in RME

Hi Clarke,

i did try that but banner is not changing though it says job is successful

i fetch bannerscript file from user defined job and then fetch XML file in job. both th e file are attached.

kindly suggest

New Member

Re: Parameterized configuration in RME

hey clarke any ideas on this, i am not get desir result tried serveral time now.

Cisco Employee

Re: Parameterized configuration in RME

This looks okay. I need to see a screenshot of your user-defined template within the Netconfig UI.

New Member

Re: Parameterized configuration in RME

sorry for late response clarke as i was out of shift, iam attaching you screenshot of user define template.

New Member

Re: Parameterized configuration in RME

Hi Clarke,

please ignore my previous post, i am attaching screen again.

point to add from my side is when i put "^c"

as delimiter my job after doen't get save however when i put doublecolon (") as delimiter it get saves but doesnot change the banner on router.

its stranged behaviour, can you please look into it.

Cisco Employee

Re: Parameterized configuration in RME

^C will not work. You should use double quotes as the delimiter. to troubleshoot why the deployment is not working, you can get a sniffer trace (if using telnet, TFTP, or RCP to deploy the config) or enable RME Config Job debugging, then look at the job log for the deployment job ID.

New Member

Re: Parameterized configuration in RME

Hi Clarke attaching job log after enable debugging for config job.

still not able to figure what the issue is.

Cisco Employee

Re: Parameterized configuration in RME

This isn't the log, or debug wasn't properly enabled. All of the information pertaining to the job will be found under NMSROOT\files\rme\jobs\NetconfigJob\JOBID.

New Member

Re: Parameterized configuration in RME

attaching the debug file now,kidnly take a look

Cisco Employee

Re: Parameterized configuration in RME

I checked the code, and it looks like parameterized templates and multiline commands are mutually exclusive. I don't see why this was done, and I can't think of a good reason why these two would be exclusive.

I can provide a patch to fix this, but you will need to contact the TAC to get it. Have your engineer contact me directly, and I will send them the patch.

Cisco Employee

Re: Parameterized configuration in RME

Actually, I think a workaround would be easier, and quicker. This will involve you putting the bulk of the banner in the parameter "XML" file. Your template will become:

banner motd "$bannertext"

Your "XML" file will become:

------------------------------------------------------------------------

NAME: RLG-2811-ANA-1-1 Anaheim,CA

------------------------------------------------------------------------

NOTICE: This is a private network device. If you are not authorized

to connect or configure this device, disconnect at once! Actual

or attempted use, access, examination, or configuration change by an

unauthorized person will result in criminal and civil

prosecution to the full extent of the law.

New Member

Re: Parameterized configuration in RME

workaround is not working. i think it actually dont like the space between and .

after running this, banner its not in exact sequence and appear in one line in router.

i will ask to raise the TAC with cisco and inform them to directly call you so that we can get patch for it.

thanks again clarke for the same. thanks a ton,

New Member

Re: Parameterized configuration in RME

Hey Clarke,

i open TAC now. i think they assidged the ticket to you directly.

New Member

Re: Parameterized configuration in RME

hey joe,

i have put a voicemail on your phone and also

drop a mail on your ID jclarke@cisco.com

if you can attach the patch and send back to me it would really help me. TAC is 607896975.

New Member

Re: Parameterized configuration in RME

finally this is done. thanks to eguener and joe for awesome effort.

243
Views
0
Helpful
21
Replies