ios-cli-3.8 3 ios
DEVICE ios0 CREATED
DEVICE ios1 CREATED
DEVICE ios2 CREATED
After the virtual devices are created, the simulation can
be started with the start command:
$ ncs-netsim start
DEVICE ios0 OK STARTED
DEVICE ios1 OK STARTED
DEVICE ios2 OK STARTED
An ordered list of all the devices that are running at any
point on the NSO server can be obtained by using the list
option for ncs-netsim, as shown in the following output:
Click here to view code image
$ ncs-netsim list
ncs-netsim list for $NCS_DIR/nso-run/netsim
name=ios0 netconf=12022 snmp=11022 ipc=5010
cli=10022 dir=$NCS_DIR/
nso-run/netsim/ios/ios0
name=ios1 netconf=12023 snmp=11023 ipc=5011
cli=10023 dir=$NCS_DIR
/nso-run/netsim/ios/ios1
name=ios2 netconf=12024 snmp=11024 ipc=5012
cli=10024 dir=$NCS_DIR
/nso-run/netsim/ios/ios2
Access to the console ports of all the simulated devices is
possible by using the cli-i option followed by the name of
the device, as in Example 15-4, which demonstrates
console access to the ios0 device.
Example 15-4 CLI Access to a Simulated Device
Click here to view code image
$ ncs-netsim cli-i ios0