05-10-2017 02:37 AM - edited 03-01-2019 03:49 AM
Hi all,
I’m looking for a way to be able to run CLI show commands on JunOs devices, the same way it is supported for cisco-ios (live-status show args…).
Has anyone implemented such a package / NED extension?
Solved! Go to Solution.
05-10-2017 02:37 AM
I’m looking for a way to be able to run CLI show commands on JunOs devices, the same way it is supported for cisco-ios (live-status show args…).
Has anyone implemented such a package / NED extension?
Juniper devices (unfortunately) don't support any live-status branch in their YANG models. Instead they have rpc actions. Check the junos-rpc.yang model for details. These actions may be invoked from the NCS CLI or programmatically. The response is properly populated according to the YANG description. Find the current list of rpc names below.
module junos-rpc {
namespace "urn:juniper-rpc";
prefix jrpc;
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-bgp-neighbor-information {
rpc get-bgp-summary-information {
rpc get-bridge-instance-information {
rpc get-bridge-mac-table {
rpc get-bridge-interface-mac-table {
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-interface-information {
rpc get-l2vpn-connection-information {
rpc get-route-information {
rpc get-instance-information {
rpc get-service-nat-pool-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 get-system-users-information {
rpc op-script {
rpc ping {
rpc request-package-add {
rpc request-reboot {
rpc request-system-storage-cleanup {
rpc request-snapshot {
rpc traceroute {
05-10-2017 02:37 AM
I’m looking for a way to be able to run CLI show commands on JunOs devices, the same way it is supported for cisco-ios (live-status show args…).
Has anyone implemented such a package / NED extension?
Juniper devices (unfortunately) don't support any live-status branch in their YANG models. Instead they have rpc actions. Check the junos-rpc.yang model for details. These actions may be invoked from the NCS CLI or programmatically. The response is properly populated according to the YANG description. Find the current list of rpc names below.
module junos-rpc {
namespace "urn:juniper-rpc";
prefix jrpc;
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-bgp-neighbor-information {
rpc get-bgp-summary-information {
rpc get-bridge-instance-information {
rpc get-bridge-mac-table {
rpc get-bridge-interface-mac-table {
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-interface-information {
rpc get-l2vpn-connection-information {
rpc get-route-information {
rpc get-instance-information {
rpc get-service-nat-pool-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 get-system-users-information {
rpc op-script {
rpc ping {
rpc request-package-add {
rpc request-reboot {
rpc request-system-storage-cleanup {
rpc request-snapshot {
rpc traceroute {
07-06-2017 12:26 PM
how do we invoke an rpc-call from the CLI or REST with a payload to clear the log?
URI should be: http://{{server}}/api/running/devices/device/mx01/rpc/jrpc:rpc-clear-log/_operations/clear-log
but what's the format of the <filename> in the body to send in the POST.
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