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 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-06-2008 11:20 PM
Replace NAME with $name and location with $location. Then define your parameter "XML" file:
02-06-2008 11:23 PM
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
...
See http://server/help/rme/fundamentals/netcfg_MultilineCmds.html in the RME online help for more details.
02-06-2008 11:43 PM
Hi clarke
Can I use
thanks a lot
02-06-2008 11:46 PM
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
02-06-2008 11:58 PM
Please check if this is correct.
if this correct then how can i fetch it form netconfig job, since no parameter is passed, if suggest if it wrong.
02-07-2008 12:00 AM
No. Your template within the Netconfig GUI should be:
$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.
02-07-2008 12:40 AM
02-07-2008 01:59 AM
hey clarke any ideas on this, i am not get desir result tried serveral time now.
02-07-2008 08:02 AM
This looks okay. I need to see a screenshot of your user-defined template within the Netconfig UI.
02-07-2008 07:20 PM
02-07-2008 08:57 PM
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.
02-07-2008 09:57 PM
^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.
02-07-2008 10:13 PM
02-07-2008 10:43 PM
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.
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