[j-nsp] switch idea.?

Phil Shafer phil at juniper.net
Thu Dec 6 13:09:34 EST 2012


Phil Mayers writes:
>But then again, if you have JunOS and Junoscript, scripting a vlan add 
>is pretty trivial and moreover, can be done reliably.

Consider using the "share-data" op script, which can sync config
groups between devices.  It's manual, but simple:

groups {
    my-data {
        apply-macro share-data {
            device-1;   # list all the devices you want to share with
            10.1.2.3;
            mine.example.com;
        }
        vlan { ... }    # put whatever data you want to share
    }
}
apply-groups my-data;

The "op share-data" command will look at any groups with the
share-data macro and propagate those changes as needed.

http://junoscriptorium.googlecode.com/svn-history/trunk/library/juniper/op/network/share-data/share-data.xml

You can use the "group" and "target" arguments to limit the execute
to just that config group or target.

Thanks,
 Phil


More information about the juniper-nsp mailing list