Cisco-IOS-XE-platform-software-oper

This module contains a collection of YANG definitions for monitoring platform software in a Network Element. Copyright (c) 2017-...

  • Version: 2021-03-01

    Cisco-IOS-XE-platform-software-oper@2021-03-01


    
      module Cisco-IOS-XE-platform-software-oper {
    
        yang-version 1;
    
        namespace
          "http://cisco.com/ns/yang/Cisco-IOS-XE-platform-software-oper";
    
        prefix platform-sw-ios-xe-oper;
    
        import Cisco-IOS-XE-common-types {
          prefix common-types-ios-xe;
        }
        import ietf-yang-types {
          prefix yang;
        }
        import cisco-semver {
          prefix cisco-semver;
        }
    
        organization "Cisco Systems, Inc.";
    
        contact
          "Cisco Systems, Inc.
         Customer Service
    
         Postal: 170 W Tasman Drive
         San Jose, CA 95134
    
         Tel: +1 1800 553-NETS
    
         E-mail: cs-yang@cisco.com";
    
        description
          "This module contains a collection of YANG definitions
         for monitoring platform software in a Network Element.
         Copyright (c) 2017-2019 by Cisco Systems, Inc.
         All rights reserved.";
    
        revision "2021-03-01" {
          description
            "- Extended filesystem partitions by adding partition contents";
          reference
            "3.4.0";
    
        }
    
        revision "2019-05-01" {
          description
            "- Added information about image files and extended filesystem partition details.
           - Extended filesystem partitions.
           - Added semantic version";
          reference
            "3.3.0";
    
        }
    
        revision "2019-01-29" {
          description
            "Added the high availability states.";
          reference
            "3.2.0";
    
        }
    
        revision "2018-10-29" {
          description
            "Cleaned up spelling errors in descriptions.";
          reference
            "3.1.0";
    
        }
    
        revision "2018-05-29" {
          description
            "Migrate to new internal location types";
          reference
            "3.0.0";
    
        }
    
        revision "2018-03-09" {
          description
            "New data types for process stats added.
           Process system usage type is added to denote
           the per-process system usage. System usage type
           is added which denotes the per-process system usage in
           each FRU.";
          reference
            "2.2.0";
    
        }
    
        revision "2017-10-10" {
          description
            "New data types. Leaf name changes";
          reference
            "2.1.0";
    
        }
    
        revision "2017-04-01" {
          description
            "New location data types. Leaf name changes";
          reference
            "2.0.0";
    
        }
    
        revision "2017-02-07" {
          description "Initial revision";
          reference
            "1.0.0";
    
        }
    
        cisco-semver:module-version "3.4.0";
        cisco-semver:module-version "3.3.0";
        cisco-semver:module-version "3.2.0";
        cisco-semver:module-version "3.1.0";
        cisco-semver:module-version "3.0.0";
        cisco-semver:module-version "2.2.0";
        cisco-semver:module-version "2.1.0";
        cisco-semver:module-version "2.0.0";
        cisco-semver:module-version "1.0.0";
    
        typedef partition-usage-status {
          type enumeration {
            enum "critical" {
              value 0;
            }
            enum "warning" {
              value 1;
            }
            enum "healthy" {
              value 2;
            }
          }
          description "Partition usage status";
        }
    
        typedef partition-file-type {
          type enumeration {
            enum "file" {
              value 0;
              description "Regular file";
            }
            enum "directory" {
              value 1;
              description "Directory or folder";
            }
            enum "other" {
              value 2;
              description
                "Special Files or symbolic Link";
            }
          }
          description
            "Information about the file type";
        }
    
        container cisco-platform-software {
          config false;
          description
            "Cisco platform software information";
          container system-usages {
            description
              "Platform system usage information";
            list system-usage {
              key "fru slot bay chassis";
              description
                "The list of process system usage";
              leaf fru {
                type common-types-ios-xe:fru-type;
                description
                  "Field replaceable unit type";
              }
    
              leaf slot {
                type int16;
                description "Slot number";
              }
    
              leaf bay {
                type int16;
                description "Bay number";
              }
    
              leaf chassis {
                type int16;
                description "Chassis number";
              }
    
              container process-system-usages {
                description
                  "List of process system usage";
                list process-system-usage {
                  key "pid";
                  description
                    "Per-process system usage";
                  leaf pid {
                    type uint32;
                    description
                      "The pid of the process";
                  }
    
                  leaf name {
                    type string;
                    description "Process name";
                  }
    
                  leaf total-run-time {
                    type uint64;
                    description
                      "Total run time in seconds";
                  }
    
                  leaf five-seconds {
                    type uint64;
                    description
                      "Busy percentage in last 5-seconds";
                  }
    
                  leaf allocated-memory {
                    type uint64;
                    description
                      "Memory allocated to this process in kB";
                  }
    
                  leaf allocated-memory-percent {
                    type uint32;
                    description
                      "Percentage of memory allocated to this process";
                  }
                }  // list process-system-usage
              }  // container process-system-usages
            }  // list system-usage
          }  // container system-usages
    
          container control-processes {
            description
              "Information about control processes";
            list control-process {
              key "fru slot bay chassis";
              description
                "The list of control processes";
              leaf fru {
                type common-types-ios-xe:fru-type;
                description
                  "Field replaceable unit type";
              }
    
              leaf slot {
                type int16;
                description "Slot number";
              }
    
              leaf bay {
                type int16;
                description "Bay number";
              }
    
              leaf chassis {
                type int16;
                description "Chassis number";
              }
    
              leaf control-process-status {
                type string;
                description
                  "Status of the control process";
              }
    
              leaf updated {
                type uint64;
                description
                  "Number of seconds since the data has been updated";
              }
    
              container load-average-stats {
                description
                  "Load average statistics";
                leaf load-average-status {
                  type string;
                  description
                    "Load average status";
                }
              }  // container load-average-stats
    
              container load-avg-minutes {
                description
                  "Load average statistics calculated over a period of time";
                list load-avg-minute {
                  key "number";
                  description
                    "List of Load averages based on a time frame";
                  leaf number {
                    type uint64;
                    description
                      "The number of minutes the average was calculated on";
                  }
    
                  leaf average {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "Calculated average";
                  }
    
                  container status {
                    description
                      "Load average statistics minute status";
                    leaf condition {
                      type string;
                      description
                        "Load average condition";
                    }
    
                    leaf threshold-status {
                      type string;
                      description
                        "Load average status";
                    }
    
                    leaf threshold-value {
                      type decimal64 {
                        fraction-digits 2;
                      }
                      description
                        "Load average threshold";
                    }
                  }  // container status
                }  // list load-avg-minute
              }  // container load-avg-minutes
    
              container memory-stats {
                description "Memory statistics";
                leaf memory-status {
                  type string;
                  description
                    "The status of the memory";
                }
    
                leaf total {
                  type uint64;
                  description
                    "The total amount of memory in kb";
                }
    
                leaf used-number {
                  type uint64;
                  description
                    "The amount of memory being used in kb";
                }
    
                leaf used-percent {
                  type uint64;
                  description
                    "The percentage of memory being used";
                }
    
                leaf free-number {
                  type uint64;
                  description
                    "The amount of free memory in kb";
                }
    
                leaf free-percent {
                  type uint64;
                  description
                    "The percentage of free memory";
                }
    
                leaf available-number {
                  type uint64;
                  description
                    "The amount of available memory in kb";
                }
    
                leaf available-percent {
                  type uint64;
                  description
                    "The percentage of available memory";
                }
    
                leaf committed-number {
                  type uint64;
                  description
                    "The amount of committed memory in kb";
                }
    
                leaf committed-percent {
                  type uint8;
                  description
                    "The percentage of committed memory";
                }
    
                container status {
                  description "Memory status";
                  leaf warning-threshold-percent {
                    type uint32;
                    description
                      "Memory warning threshold value percent";
                  }
    
                  leaf critical-threshold-percent {
                    type uint32;
                    description
                      "Memory critical threshold value percent";
                  }
                }  // container status
              }  // container memory-stats
    
              container per-core-stats {
                description
                  "Processor core statistics";
                list per-core-stat {
                  key "name";
                  description
                    "List of processor cores";
                  leaf name {
                    type uint32;
                    description
                      "The identifier of the core";
                  }
    
                  leaf user {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "CPU utilization in user mode";
                  }
    
                  leaf system {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "CPU utilization in system mode";
                  }
    
                  leaf nice {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description "Nice level";
                  }
    
                  leaf idle {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "Idle percentage";
                  }
    
                  leaf irq {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "The percentage of utilization by IRQ";
                  }
    
                  leaf sirq {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "The percentage of utilization by SIRQ";
                  }
    
                  leaf io-wait {
                    type decimal64 {
                      fraction-digits 2;
                    }
                    description
                      "IO Wait percentage";
                  }
                }  // list per-core-stat
              }  // container per-core-stats
    
              leaf high-availability-state {
                type common-types-ios-xe:high-availability-role;
                description
                  "The location's high availability state";
              }
    
              leaf chassis-state {
                type common-types-ios-xe:high-availability-role;
                description
                  "The chassis role status";
              }
            }  // list control-process
          }  // container control-processes
    
          list q-filesystem {
            key "fru slot bay chassis";
            description
              "Information about the file system";
            leaf fru {
              type common-types-ios-xe:fru-type;
              description
                "Field replaceable unit type";
            }
    
            leaf slot {
              type int16;
              description "Slot number";
            }
    
            leaf bay {
              type int16;
              description "Bay number";
            }
    
            leaf chassis {
              type int16;
              description "Chassis number";
            }
    
            list partitions {
              key "name";
              description
                "Information about partitions";
              leaf name {
                type string;
                description
                  "The name of the partition";
              }
    
              leaf total-size {
                type uint64;
                description
                  "Total size of the partition in Kilobytes";
              }
    
              leaf used-size {
                type uint64;
                description
                  "Size used in Kilobytes";
              }
    
              leaf used-percent {
                type uint8;
                units "percent";
                description
                  "Partition used percentage";
              }
    
              leaf disk-status {
                type partition-usage-status;
                description
                  "Partition usage status determined by thresholds";
              }
    
              container thresholds {
                description
                  "Partition status threshold percents";
                leaf warning-threshold-percent {
                  type uint8;
                  units "percent";
                  description
                    "Partition warning threshold value percent";
                }
    
                leaf critical-threshold-percent {
                  type uint8;
                  units "percent";
                  description
                    "Partition critical threshold value percent";
                }
              }  // container thresholds
    
              leaf is-primary {
                type boolean;
                description
                  "Boolean indicating whether this is a primary partition";
              }
    
              leaf is-writable {
                type boolean;
                description
                  "Boolean indicating whether this is write-able";
              }
    
              list partition-content {
                key "full-path";
                description
                  "Files and folders present under partition";
                leaf full-path {
                  type string;
                  description
                    "Full path of file";
                }
    
                leaf size {
                  type uint64;
                  description
                    "File size in kilobytes";
                }
    
                leaf type {
                  type partition-file-type;
                  description
                    "File type of partition entry";
                }
    
                leaf modified-time {
                  type yang:date-and-time;
                  description
                    "File modification time";
                }
              }  // list partition-content
            }  // list partitions
    
            list core-files {
              key "filename";
              description
                "Information about core files";
              leaf filename {
                type string;
                description "The core filename";
              }
    
              leaf time {
                type yang:date-and-time;
                description
                  "The date of generation";
              }
            }  // list core-files
    
            list image-files {
              key "full-path";
              description
                "The list of image files";
              leaf full-path {
                type string;
                description
                  "The full path of image file";
              }
    
              leaf file-size {
                type uint64;
                units "bytes";
                description
                  "File size in units of byte";
              }
    
              leaf sha1sum {
                type binary;
                description
                  "The SHA1 sum bytes of the image file";
              }
            }  // list image-files
          }  // list q-filesystem
        }  // container cisco-platform-software
      }  // module Cisco-IOS-XE-platform-software-oper
    

© 2023 YumaWorks, Inc. All rights reserved.