nanog mailing list archives
Re: JunOS config yacc grammar?
From: Mark Prosser <mark () zealnetworks ca>
Date: Mon, 21 Aug 2023 20:17:20 -0400
Sorry, I don't know the answer to your initial inquiry | We already have cron jobs running on the switches that tftp the config file to a server, and I'd prefer to leverage off that.Perhaps an easy interim adaptation would be to modify your scheduled job to tftp the latest xml or json then clean it up?
root@BB6> ...on | display xml | save /config/junos-config-latest.xml Wrote 139 lines of output to '/config/junos-config-latest.xml' root@BB6> ...n | save /config/junos-config-latest.json Wrote 169 lines of output to '/config/junos-config-latest.json' root@BB6> root@BB6> file list /config/ | grep latest junos-config-latest.json junos-config-latest.xml root@BB6>Hope you find the final solution, as the parser checks sound worth the squeeze.
Current thread:
- Re: JunOS config yacc grammar?, (continued)
- Re: JunOS config yacc grammar? Brent Jones (Aug 22)
- Re: JunOS config yacc grammar? Joe Snyder (Aug 22)
- Re: JunOS config yacc grammar? Grant Taylor via NANOG (Aug 22)
- Re: JunOS config yacc grammar? Christopher Morrow (Aug 24)
- Re: JunOS config yacc grammar? Justin H. (Aug 24)
- Re: JunOS config yacc grammar? Christopher Morrow (Aug 24)
- Re: JunOS config yacc grammar? Owen DeLong via NANOG (Aug 24)
- Re: JunOS config yacc grammar? Warren Kumari (Aug 24)
- Re: JunOS config yacc grammar? Yan Filyurin (Aug 24)
- Re: JunOS config yacc grammar? Christopher Morrow (Aug 24)
- Re: JunOS config yacc grammar? Mark Prosser (Aug 22)