Configuring Memory Thresholds

You can set the memory thresholds that are used to trigger events and set whether the operating system should kill processes if it cannot allocate memory.

For more information, see the Cisco Nexus 9000 Series NX-OS System Management Configuration Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/tsd-products-support-series-home.html

Configuring Memory Thresholds as Critical

Configuring Memory Thresholds as Critical 
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformSysMemTh": {
          "attributes": {
            "memThCritical": "80",
            "memThMinor": "80",
            "memThSevere": "80"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <sysmemth-items>
      <memThCritical>80</memThCritical>
      <memThMinor>80</memThMinor>
      <memThSevere>80</memThSevere>
    </sysmemth-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

system memory-thresholds minor 80 severe 80 critical 80


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntitysys/pltfm
platformSysMemThsys/pltfm/sysmemth


platformSysMemTh Properties

The following table contains information about the platformSysMemTh properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
memThCriticalplatform:SysMemThVal
(scalar:Uint32)
Critical System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50
memThMinorplatform:SysMemThVal
(scalar:Uint32)
Minor System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50
memThSevereplatform:SysMemThVal
(scalar:Uint32)
Severe System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Memory Thresholds as Critical

Deleting Memory Thresholds as Critical 
POST http://<mgmt0_IP>/api/mo/sys/pltfm.json
{
  "platformEntity": {
    "children": [
      {
        "platformSysMemTh": {
          "attributes": {
            "memThCritical": "50",
            "memThMinor": "50",
            "memThSevere": "50"
}}}]}}
{
    imdata:[]
}
<System>
  <pltfm-items>
    <sysmemth-items>
      <memThCritical>50</memThCritical>
      <memThMinor>50</memThMinor>
      <memThSevere>50</memThSevere>
    </sysmemth-items>
  </pltfm-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

no system memory-thresholds minor 80 severe 80 critical 80


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
platformEntitysys/pltfm
platformSysMemThsys/pltfm/sysmemth


platformSysMemTh Properties

The following table contains information about the platformSysMemTh properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
memThCriticalplatform:SysMemThVal
(scalar:Uint32)
Critical System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50
memThMinorplatform:SysMemThVal
(scalar:Uint32)
Minor System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50
memThSevereplatform:SysMemThVal
(scalar:Uint32)
Severe System Memory Threshold
RANGE: [50 , 100]
DEFAULT: 50


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

For detailed information about classes and attributes in the payload, see the NX-API DME Model Reference: https://developer.cisco.com/media/dme/index.html

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html