junos-qfx-rpc-snmp

Junos RPC YANG module for snmp command(s)

  • Version: 2019-01-01

    junos-qfx-rpc-snmp@2019-01-01


    
      module junos-qfx-rpc-snmp {
    
        yang-version 1;
    
        namespace
          "http://yang.juniper.net/junos-qfx/rpc/snmp";
    
        prefix snmp;
    
        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 snmp command(s)";
    
        revision "2019-01-01" {
          description "Junos: 21.3R1.9";
        }
    
    
        rpc get-snmp-object {
          description "Get SNMP object value";
          input {
            leaf format {
              type enumeration {
                enum "decimal" {
                  value 0;
                  description
                    "Decimal format (default)";
                }
                enum "ascii" {
                  value 1;
                  description
                    "Convert string indices to 'ascii-keys' representation";
                }
                enum "hex" {
                  value 2;
                  description
                    "Shows value part in hexadecimal format";
                }
              }
              default "decimal";
            }
    
            leaf snmp-object-name {
              type string;
              mandatory true;
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-object-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-object
    
        rpc next-snmp-object {
          description
            "Get next SNMP object value";
          input {
            leaf format {
              type enumeration {
                enum "decimal" {
                  value 0;
                  description
                    "Decimal format (default)";
                }
                enum "ascii" {
                  value 1;
                  description
                    "Convert string indices to 'ascii-keys' representation";
                }
                enum "hex" {
                  value 2;
                  description
                    "Shows value part in hexadecimal format";
                }
              }
              default "decimal";
            }
    
            leaf snmp-object-name {
              type string;
              mandatory true;
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-object-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc next-snmp-object
    
        rpc walk-snmp-object {
          description "Walk SNMP object values";
          input {
            leaf format {
              type enumeration {
                enum "decimal" {
                  value 0;
                  description
                    "Decimal format (default)";
                }
                enum "ascii" {
                  value 1;
                  description
                    "Convert string indices to 'ascii-keys' representation";
                }
                enum "hex" {
                  value 2;
                  description
                    "Shows value part in hexadecimal format";
                }
              }
              default "decimal";
            }
    
            leaf snmp-object-name {
              type string;
              mandatory true;
              description
                "Requested SNMP object names";
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-object-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc walk-snmp-object
    
        rpc get-snmp-information {
          description "Show SNMP statistics";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-information
    
        rpc get-snmp-subagent-statistics {
          description
            "Show statistics for all SNMP subagents";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-subagent-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-subagent-statistics
    
        rpc get-snmp-stats-response-statistics-information {
          description
            "Show mib2d's statistics for the stats responses from kernel/PFE";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-stats-response-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-stats-response-statistics-information
    
        rpc get-rmon-information {
          description
            "Show remote monitoring information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml rmon-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-rmon-information
    
        rpc get-rmon-history-information {
          description "Show RMON history";
          input {
            leaf index {
              type union {
                type int32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
            }
    
            leaf sample-index {
              type union {
                type int32;
                type string {
                  pattern "<.*>|$.*";
                }
              }
            }
          }
    
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml rmon-history-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-rmon-history-information
    
        rpc get-rmon-alarm-information {
          description "Show RMON alarms";
          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 rmon-alarm-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-rmon-alarm-information
    
        rpc get-rmon-event-information {
          description "Show RMON events";
          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 rmon-event-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-rmon-event-information
    
        rpc get-rmon-log-information {
          description
            "Show rmon monitoring logs";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml rmon-log-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-rmon-log-information
    
        rpc get-health-monitor-information {
          description
            "Show health-monitoring information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml health-monitor-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-health-monitor-information
    
        rpc get-health-monitor-alarm-information {
          description
            "Show health-monitor alarms";
          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 rmon-alarm-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-health-monitor-alarm-information
    
        rpc get-health-monitor-log-information {
          description
            "Show health-monitoring logs";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml rmon-log-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-health-monitor-log-information
    
        rpc get-snmp-v3-information {
          description
            "Show SNMP version 3 information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-information
    
        rpc get-snmp-v3-general-information {
          description
            "Show general SNMPv3 information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-general-information
    
        rpc get-snmp-v3-group-information {
          description
            "Show SNMPv3 security-to-group information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-group-information
    
        rpc get-snmp-v3-usm-user-information {
          description
            "Show SNMPv3 user information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-usm-user-information
    
        rpc get-snmp-v3-access-information {
          description
            "Show SNMPv3 access information";
          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 snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-access-information
    
        rpc get-snmp-v3-community-information {
          description
            "Show SNMPv3 community information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-community-information
    
        rpc get-snmp-v3-target-information {
          description
            "Show SNMPv3 target information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-target-information
    
        rpc get-snmp-v3-target-address-information {
          description
            "Show SNMPv3 target address information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-target-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-target-address-information
    
        rpc get-snmp-v3-target-parameters-information {
          description
            "Show SNMPv3 target parameters information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-target-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-target-parameters-information
    
        rpc get-snmp-v3-notify-information {
          description
            "Show SNMPv3 notify information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-notify-information
    
        rpc get-snmp-v3-notify-filter-information {
          description
            "Show SNMPv3 notify filter information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-v3-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-v3-notify-filter-information
    
        rpc get-snmp-inform-statistics {
          description
            "Show SNMP Inform request statistics";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-inform-statistics {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-inform-statistics
    
        rpc get-snmp-proxy-information {
          description
            "Show SNMP Proxy information";
          output {
            choice output_c {
              leaf output {
                type string;
              }
              anyxml snmp-proxy-information {
              }
              anyxml multi-routing-engine-results {
              }
            }  // choice output_c
          }
        }  // rpc get-snmp-proxy-information
      }  // module junos-qfx-rpc-snmp
    

© 2023 YumaWorks, Inc. All rights reserved.