cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

28
Views
0
Helpful
1
Replies
Highlighted
Cisco Employee

Device bulk load question - NSO and netsim

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?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Device bulk load question - ncs and netsim

>

> -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

View solution in original post

1 REPLY 1
Cisco Employee

Re: Device bulk load question - ncs and netsim

>

> -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

View solution in original post

Content for Community-Ad
FusionCharts will render here