cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
81
Views
1
Helpful
2
Replies
Highlighted
Cisco Employee

NSO 4.4 with Cisco QPS Integration

HI Expert,

I am running NSO 4.4 and trying to integrate to Cisco QPS (aka CPS) by using following package: ncs-4.4-cisco-qps-3.1.16.tar.gz

first of all, the README mentioned:

Set the required configurables, address, remote user data
including
   remote secondary password, if needed:    
# devices device qpsdev address <device address>
    
# devices device qpsdev device-type cli ned-id cisco-qps

however, it looks like cisco-qps device-type is GENERIC instead of CLI.

Q1: Can we have README file fixed on this?

with generic, I am able to config as following:

admin@ncs# show running-config devices device CPS

devices device CPS

address 192.168.1.104

port    443

device-type generic ned-id cisco-qps

ned-settings cisco-qps-schema-version schema1

state admin-state unlocked

I am able to reach the device.

admin@ncs# devices device CPS ping

result PING 192.168.1.104 (192.168.1.104): 56 data bytes

64 bytes from 192.168.1.104: icmp_seq=0 ttl=64 time=3.813 ms

--- 192.168.1.104 ping statistics ---

1 packets transmitted, 1 packets received, 0.0% packet loss

round-trip min/avg/max/stddev = 3.813/3.813/3.813/0.000 ms

I am also able to connect to the device.

admin@ncs# devices device CPS connect

result true

info (admin) Connected to CPS - 192.168.1.104:443

admin@ncs#

however, when I try to sync the config, I got following error. it looks like related with HTTPS certificate.

admin@ncs# devices device CPS sync-from

result false

info External error in the NED implementation for device CPS: sun.security.validator.ValidatorException: No trusted certificate found

admin@ncs#

Q2: how to solve this?

Q3: is there any detail guidance to integrate NSO with Cisco QPS?

Thanks and regards,

-AF

Everyone's tags (5)
2 REPLIES 2
Cisco Employee

Re: NSO 4.4 with Cisco QPS Integration

Hi Anthony,

Could you please try the latest NED ncs-4.4-cisco-qps-4.0.0.tar.gz ?

Have you tried to configure below authgroups before e.g:

     # devices authgroups group qps umap admin remote-name <login username>

     # devices authgroups group qps umap admin remote-password <login password>

     # devices authgroups group qps umap admin remote-secondary-password <the 'enable' password>

     # devices device qpsdev authgroup qps

     # commit

Regards,

Eddy

Cisco Employee

Re: NSO 4.4 with Cisco QPS Integration

Hi Anthony,

I just try to use NetSim to test QPS/CPS NED and it seems working. The only drawback is netsim doesn't support device-type Generic along with port 443. It uses NETCONF and default port instead. I believe it should work with real CPS device if you configure correctly.

## after I created qpsdev0 from netsim by using cisco-qps NED:

[cisco@nso ncs-run]$ ncs-netsim ncs-xml-init > devices.xml

WARNING running netsim towards generic NED for qpsdev0

        running the NED as NETCONF

[cisco@nso ncs-run]$ ncs_load -l -m devices.xml

admin@ncs(config)# devices device qpsdev0 sync-from

result true

admin@ncs(config)# devices device qpsdev0 config

admin@ncs(config-config)# ?

Possible completions:

  cisco-qps-s1:AMP-V1-List-Rule-Name          

  cisco-qps-s1:AMP-V1-QoS-Table               

  cisco-qps-s1:AMP-V1-Redirect-Address-Table  

  cisco-qps-s1:AMP-V1-Rule-Mapping-Table      

  cisco-qps-s1:List-Flow-Status               

  cisco-qps-s1:List-Logical-GSU               

  cisco-qps-s1:List-MIND-bdpolicy             

  cisco-qps-s1:List-MIND-resellerid           

  cisco-qps-s1:List-MIND-subclassid           

  cisco-qps-s1:List-Monitor-Key               

  cisco-qps-s1:List-QoS-Ref                   

  cisco-qps-s1:List-Rule-Group                

  cisco-qps-s1:List-Rule-Name                 

  cisco-qps-s1:Redirect-Address-Table         

  cisco-qps-s1:Service-Rule-Table             

dmin@ncs(config-config)# cisco-qps-s1:AMP-V1-List-Rule-Name ABC

admin@ncs(config-cisco-qps-s1:AMP-V1-List-Rule-Name-ABC)#

Possible completions:

  commit     Commit current set of changes

  describe   Display transparent command information

  exit       Exit from current mode

  help       Provide help information

  no         Negate a command or set its defaults

  pwd        Display current mode path

  rload      Load configuration from an ASCII file relative to current location

  top        Exit to top level and optionally run command

admin@ncs(config-cisco-qps-s1:AMP-V1-List-Rule-Name-ABC)# commit

Commit complete.

admin@ncs(config)# show full-configuration devices device qpsdev0

devices device qpsdev0

address   127.0.0.1

port      12032

ssh host-key ssh-rsa

  key-data "AAAAB3NzaC1yc2EAAAADAQABAAABAQDAlzEFd/Oi0pajhv5IOD9Q2QRQvxpD+2tXik6mhR7U\nJQIDwfAtU5SRq98wBPcl7chqd+hRqWdvjUo9f/oVpuEKEPyFNVkogO/WWkMMUZ+pmhIwCEW9\noP9OPL02XGEmTJxQr/Bxlvn1N7mYp5LYW1vF7nOD5Oy1YXskUZzS218hO4FdKVrTo88/9NF1\n4nN1so/5One4+MUQYtTogbz8sYuOKegHSB0fs5sLwiYzUd8EA4g16JTKbbRHPM+FbOetwQ/3\nRE3GcNZIvGqJFFji5Op/xTLWRLDFqm+xnx54Op/MQoGhcpWtTVLj/URyGaQKyFCjRB7Qnmt4\n+1481+JI9ltf"

!

authgroup default

device-type netconf

ned-settings cisco-qps-schema-version schema1

state admin-state unlocked

config

  cisco-qps-s1:AMP-V1-List-Rule-Name ABC

  !

  cisco-qps-s2:APN-Mapping APN_MAP

  !

!

!

admin@ncs(config)# devices device qpsdev0 sync-from

result true

Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.