Junos RPC YANG module for chassis command(s)
Version: 2019-01-01
module junos-qfx-rpc-chassis { yang-version 1; namespace "http://yang.juniper.net/junos-qfx/rpc/chassis"; prefix chassis; import junos-common-types { prefix jt; revision-date "2019-01-01"; } organization "Juniper Networks, Inc."; contact "yang-support@juniper.net"; description "Junos RPC YANG module for chassis command(s)"; revision "2019-01-01" { description "Junos: 21.3R1.9"; } rpc get-uft-information { description "Show member's current UFT configuration"; output { choice output_c { leaf output { type string; } anyxml uft-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-uft-information rpc get-system-mode-information { description "Show member's current system-mode configuration"; output { choice output_c { leaf output { type string; } anyxml system-mode-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-system-mode-information rpc get-power-usage-information { description "Show Chassis Power Usages"; output { choice output_c { leaf output { type string; } anyxml power-usage-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-power-usage-information rpc get-power-usage-information-detail { description "Show chassis power usage detail"; output { choice output_c { leaf output { type string; } anyxml power-usage-information-detail; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-power-usage-information-detail rpc get-fru-power-on-sequence { description "Show chassis fru power on sequence"; output { choice output_c { leaf output { type string; } anyxml fru-power-on-sequence; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fru-power-on-sequence rpc get-alarm-information { description "Show alarm status"; output { choice output_c { leaf output { type string; } anyxml alarm-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-alarm-information rpc get-fpc-alarm-information { description "Show alarm status for a FPC"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } mandatory true; description "Flexible PIC Controller slot number"; } } output { choice output_c { leaf output { type string; } anyxml alarm-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-alarm-information rpc get-chassis-alarm-satellite-information { description "Show alarm status for satellite devices"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } } output { choice output_c { leaf output { type string; } anyxml chassis-alarm-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-alarm-satellite-information rpc get-chassis-errors { description "Show chassis errors"; input { leaf error-id { type string { length "1 .. 255"; } mandatory true; description "Error identifier for the error to be cleared"; } leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } mandatory true; description "Slot number of FPC"; } } output { choice output_c { leaf output { type string; } anyxml chassis-error-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-errors rpc get-chassis-active-errors { description "Show active errors"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Slot number of FPC"; } } output { choice output_c { leaf output { type string; } anyxml chassis-active-error-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-active-errors rpc get-active-error-information-detail { description "Show detailed output"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Slot number of FPC"; } } output { choice output_c { leaf output { type string; } anyxml chassis-errors-detail-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-active-error-information-detail rpc get-chassis-beacon-information { description "Show beacon status"; input { choice which-arg { leaf all { type enumeration { enum "off" { value 0; description "Beacons in OFF state"; } enum "on" { value 1; description "Beacons in ON state"; } } description "Beacons in ON/OFF state"; } leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Flexible PIC Controller slot number"; } leaf cb { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Control Board slot number"; } leaf service-node { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 1"; } } description "Service Node slot number"; } } // choice which-arg leaf pic-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "PIC slot number"; } choice port-num { leaf port { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Port number"; } leaf port-range { type empty; description "Port range"; } } // choice port-num leaf lower-limit { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Port range lower limit"; } leaf upper-limit { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Port range upper limit"; } } output { choice output_c { leaf output { type string; } anyxml chassis-beacon-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-beacon-information rpc network-services { description "Show chassis network services"; output { choice output_c { leaf output { type string; } anyxml network-services; anyxml multi-routing-engine-results; } // choice output_c } } // rpc network-services rpc ambient-temperature { description "Show chassis ambient temperature"; output { choice output_c { leaf output { type string; } anyxml ambient-temperature; anyxml multi-routing-engine-results; } // choice output_c } } // rpc ambient-temperature rpc get-clock-synchronization-information { description "Show clock synchronization information"; input { uses command-forwarding; leaf interface { type string; description "Name of physical interface"; } leaf extensive { type empty; description "Show clock synchronization information in detail"; } } output { choice output_c { leaf output { type string; } anyxml clock-synchronization-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-clock-synchronization-information rpc get-chassis-clock-synchronization-gru { description "Show GPS Receiver Unit related parameters"; input { leaf extensive { type empty; description "Show detailed GPS Receiver Unit information"; } } output { choice output_c { leaf output { type string; } anyxml clock-synchronization-gru; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-clock-synchronization-gru rpc get-craft-information { description "Show craft interface status"; output { choice output_c { leaf output { type string; } anyxml craft-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-craft-information rpc get-ethernet-switch-information { description "Show Ethernet switch information"; input { uses command-forwarding; leaf ethernet-switch-type { type enumeration { enum "get-ethernet-switch-cb-information" { value 0; description "Show Ethernet switch Control Board information"; } enum "get-ethernet-switch-fpc-information" { value 1; description "Show Ethernet switch Front Card information"; } } mandatory true; description "Show Ethernet switch information"; } leaf detail { type empty; description "Show Ethernet switch traffic statistics"; } leaf port { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "1 .. 28"; } } description "Port number"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 7"; } } description "Front card FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml ethernet-switch-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-ethernet-switch-information rpc get-ethernet-switch-statistics-information { description "Show Ethernet switch traffic statistics"; input { uses command-forwarding; leaf port { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Port number"; } } output { choice output_c { leaf output { type string; } anyxml ethernet-switch-statistics-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-ethernet-switch-statistics-information rpc get-ethernet-switch-error-information { description "Show accumulated Ethernet switch errors"; input { uses command-forwarding; leaf port { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Port number"; } } output { choice output_c { leaf output { type string; } anyxml ethernet-switch-error-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-ethernet-switch-error-information rpc get-chassis-memory-usage-chassisd { description "Dump LMLD data to /var/log/chassisd_memory_usage"; input { leaf root { type string; } } output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-memory-usage-chassisd rpc get-chassis-zones-information { description "Show chassis cooling zones information"; input { uses command-forwarding; leaf detail { type empty; description "Display detailed output"; } } output { choice output_c { leaf output { type string; } anyxml chassis-zones-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-zones-information rpc get-environment-information { description "Show component status and temperature, cooling system speeds"; input { uses command-forwarding; leaf monitored { type empty; description "Show items whose temperatures are monitored"; } } output { choice output_c { leaf output { type string; } anyxml environment-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-information rpc get-environment-sib-information { description "Show Switch Interface Board information"; input { uses command-forwarding; leaf sib-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "SIB slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-sib-information rpc get-environment-fan-information { description "Show fan status"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 6"; } } description "Fantray slot number"; } } output { choice output_c { leaf output { type string; } anyxml fan-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-fan-information rpc get-environment-fpc-information { description "Show Flexible PIC Concentrator information"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-fpc-information rpc get-chassis-environment-fpc-satellite-info { description "Show environment FPC details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-environment-fpc-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-environment-fpc-satellite-info rpc get-environment-fpm-information { description "Show craft interface information"; output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-fpm-information rpc get-environment-cb-information { description "Show Control Board information"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "CB slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-cb-information rpc get-environment-pem-information { description "Show Power Entry Module information"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "PEM slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-pem-information rpc get-chassis-environment-pem-satellite-info { description "Show environment PEM details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-environment-pem-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-environment-pem-satellite-info rpc get-environment-psm-information { description "Show Power Supply Module information"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "PSM slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-psm-information rpc get-environment-re-information { description "Show Routing Engine information"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Routing Engine slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-re-information rpc get-chassis-environment-re-satellite-info { description "Show environment routing engine details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-environment-routing-engine-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-environment-re-satellite-info rpc get-environment-feb-information { description "Show Forwarding Engine Board information"; input { leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FEB slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-feb-information rpc get-environment-service-node-information { description "Show Compute Node Environment information"; input { leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 1"; } } description "Service node slot number"; } } output { choice output_c { leaf output { type string; } anyxml environment-component-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-environment-service-node-information rpc get-chassis-environment-satellite-information { description "Show environment details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-environment-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-environment-satellite-information rpc get-firmware-information { description "Show firmware and operating system version for components"; input { uses command-forwarding; leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Flexible PIC Controller slot number"; } } output { choice output_c { leaf output { type string; } anyxml firmware-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-firmware-information rpc get-firmware-information-detail { description "Show detailed output"; output { choice output_c { leaf output { type string; } anyxml hardware-version-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-firmware-information-detail rpc get-chassis-firmware-satellite-information { description "Show FPC firmware details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-firmware-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-firmware-satellite-information rpc get-fpc-information { description "Show Flexible PIC Concentrator status"; input { uses command-forwarding; leaf detail { type empty; description "Display detailed output"; } leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-information rpc get-pic-information { description "Show Physical Interface Cards installed in FPC"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-pic-information rpc get-fpc-ether-types-information { description "Show Ether Types"; input { leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-ether-types-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-ether-types-information rpc get-fpc-port-information { description "Show Port status installed in FPC"; input { leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-port-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-port-information rpc get-fpc-error-information { description "Show ASIC errors on all the FPC's"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } leaf detail { type empty; description "Display detailed output"; } leaf scope { type enumeration { enum "board" { value 0; description "Show board errors"; } enum "pfe" { value 1; description "Show pfe errors"; } } description "Error scope"; } leaf category { type enumeration { enum "functional" { value 0; description "Functional category errors"; } enum "memory" { value 1; description "Memory category errors"; } enum "io" { value 2; description "Io category errors"; } enum "storage" { value 3; description "Storage category errors"; } enum "switch" { value 4; description "Switch category errors"; } enum "processing" { value 5; description "Processing category errors"; } } description "Error category"; } } output { choice output_c { leaf output { type string; } anyxml fpc-error-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-error-information rpc get-fpc-error-i2c { description "Display I2C error statistics"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-tvp-error-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fpc-error-i2c rpc get-pic-detail { description "Show Physical Interface Card state, type, and uptime"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Slot number of FPC that houses PIC"; } leaf pic-slot { type union { type string { pattern "<.*>|$.*"; } type int32; } mandatory true; description "PIC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fpc-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-pic-detail rpc get-pic-transport-information { description "Show Physical Interface Card transport information"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } mandatory true; description "Slot number of FPC that houses PIC"; } leaf pic-slot { type union { type string { pattern "<.*>|$.*"; } type int32; } mandatory true; description "PIC slot number"; } } output { choice output_c { leaf output { type string; } anyxml pic-transport-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-pic-transport-information rpc get-sib-information { description "Show Switch Interface Board status"; input { uses command-forwarding; leaf detail { type empty; description "Display detailed output"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "SIB slot number"; } } output { choice output_c { leaf output { type string; } anyxml sib-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-sib-information rpc get-sibs-errors { description "Show ASIC errors on sib"; input { leaf sib-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "SIB slot number"; } } output { choice output_c { leaf output { type string; } anyxml sib-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-sibs-errors rpc get-fm-fpc-state-information { description "Show summary fabric management FPC state from Routing Engine"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fm-fpc-state-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-fpc-state-information rpc get-fm-plane-location-information { description "Show fabric plane location"; output { choice output_c { leaf output { type string; } anyxml fm-plane-location-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-plane-location-information rpc get-fm-topology { description "Show fabric topology for plane"; input { uses command-forwarding; leaf plane { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Fabric plane number"; } } output { choice output_c { leaf output { type string; } anyxml fm-topology; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-topology rpc get-fm-plane-state-information { description "Show state of fabric management plane"; input { uses command-forwarding; leaf display { type enumeration { enum "terse" { value 0; description "Show terse output"; } enum "detail" { value 1; description "Show detail output"; } enum "extensive" { value 2; description "Show extensive output"; } } } leaf number { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 4"; } } description "Fabric plane number"; } } output { choice output_c { leaf output { type string; } anyxml fm-plane-state-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-plane-state-information rpc get-fm-state-information { description "Show summary fabric management state"; output { choice output_c { leaf output { type string; } anyxml fm-state-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-state-information rpc get-fm-sib-state-information { description "Show summary fabric management SIB state from Routing Engine"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "SIB slot number"; } } output { choice output_c { leaf output { type string; } anyxml fm-sib-state-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-sib-state-information rpc get-chassis-fabric-topology-information { description "Show fabric topology information"; input { uses command-forwarding; leaf device { type string; description "Device alias name or serial number"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 15"; } } description "Slot number"; } } output { choice output_c { leaf output { type string; } anyxml chassis-fabric-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fabric-topology-information rpc get-chassis-fabric-spray-weight-information { description "Show fabric spray-weights"; output { choice output_c { leaf output { type string; } anyxml chassis-fabric-spray-weight-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fabric-spray-weight-information rpc get-chassis-fabric-link-information { description "Show data-center fabric links"; input { leaf link-type { type enumeration { enum "up" { value 0; description "Up links"; } enum "down" { value 1; description "Down links"; } enum "error" { value 2; description "Error links"; } enum "all" { value 3; description "All links"; } } default "all"; description "Link type"; } leaf device { type string; description "Device alias name or serial number"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 15"; } } description "Slot number"; } } output { choice output_c { leaf output { type string; } anyxml chassis-fabric-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fabric-link-information rpc get-chassis-fabric-information-device { description "Show chassis fabric devices running FM component"; input { leaf device-id { type string; description "Device alias name or serial number"; } } output { choice output_c { leaf output { type string; } anyxml chassis-fabric-information-device; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fabric-information-device rpc get-chassis-fabric-connectivity-information { description "Show data-center fabric connectivity"; input { leaf device { type string; description "Device alias name or serial number"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 15"; } } description "Slot number"; } leaf inter-chassis { type empty; description "Inter chassis fabric link connectivity details"; } leaf intra-chassis { type empty; description "Intra chassis fabric link connectivity details"; } } output { choice output_c { leaf output { type string; } anyxml chassis-fabric-connectivity-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fabric-connectivity-information rpc get-fm-fabric-reachability-information { description "Show current status of fabric reachability"; input { uses command-forwarding; leaf detail { type empty; description "Show reachability output in detail"; } } output { choice output_c { leaf output { type string; } anyxml fm-fabric-reachability-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-fabric-reachability-information rpc get-fm-degraded-fabric-state-information { description "Show degraded fabric state on all active planes"; output { choice output_c { leaf output { type string; } anyxml fm-degraded-fabric-state-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-degraded-fabric-state-information rpc get-fm-sib-errors { description "Show Switch Interface Board errors"; input { uses command-forwarding; leaf sib-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } mandatory true; description "SIB slot number"; } } output { choice output_c { leaf output { type string; } anyxml fm-fru-errors; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-sib-errors rpc get-fm-fpc-errors { description "Show Flexible PIC Controller errors"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } mandatory true; description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml fm-fru-errors; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-fpc-errors rpc get-fm-plane-autoheal-errors { description "Show Planes autoheal state"; output { choice output_c { leaf output { type string; } anyxml fm-fru-errors; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fm-plane-autoheal-errors rpc get-chassis-inventory { description "Show installed hardware components"; input { uses command-forwarding; leaf verbosity { type enumeration { enum "detail" { value 0; description "Include RAM and disk information in output"; } enum "extensive" { value 1; description "Display ID EEPROM information"; } enum "models" { value 2; description "Display serial number and model number for orderable FRUs"; } enum "clei-models" { value 3; description "Display CLEI barcode and model number for orderable FRUs"; } } } leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Flexible PIC Controller slot number"; } } output { choice output_c { leaf output { type string; } anyxml chassis-inventory; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-inventory rpc get-chassis-hardware-satellite-information { description "Show hardware details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } leaf verbosity { type enumeration { enum "detail" { value 0; description "Include RAM and disk information in output"; } enum "extensive" { value 1; description "Display ID EEPROM information"; } enum "models" { value 2; description "Display serial number and model number for orderable FRUs"; } enum "clei-models" { value 3; description "Display CLEI barcode and model number for orderable FRUs"; } } } } output { choice output_c { leaf output { type string; } anyxml chassis-hardware-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-hardware-satellite-information rpc get-power-budget-information { description "Show power budget chassis information"; output { choice output_c { leaf output { type string; } anyxml power-budget-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-power-budget-information rpc get-chassis-mac-addresses { description "Show media access control addresses"; output { choice output_c { leaf output { type string; } anyxml chassis-mac-addresses; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-mac-addresses rpc get-route-engine-information { description "Show Routing Engine status"; input { uses command-forwarding; leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Routing Engine slot number"; } } output { choice output_c { leaf output { type string; } anyxml route-engine-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-route-engine-information rpc get-bios-version-information { description "Show BIOS firmware version"; output { choice output_c { leaf output { type string; } anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-bios-version-information rpc get-chassis-routing-engine-bios-satellite-info { description "Show routing engine bios details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-routing-engine-bios-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-routing-engine-bios-satellite-info rpc get-chassis-hard-disk-test { description "Show smartd self tests status on hard disks"; input { leaf status { type empty; mandatory true; description "Display status of test"; } leaf disk { type string; mandatory true; description "Name of hard disk"; } } output { choice output_c { leaf output { type string; } anyxml raid-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-hard-disk-test rpc get-chassis-routing-engine-errors { description "Show RE errors"; output { choice output_c { leaf output { type string; } anyxml errors; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-routing-engine-errors rpc get-chassis-routing-engine-satellite-information { description "Show routing engine details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-routing-engine-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-routing-engine-satellite-information rpc get-service-node-information { description "Show service node information"; input { leaf version { type empty; description "Show service-node version information"; } leaf slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 1"; } } description "Service node slot number"; } } output { choice output_c { leaf output { type string; } anyxml service-node-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-service-node-information rpc get-feb-brief-information { description "Show Forwarding Engine Board status"; input { leaf feb_slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FEB slot number"; } } output { choice output_c { leaf output { type string; } anyxml scb-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-feb-brief-information rpc get-feb-information { description "Show detailed output"; input { leaf feb_slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FEB slot number"; } } output { choice output_c { leaf output { type string; } anyxml scb-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-feb-information rpc get-tfeb-information { description "Show Compact Forwarding Engine Board status"; output { choice output_c { leaf output { type string; } anyxml scb-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-tfeb-information rpc get-fan-information { description "Show fan and fan tray information"; output { choice output_c { leaf output { type string; } anyxml fan-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-fan-information rpc get-chassis-fan-satellite-information { description "Show fan details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-fan-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-fan-satellite-information rpc get-chassis-location { description "Show physical location of chassis"; output { choice output_c { leaf output { type string; } anyxml chassis-location; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-location rpc get-temperature-threshold-information { description "Show chassis temperature threshold settings"; input { uses command-forwarding; leaf fpc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Flexible PIC Controller slot number"; } } output { choice output_c { leaf output { type string; } anyxml temperature-threshold-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-temperature-threshold-information rpc get-chassis-temp-thresholds-satellite-info { description "Show temperature thresholds details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-temperature-thresholds-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-temp-thresholds-satellite-info rpc get-power-management { description "Show power ratings for the router"; output { choice output_c { leaf output { type string; } anyxml power-management-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-power-management rpc get-in-service-upgrade-status { description "Show In Service upgrade status"; output { choice output_c { leaf output { type string; } anyxml in-service-upgrade-status; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-in-service-upgrade-status rpc get-chassis-mode-status { description "Show chassis mode status"; output { choice output_c { leaf output { type string; } anyxml chassis-mode-status; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-mode-status rpc get-nonstop-upgrade-status { description "Show nonstop upgrade status"; output { choice output_c { leaf output { type string; } anyxml in-service-upgrade-status; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-nonstop-upgrade-status rpc get-chassis-oss-map { description "Show Operation Supported System's translated model"; output { choice output_c { leaf output { type string; } anyxml chassis-oss-map; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-oss-map rpc security-uefi-variables { description "Show platform UEFI variables"; output { choice output_c { leaf output { type string; } anyxml uefi-vars; anyxml multi-routing-engine-results; } // choice output_c } } // rpc security-uefi-variables rpc get-lcd-information { description "Show LCD display"; output { choice output_c { leaf output { type string; } anyxml craft-lcd-led-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-lcd-information rpc get-lcd-fpc-information { description "Show LCD display for FPC slot number"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml craft-lcd-led-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-lcd-fpc-information rpc get-lcd-menu-information { description "Show active LCD menu items"; output { choice output_c { leaf output { type string; } anyxml lcd-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-lcd-menu-information rpc get-led-information { description "Show LED status"; output { choice output_c { leaf output { type string; } anyxml craft-lcd-led-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-led-information rpc get-led-fpc-information { description "Show LED status for FPC slot number"; input { uses command-forwarding; leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "FPC slot number"; } } output { choice output_c { leaf output { type string; } anyxml craft-lcd-led-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-led-fpc-information rpc get-chassis-led-satellite-information { description "Show led details"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } output { choice output_c { leaf output { type string; } anyxml chassis-led-satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-led-satellite-information rpc get-chassis-satellite-information { description "Show Satellite Devices information"; input { choice arg { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } // choice arg leaf cluster { type string; description "Cluster name"; } leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output"; } enum "brief" { value 1; description "Display brief output (default)"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-information rpc get-chassis-satellite-unprovision-information { description "Display unprovisioned satellites"; input { leaf system-id { type jt:mac-addr; description "Satellite system id"; } leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } leaf level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml satellite-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-unprovision-information rpc get-chassis-satellite-statistics { description "Display device statistics information"; input { choice arg { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "Satellite slot number"; } leaf device-alias { type string; description "Device alias"; } } // choice arg leaf cluster { type string; description "Cluster name"; } } output { choice output_c { leaf output { type string; } anyxml device-statistics; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-statistics rpc get-chassis-satellite-redundancy-group-info { description "Display multi-chassis cluster information"; input { leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } } output { choice output_c { leaf output { type string; } anyxml multi-chassis-cluster-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-redundancy-group-info rpc get-chassis-satellite-redundacy-grp-devices-info { description "Display satellite device information"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "Satellite slot number"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } } output { choice output_c { leaf output { type string; } anyxml multi-chassis-cluster-device-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-redundacy-grp-devices-info rpc get-chassis-satellite-redundancy-grp-dev-history { description "Display device history information"; input { leaf verbosity_level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } leaf serial-number { type string; description "Device Serial Number"; } leaf global { type empty; description "Global history"; } } output { choice output_c { leaf output { type string; } anyxml multi-chassis-cluster-device-history-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-redundancy-grp-dev-history rpc get-chassis-satellite-redundacy-grp-if-info { description "Display satellite interface information"; input { leaf interface-name { type union { type jt:interface-name; type string { pattern "<.*>|$.*"; } } description "Name of interface"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } } output { choice output_c { leaf output { type string; } anyxml multi-chassis-cluster-interface-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-redundacy-grp-if-info rpc get-chassis-satellite-extended-port-information { description "Display extended-port information"; input { leaf interface-name { type string; description "Interface name"; } leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "65 .. 254"; } } description "Satellite slot number"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } } output { choice output_c { leaf output { type string; } anyxml extended-port-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-extended-port-information rpc get-chassis-satellite-upgrade-group-information { description "Display upgrade group information"; input { leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } leaf group-name { type string; description "Upgrade group name"; } } output { choice output_c { leaf output { type string; } anyxml upgrade-group-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-upgrade-group-information rpc get-chassis-satellite-neighbor-information { description "Display satellite adjacency information"; input { leaf interface-name { type string; description "Name of interface"; } leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } leaf level { type enumeration { enum "terse" { value 0; description "Display terse output (default)"; } enum "brief" { value 1; description "Display brief output"; } enum "detail" { value 2; description "Display detailed output"; } enum "extensive" { value 3; description "Display extensive output"; } } default "terse"; } } output { choice output_c { leaf output { type string; } anyxml adjacency-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-neighbor-information rpc get-chassis-satellite-neighbor-statistics { description "Display adjacency statistics information"; input { leaf interface-name { type string; description "Name of interface"; } } output { choice output_c { leaf output { type string; } anyxml adjacency-statistics; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-neighbor-statistics rpc get-chassis-satellite-interface-information { description "Display satellite protocol interface information"; input { leaf verbosity_level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } enum "extensive" { value 2; description "Display extensive output"; } } default "brief"; } leaf interface-name { type string; description "Name of interface"; } leaf since { type jt:time; description "Show history since YYYY-MM-DD.HH:MM:SS"; } } output { choice output_c { leaf output { type string; } anyxml satellite-interface-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-chassis-satellite-interface-information rpc get-satellite-management-software-information { description "Show satellite software installed"; input { leaf level { type enumeration { enum "brief" { value 0; description "Display brief output (default)"; } enum "detail" { value 1; description "Display detailed output"; } } default "brief"; } } output { choice output_c { leaf output { type string; } anyxml satellite-software-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-management-software-information rpc get-satellite-power-budget-information { description "Show power budget chassis satellite information"; input { leaf fpc-slot { type union { type string { pattern "<.*>|$.*"; } type uint16 { range "65 .. 254"; } } description "Satellite slot number"; } } output { choice output_c { leaf output { type string; } anyxml power-budget-information; anyxml multi-routing-engine-results; } // choice output_c } } // rpc get-satellite-power-budget-information grouping command-forwarding { choice chassis-selector { leaf all-chassis { type empty; description "All chassis"; } leaf all-lcc { type empty; description "All LCC chassis"; } leaf scc { type empty; description "SCC"; } leaf sfc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "SFC"; } leaf lcc { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Specific LCC"; } leaf node { type string; description "Specific node"; } leaf bsys { type empty; description "Base system"; } leaf gnf { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "1 .. 10"; } } description "Specific guest network function"; } leaf all-gnfs { type empty; description "All guest network functions"; } leaf all-system { type empty; description "All system (BSYS and GNFs)"; } leaf server { type union { type string { pattern "<.*>|$.*"; } type uint32 { range "0 .. 1"; } } description "Specific server slot"; } leaf all-servers { type empty; description "All servers"; } leaf vnf { type string; description "Specific virtual-network-function"; } leaf all-vnfs { type empty; description "All virtual-network-functions"; } } // choice chassis-selector choice re-selector { leaf re0 { type empty; description "RE0"; } leaf re1 { type empty; description "RE1"; } leaf routing-engine { type enumeration { enum "local" { value 0; description "Local routing engine"; } enum "other" { value 1; description "Other routing engine"; } enum "master" { value 2; description "Master routing engine"; } enum "backup" { value 3; description "Backup routing engine"; } enum "both" { value 4; description "Both routing engines"; } } description "Specific routing engine"; } } // choice re-selector choice lr-selector { leaf logical-system { type string; description "Name of logical system, or 'all'"; } } // choice lr-selector choice tenant-selector { leaf tenant { type string; description "Name of tenant, or 'all'"; } } // choice tenant-selector choice vc-selector { leaf local { type empty; description "Local virtual chassis member"; } leaf all-members { type empty; description "All virtual chassis members"; } leaf member { type union { type string { pattern "<.*>|$.*"; } type uint32; } description "Specific virtual chassis member"; } } // choice vc-selector } // grouping command-forwarding } // module junos-qfx-rpc-chassis
© 2023 YumaWorks, Inc. All rights reserved.