jared at puck
Oct 20, 2002, 7:40 PM
Post #4 of 5
On Mon, Oct 21, 2002 at 02:19:32AM +0200, Dmitri Kalintsev wrote:
How to insert "/*" comment in config from CLI ?
[In reply to]
> On Fri, Oct 18, 2002 at 04:59:33PM +0200, Jesper Skriver wrote:
> > On Fri, Oct 18, 2002 at 10:06:15AM -0400, Mr. James W. Laferriere wrote:
> > >
> > > Hello All , JunOS V5.5(don't know about earlier), The config is
> > > quite capable of allowing the C/C++ comments , ie: /* , // .
> > > How does one insert/edit/... a "/*" wtyle comment from the CLI ?
> > annotate
> ---end quoted text---
> ..or, as it was pointed out, like so:
> run start shell
> su -
> vi /config/juniper.conf
> "annotate" is notoriously annoying when one needs to comment on many things
> at once, because it requires to descend into parent config level to comment
> on a child element.
Obviously the above could be quite dangerous should
there be multiple people doing said commands or even
someone doing a interactive configuration change and the above.
If comments are important in your configuration I would
suggest storing them on a central configuration server. Possibly
the same one that you run rancid on. You can easily create
a configuration file on your tftp/rcp/whatnot server and then
do a configure;load override;commit or even a 'load merge' of the
appropriate section of your configuraiton with the requisite
comments in it. (assuming it's new and doesn't cause any
ps: if you don't already, you should backup your configs w/ rancid
Jared Mauch | pgp key available via finger from jared [at] puck
clue++; | http://puck.nether.net/~jared/ My statements are only mine.