02-06-2008 11:11 PM
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.
Solved! Go to Solution.
02-07-2008 10:52 PM
02-07-2008 11:12 PM
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.
02-07-2008 11:20 PM
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.
02-08-2008 12:00 AM
workaround is not working. i think it actually dont like the space between
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,
02-08-2008 12:39 AM
Hey Clarke,
i open TAC now. i think they assidged the ticket to you directly.
02-12-2008 08:12 AM
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.
02-17-2008 07:10 PM
finally this is done. thanks to eguener and joe for awesome effort.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide