07-27-2015 03:45 PM
Hello all,
I’m trying to build a demo which shows a golden config / day0 config load of multiple devices.
I’ve got the YANG model, template and NCS working and I can load a large template file into a single or multiple devices.
However, I want to clear netsim and the NCS config and start from scratch to show the value of the bulk load.
That’s where I run into issues.
What is the best method for:
Clearing the netsim and NCS config
Adding 5 new devices with a “blank slate” baseline config (just enough to connect)
Of course, I can do this one device at a time, but I want to do this with one or two operations for the whole device list
Any suggestions?
Solved! Go to Solution.
07-27-2015 03:46 PM
>
> -Clearing the netsim
$ ncs-netsim reset
> and NCS config
ncs-setup --reset
>
> -Adding 5 new devices with a “blank slate” baseline config (just
> enough to connect)
$ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios 5 c
This creates the netsim for this, now
$ ncs-netsim ncs-xml-init > devs.xml
Creates the XML required for all netsim devices, including these
5 new ones.
This data can be either
- loaded with ncs_load -l -m devs.xml
or
- the xml file can be put in the CDB directory, then it'll be used
as initialization file (assuming the DB is empty, i.e there
are no cdb files existing at all)
>
> Of course, I can do this one device at a time, but I want to do this
> with one or two operations for the whole device list
>
> Any suggestions?
>
See,
$ man ncs-netsim
$ man ncs-setup
$ ncs_load -h
07-27-2015 03:46 PM
>
> -Clearing the netsim
$ ncs-netsim reset
> and NCS config
ncs-setup --reset
>
> -Adding 5 new devices with a “blank slate” baseline config (just
> enough to connect)
$ ncs-netsim create-network $NCS_DIR/packages/neds/cisco-ios 5 c
This creates the netsim for this, now
$ ncs-netsim ncs-xml-init > devs.xml
Creates the XML required for all netsim devices, including these
5 new ones.
This data can be either
- loaded with ncs_load -l -m devs.xml
or
- the xml file can be put in the CDB directory, then it'll be used
as initialization file (assuming the DB is empty, i.e there
are no cdb files existing at all)
>
> Of course, I can do this one device at a time, but I want to do this
> with one or two operations for the whole device list
>
> Any suggestions?
>
See,
$ man ncs-netsim
$ man ncs-setup
$ ncs_load -h
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: