04-23-2018 02:47 AM - edited 03-01-2019 04:09 AM
Hi,
What is the correct way of discovering/storing device model parameter? For mpls l3vpn i have 8 different CPE-s from cisco IOS software familiy. Almost all those CPE-s have different uplink configuration. Do I understand correctly that there is no built-in option for device model discovery i have to make my own script for that?
My current idea is to have "cpe_model" parameter in "service cpe" and then use it in "when" conditions inside configuration XML to choose correct uplink.
Solved! Go to Solution.
04-23-2018 12:57 PM
Your service may be able to use the platform information (devices/device/platform):
admin@mdp(config)# do show devices device lab-csr platform
platform name ios-xe
platform version 16.3.4
platform model CSR1000V
platform serial-number XXX
04-23-2018 12:57 PM
Your service may be able to use the platform information (devices/device/platform):
admin@mdp(config)# do show devices device lab-csr platform
platform name ios-xe
platform version 16.3.4
platform model CSR1000V
platform serial-number XXX
04-24-2018 12:21 AM
ty, it works. My NSO contact from cisco actually said that device model info is not built-in. Good that i bothered to ask this question. From python it is also accessible:
In [2]: for device in root.ncs__devices.device:
...: print("%s\t%s\t%s" % (device.name, device.platform.model, device.platform.version))
...:
...:
kjj-mgw1 None None
lab-mgw1 7750 15
lab-mgw2 7750 15
lab-sr2 7750 15
lab-sw5 WS-C3750G-12S 12.2(55)SE4
lab01-sw5 WS-C2960G-24TC-L 15.0(2)SE6
noe03-sw2 None None
r1 871 12.4(15)T13
r2 srx100b 12.1X46-D66.1
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 NSO Developer community: