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

How to execute cli on netconf device (Juniper)

neeramis@cisco.com
Cisco Employee
Cisco Employee

I have to do collection profile on juniper device, but there is no live status api for this device in NSO.

Please let me know How to execute commands for netconf devices on nso.

I am using NSO 4.2 NED id for juniper-junos 3.2.11

1 Accepted Solution

Accepted Solutions

hniska
Cisco Employee
Cisco Employee

Juniper devices have RPC:s 

 

admin@ncs% request devices device pe2 rpc rpc-
Possible completions:
rpc-clear-bgp-neighbor rpc-clear-log
rpc-file-archive rpc-file-compare
rpc-file-copy rpc-file-delete
rpc-file-get rpc-file-list
rpc-file-put rpc-file-rename
rpc-file-show rpc-get-alarm-information
rpc-get-chassis-inventory rpc-get-environment-information
rpc-get-environment-re-information rpc-get-fpc-information
rpc-get-pic-detail rpc-get-pic-information
rpc-get-power-usage-information rpc-get-route-information
rpc-get-routing-task-replication-state rpc-get-snapshot-information
rpc-get-software-information rpc-get-support-information
rpc-get-system-alarm-information rpc-get-system-storage
rpc-get-system-uptime-information rpc-op-script
rpc-ping rpc-request-package-add
rpc-request-reboot rpc-request-snapshot
rpc-traceroute

View solution in original post

2 Replies 2

hniska
Cisco Employee
Cisco Employee

Juniper devices have RPC:s 

 

admin@ncs% request devices device pe2 rpc rpc-
Possible completions:
rpc-clear-bgp-neighbor rpc-clear-log
rpc-file-archive rpc-file-compare
rpc-file-copy rpc-file-delete
rpc-file-get rpc-file-list
rpc-file-put rpc-file-rename
rpc-file-show rpc-get-alarm-information
rpc-get-chassis-inventory rpc-get-environment-information
rpc-get-environment-re-information rpc-get-fpc-information
rpc-get-pic-detail rpc-get-pic-information
rpc-get-power-usage-information rpc-get-route-information
rpc-get-routing-task-replication-state rpc-get-snapshot-information
rpc-get-software-information rpc-get-support-information
rpc-get-system-alarm-information rpc-get-system-storage
rpc-get-system-uptime-information rpc-op-script
rpc-ping rpc-request-package-add
rpc-request-reboot rpc-request-snapshot
rpc-traceroute

As Håkan points out, on a Juniper device, you have to use the rpc:s it publishes rather than live status. You can find the list of supported rpc:s inside the Junos NED in the file junos-rpc.yang.

 

If you are feeling a bit adventurous, and can upgrade to the latest NSO versions, you can (probably) start using the native Junos native YANG model instead of the one supplied in the Tail-f Juniper NED. The Juniper YANGs cover all the officially existing rpc:s. Feel free to contact me directly if you want to experiment with this.