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

1244
Views
0
Helpful
2
Replies
raffovicisco01
Beginner

ncs-netsim delete-network

Hi folks,

how can I remove one single DEVICE from the netsim network without delete the entire configuration?

Regards

Raffo

1 ACCEPTED SOLUTION

Accepted Solutions
richsun
Cisco Employee

ncs-netsim is using file netsim/.netsiminfo for all operations. Assume you have 8 devices c0,c1,...,c7, now you want to delete only device c5 (which has index [5] in .netsiminfo). First delete the block "##device c5" in .netsiminfo. Now total number of c/c* devices becomes 7: they should be numbered continuously from 0..6. To fix this, just move the last block of "##device 7" to the original position of "##device c5", and rename all index [7] to [5]. Now device c5 is successfully deleted. Optionally delete netsim/c/c5 folder.

View solution in original post

2 REPLIES 2
richsun
Cisco Employee

ncs-netsim is using file netsim/.netsiminfo for all operations. Assume you have 8 devices c0,c1,...,c7, now you want to delete only device c5 (which has index [5] in .netsiminfo). First delete the block "##device c5" in .netsiminfo. Now total number of c/c* devices becomes 7: they should be numbered continuously from 0..6. To fix this, just move the last block of "##device 7" to the original position of "##device c5", and rename all index [7] to [5]. Now device c5 is successfully deleted. Optionally delete netsim/c/c5 folder.

The trick is working

Create
Recognize Your Peers
Content for Community-Ad