Junos OS

 View Only

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



  • 1.  Junos Commit Script

    Posted 07-14-2022 06:19

    Hey all,

    I've never worked with commit scripts in Junos - but I was wondering if there was a way to configure a commit script (or some other way) to grab the output of show | compare prior to any commit and save that file / send file to an FTP server or something of the like?

    I am looking for a way to make our change management process a little bit simpler.

    Thanks
    Stev



  • 2.  RE: Junos Commit Script

    Posted 22 days ago
    Transmit a copy of the current Config file with every commit
    You can use ftp, http, scp or a copy to a local file


    [edit system archival configuration]
    transfer-on-commit;
    archive-sites {
    ftp://username@host:<port>url-path password password;
    http://username@host:<port>url-path password password;
    scp://username@host:<port>url-path password password;
    file://<path>/<filename>;
    }
    The Target filename is built like this:
    <router-name>_juniper.conf[.gz]_YYYYMMDD_HHMMSS

    It is also possible to run periodic archival
    set system archival configuration transfer-interval [interval]

    ------------------------------
    Jimmy Walker
    ------------------------------