01-12-2007 06:34 AM
Dear,
When pushing a macro using netconfig I encounter a weird problem, the lines that begin with # are ignored, how can I push these lines anyway ?? Perhaps with an escape character ??
Many thanks
Lieven Stubbe
01-12-2007 09:07 AM
Please provide an example of what you are trying to push.
01-15-2007 02:59 AM
I am trying to push a macro, the lines beginning with an # are ignored.
macro name ci
# macro keywords $int
# interface macro ci (= Clear Interface) :
# clears all the configuration from an interface and shuts it down
default interface $int
interface $int
shutdown
@
01-15-2007 09:32 AM
This is a conflict between RME's comment character, and a comment character in IOS. Fortunately, you can use '!' instead of '#' for your macro comments, and the application of the macro will ignore those lines. Netconfig will not ignore lines that that with '!'.
01-17-2007 12:57 AM
The "#macro keywords $int" is not really comment, very weird use of # !!
when you do an : "macro apply ci ?" the interpreter adds "e.g. $int" in the following line :
Keyword to replace with a value e.g. $int
When replacing # by ! it is comment and notting is done, is there a workaround ??
macro name ci
# macro keywords $int
# interface macro ci (= Clear Interface) :
# clears all the configuration from an interface
@
01-17-2007 04:54 AM
I uses ciscocmd instead and a script to push the whole thing into our switches.
CW still has a lot to learn...
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