User Tools

Site Tools


containerlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

containerlab [2025/07/29 15:11] – created jonathancontainerlab [2025/07/29 15:18] (current) jonathan
Line 2: Line 2:
 ====JNCIA==== ====JNCIA====
 {{:jncia.png?400|}} {{:jncia.png?400|}}
-<code>+<code - jncia.clab.yaml>
 name: jncia name: jncia
 mgmt: mgmt:
Line 63: Line 63:
     - endpoints: ["router2:ge-0/0/2", "client2:eth1"]     - endpoints: ["router2:ge-0/0/2", "client2:eth1"]
 root@containerlab3:/home/jonathan/containerlab/jncia root@containerlab3:/home/jonathan/containerlab/jncia
 +</code>
 +
 +<code - backup_srx_configuration.sh> 
 +#!/bin/bash
 +
 +VSRX_HOST="clab-jncia-router1 clab-jncia-router2 clab-jncia-switch1 clab-jncia-switch2"
 +USER=root
 +DEST_DIR=/home/user1/containerlab/jncia/vsrx-backups
 +CONFIG_NAME=juniper.conf.gz
 +
 +mkdir -p "$DEST_DIR"
 +
 +for x in $VSRX_HOST
 +do
 +    scp ${USER}@${x}:/config/${CONFIG_NAME} ${DEST_DIR}/${CONFIG_NAME}
 +    gunzip ${DEST_DIR}/juniper.conf.gz
 +    mv ${DEST_DIR}/juniper.conf ${DEST_DIR}/$x.conf
 +done
 </code> </code>
containerlab.1753801893.txt.gz · Last modified: by jonathan