06-30-2019 01:52 PM
I have devices created using netsim ios0 and ios1 successfully and was able to start them.
However when I tried to sync from these devices, it seems like ncs is not able to find the devices.
gag@Jas:~/ncs-run$ ncs-netsim start
DEVICE ios0 OK STARTED
DEVICE ios1 OK STARTED
gag@Jas:~/ncs-run$ ncs
gag@Jas:~/ncs-run$ ncs_cli -u admin -C
admin connected from 127.0.0.1 using console on Jaswant-Singh
admin@ncs# show devices
ID NAME REVISION NAMESPACE
-------------------------------------------------------------------------
lsa-netconf
netconf
snmp
cisco-ios-cli-3.0 tailf-ned-cisco-ios 2014-02-12 urn:ios
tailf-ned-cisco-ios-stats - urn:ios-stats
admin@ncs# devices sync-from
admin@ncs# devices device ios0 check-sync
--------------------------^
syntax error: element does not exist
admin@ncs#
Getting error when I tried to check sync status for the devices.
06-30-2019 10:57 PM
10-04-2023 08:20 AM
Hi
I had created the 4 devices using the netsim
ncs-netsim create-network ./packages/neds/cisco-nx-cli-3.0 3 device --dir ./netsim
ncs-netsim add-to-network ./packages/neds/cisco-ios-cli-3.0 1 device --dir ./netsim
Cannot view any devices from the webui and read your note and followed the steps below
I exported the netsim using the command ncs-netsim ncs-xml-init > netsim.xml
Then tried to load the same file using ncs_load with -m option and that failed at the ned id
ubuntu@nsovm:~/ncs-6.1$ ncs_load -lm netsim.xml
ncs_load: 645: maapi_load_config(sock, tid, flags, abspath(argv[0])) failed: external error (19): Error on line 26: invalid value for: ned-id in /ncs:devices/ncs:device[ncs:name='device0']/ncs:device-type/ncs:cli/ncs:ned-id: "id:cisco-nx-cli-3.0" is not a valid value.
ubuntu@nsovm:~/ncs-6.1$
10-04-2023 08:58 AM
10-04-2023 02:12 PM
10-05-2023 06:35 AM
Please check the document how to add a NED package https://developer.cisco.com/docs/nso-guides-6.1/#!administration/packages
10-08-2023 08:36 PM
Hi
I followed all the steps as mentioned and what i realize that the nso reads the packages from ~/$NCS_DIR/etc/ncs/nso.conf
As per the ncs.conf it reads the packages described in ~/$NCS_DIR/etc/ncs/ and it has the directory snmp, ssh and ssl
The snmp has fxs files whcih cdb understand.
So i want to know how ic an create the same information for ios, nx and iosxr
10-08-2023 08:38 PM
I have compiled the packages too and the neds-id are not getting it is not getting updated in the ~/$NSC_DR/ncs and ncs.conf therefore it doesnt show up in ncs_cli
admin@ncs# show devices ned-ids
ID NAME REVISION NAMESPACE
----------------------------------------
lsa-netconf
netconf
snmp
need to know what are the additional steps to be done
10-09-2023 01:10 AM
NCS_DIR is the installation directory, you can create a "packages" directory in $NCS_DIR/etc/ncs and put your NEDs there, but you probably want to put your NEDs in the packages directory under "run directory"($NCS_RUN_DIR/packages, which is /var/opt/ncs/packages by default), so you don't need to copy the packages between different NSO installations.
10-09-2023 01:22 AM
If you are starting with NSO and netsim, take a look at this Interactive Learning Lab that uses NSO in local install mode, where using netsim and ncs-setup we created an environment to experiment with NSO. You can play directly with the container to see what the environment variables are set to.
https://developer.cisco.com/learning/labs/learn-nso-with-netsim/introduction/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide