cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
894
Views
0
Helpful
2
Replies

Device model parameter?

rainnomm56
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

frjansso
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

frjansso
Cisco Employee
Cisco Employee

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

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

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?