Repository: napalm-automation/napalm
Pull request #1809 (2022-12-06 02:56:02)

Handle non standard output for NXOS PSU's in get_environment
These minor changes are to address the issues that were reported in https://github.com/napalm-automation/napalm/issues/1371 and https://github.com/napalm-automation/napalm/issues/1372


Patch:
diff --git a/napalm/nxos/nxos.py b/napalm/nxos/nxos.py
index a7c35834..ea1d9fc6 100644
--- a/napalm/nxos/nxos.py
+++ b/napalm/nxos/nxos.py
@@ -1563,9 +1563,19 @@ class NXOSDriver(NXOSDriverBase):
             ][0]
             for psinfo in ps_info_table[ps_info_row_key]:
                 normalized[psinfo["psnum"]]["status"] = (
-                    psinfo.get("ps_status", "ok") == "ok"
+                    psinfo.get("ps_status", "ok").lower() == "ok"
                 )
-                normalized[psinfo["psnum"]]["output"] = float(psinfo.get("watts", -1.0))
+                # typically the power output is key'd by watts
+                # other times it is keyed by "actual_out"
+                if "watts" in psinfo:
+                    normalized[psinfo["psnum"]]["output"] = float(
+                        psinfo.get("watts", -1.0)
+                    )
+                else:
+                    # When the power output is keyed by actual_out, it appears like "99 W"
+                    normalized[psinfo["psnum"]]["output"] = float(
+                        psinfo.get("actual_out", -1.0).split()[0]
+                    )
                 # Newer nxos versions provide the total capacity in the `tot_capa` key
                 if "tot_capa" in psinfo:
                     normalized[psinfo["psnum"]]["capacity"] = float(


Test patch:
diff --git a/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/expected_result.json b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/expected_result.json
new file mode 100644
index 00000000..b1738870
--- /dev/null
+++ b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/expected_result.json
@@ -0,0 +1,56 @@
+{
+  "power": {
+    "1": {
+      "status": true,
+      "output": 98,
+      "capacity": 400
+    },
+    "2": {
+      "status": false,
+      "output": 0,
+      "capacity": 0
+    }
+  },
+  "fans": {
+    "Fan1(sys_fan1)": {
+      "status": true
+    },
+    "Fan2(sys_fan2)": {
+      "status": true
+    },
+    "Fan3(sys_fan3)": {
+      "status": true
+    }
+  },
+  "temperature": {
+    "1-1 FRONT": {
+      "temperature": 27,
+      "is_alert": false,
+      "is_critical": false
+    },
+    "1-2 BACK": {
+      "temperature": 27,
+      "is_alert": false,
+      "is_critical": false
+    },
+    "1-3 CPU": {
+      "temperature": 35,
+      "is_alert": false,
+      "is_critical": false
+    },
+    "1-4 Homewood": {
+      "temperature": 39,
+      "is_alert": false,
+      "is_critical": false
+    }
+  },
+  "cpu": {
+    "0": {
+      "%usage": 4.8 
+    }
+  },
+  "memory": {
+    "available_ram": 575000,
+    "used_ram": 52000
+  }
+}
diff --git a/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_environment.json b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_environment.json
new file mode 100644
index 00000000..a43b4b08
--- /dev/null
+++ b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_environment.json
@@ -0,0 +1,121 @@
+{
+  "fandetails": {
+    "fan_filter_status": "NotSupported",
+    "TABLE_faninfo": {
+      "ROW_faninfo": [
+        {
+          "fanname": "Fan1(sys_fan1)",
+          "fanmodel": "NXA-FAN-30CFM-F",
+          "fanhwver": "--",
+          "fandir": "back-to-front",
+          "fanstatus": "Ok"
+        },
+        {
+          "fanname": "Fan2(sys_fan2)",
+          "fanmodel": "NXA-FAN-30CFM-F",
+          "fanhwver": "--",
+          "fandir": "back-to-front",
+          "fanstatus": "Ok"
+        },
+        {
+          "fanname": "Fan3(sys_fan3)",
+          "fanmodel": "NXA-FAN-30CFM-F",
+          "fanhwver": "--",
+          "fandir": "back-to-front",
+          "fanstatus": "Ok"
+        },
+        {
+          "fanname": "Fan_in_PS1",
+          "fanmodel": "",
+          "fanhwver": "--",
+          "fandir": "back-to-front",
+          "fanstatus": "Ok"
+        },
+        {
+          "fanname": "Fan_in_PS2",
+          "fanmodel": "",
+          "fanhwver": "--",
+          "fandir": "back-to-front",
+          "fanstatus": "Shutdown"
+        }
+      ]
+    },
+    "TABLE_fan_zone_speed": {
+      "ROW_fan_zone_speed": {
+        "zone": "1",
+        "zonespeed": "0xb3"
+      }
+    }
+  },
+  "TABLE_tempinfo": {
+    "ROW_tempinfo": [
+      {
+        "tempmod": "1",
+        "sensor": "FRONT",
+        "majthres": "80",
+        "minthres": "70",
+        "curtemp": "27",
+        "alarmstatus": "Ok"
+      },
+      {
+        "tempmod": "1",
+        "sensor": "BACK",
+        "majthres": "70",
+        "minthres": "42",
+        "curtemp": "27",
+        "alarmstatus": "Ok"
+      },
+      {
+        "tempmod": "1",
+        "sensor": "CPU",
+        "majthres": "90",
+        "minthres": "80",
+        "curtemp": "35",
+        "alarmstatus": "Ok"
+      },
+      {
+        "tempmod": "1",
+        "sensor": "Homewood",
+        "majthres": "110",
+        "minthres": "90",
+        "curtemp": "39",
+        "alarmstatus": "Ok"
+      }
+    ]
+  },
+  "powersup": {
+    "voltage_level": 12,
+    "power_summary": {
+      "ps_redun_mode": "PS-Redundant",
+      "ps_oper_mode": "Non-Redundant",
+      "tot_pow_capacity": " 400.00 W",
+      "tot_gridA_capacity": " 400.00 W",
+      "tot_gridB_capacity": "   0.00 W",
+      "cumulative_power": " 400.00 W",
+      "tot_pow_out_actual_draw": "  98.00 W",
+      "tot_pow_input_actual_draw": " 115.00 W",
+      "tot_pow_alloc_budgeted": "   N/A   ",
+      "available_pow": "   N/A   "
+    },
+    "TABLE_psinfo": {
+      "ROW_psinfo": [
+        {
+          "psnum": 1,
+          "psmodel": "N2200-PAC-400W",
+          "actual_out": "   98 W",
+          "actual_input": "  115 W",
+          "tot_capa": "  400 W",
+          "ps_status": "Ok"
+        },
+        {
+          "psnum": 2,
+          "psmodel": "N2200-PAC-400W",
+          "actual_out": "    0 W",
+          "actual_input": "    0 W",
+          "tot_capa": "    0 W",
+          "ps_status": "Shutdown"
+        }
+      ]
+    }
+  }
+}
diff --git a/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_cpu.json b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_cpu.json
new file mode 100644
index 00000000..d66a91bb
--- /dev/null
+++ b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_cpu.json
@@ -0,0 +1,1701 @@
+{
+  "user_percent": "2.39",
+  "kernel_percent": "2.39",
+  "idle_percent": "95.20",
+  "fivesec_percent": 4,
+  "fivesec_intr_percent": 0,
+  "onemin_percent": 6,
+  "fivemin_percent": 7,
+  "TABLE_process_cpu": {
+    "ROW_process_cpu": [
+      {
+        "pid": 1,
+        "runtime": 2312,
+        "invoked": 1164,
+        "usecs": 1986,
+        "onesec": "0.00",
+        "process": "init"
+      },
+      {
+        "pid": 8068,
+        "runtime": 2,
+        "invoked": 36,
+        "usecs": 62,
+        "onesec": "0.00",
+        "process": "portmap"
+      },
+      {
+        "pid": 8271,
+        "runtime": 0,
+        "invoked": 1,
+        "usecs": 216,
+        "onesec": "0.00",
+        "process": "rpc.mountd"
+      },
+      {
+        "pid": 8278,
+        "runtime": 1,
+        "invoked": 6,
+        "usecs": 306,
+        "onesec": "0.00",
+        "process": "rpc.statd"
+      },
+      {
+        "pid": 9257,
+        "runtime": 15,
+        "invoked": 82,
+        "usecs": 194,
+        "onesec": "0.00",
+        "process": "swmoni.sh"
+      },
+      {
+        "pid": 9863,
+        "runtime": 0,
+        "invoked": 2,
+        "usecs": 106,
+        "onesec": "0.00",
+        "process": "mcelog"
+      },
+      {
+        "pid": 11105,
+        "runtime": 8,
+        "invoked": 10,
+        "usecs": 858,
+        "onesec": "0.00",
+        "process": "libvirtd_mon.sh"
+      },
+      {
+        "pid": 11106,
+        "runtime": 4,
+        "invoked": 9,
+        "usecs": 518,
+        "onesec": "0.00",
+        "process": "sh"
+      },
+      {
+        "pid": 11107,
+        "runtime": 1860,
+        "invoked": 4139,
+        "usecs": 449,
+        "onesec": "0.00",
+        "process": "sysmgr"
+      },
+      {
+        "pid": 11108,
+        "runtime": 1274,
+        "invoked": 1664,
+        "usecs": 765,
+        "onesec": "0.00",
+        "process": "sysmgr"
+      },
+      {
+        "pid": 11179,
+        "runtime": 292,
+        "invoked": 231,
+        "usecs": 1266,
+        "onesec": "0.00",
+        "process": "libvirtd"
+      },
+      {
+        "pid": 11748,
+        "runtime": 0,
+        "invoked": 2,
+        "usecs": 433,
+        "onesec": "0.00",
+        "process": "inotifywait"
+      },
+      {
+        "pid": 18476,
+        "runtime": 15,
+        "invoked": 22,
+        "usecs": 684,
+        "onesec": "0.00",
+        "process": "sdwrapd"
+      },
+      {
+        "pid": 18478,
+        "runtime": 7885,
+        "invoked": 2330,
+        "usecs": 3384,
+        "onesec": "0.00",
+        "process": "pfmclnt"
+      },
+      {
+        "pid": 18665,
+        "runtime": 5,
+        "invoked": 7,
+        "usecs": 847,
+        "onesec": "0.00",
+        "process": "xinetd"
+      },
+      {
+        "pid": 18666,
+        "runtime": 9,
+        "invoked": 4,
+        "usecs": 2299,
+        "onesec": "0.00",
+        "process": "tftpd"
+      },
+      {
+        "pid": 18667,
+        "runtime": 106,
+        "invoked": 37,
+        "usecs": 2865,
+        "onesec": "0.00",
+        "process": "sdwrapd"
+      },
+      {
+        "pid": 18669,
+        "runtime": 556,
+        "invoked": 88,
+        "usecs": 6320,
+        "onesec": "0.00",
+        "process": "fw_app"
+      },
+      {
+        "pid": 18670,
+        "runtime": 94,
+        "invoked": 211,
+        "usecs": 447,
+        "onesec": "0.00",
+        "process": "dme_proxy"
+      },
+      {
+        "pid": 18673,
+        "runtime": 1187,
+        "invoked": 2309,
+        "usecs": 514,
+        "onesec": "0.00",
+        "process": "platform"
+      },
+      {
+        "pid": 18733,
+        "runtime": 88,
+        "invoked": 172,
+        "usecs": 516,
+        "onesec": "0.00",
+        "process": "dme_bootup_proxy"
+      },
+      {
+        "pid": 18734,
+        "runtime": 922,
+        "invoked": 252,
+        "usecs": 3660,
+        "onesec": "0.00",
+        "process": "event_manager"
+      },
+      {
+        "pid": 18735,
+        "runtime": 127,
+        "invoked": 479,
+        "usecs": 267,
+        "onesec": "0.00",
+        "process": "mts_telemetry_mgr"
+      },
+      {
+        "pid": 18736,
+        "runtime": 1273,
+        "invoked": 387,
+        "usecs": 3289,
+        "onesec": "0.00",
+        "process": "policyelem"
+      },
+      {
+        "pid": 18791,
+        "runtime": 642,
+        "invoked": 1057,
+        "usecs": 607,
+        "onesec": "0.00",
+        "process": "syslogd"
+      },
+      {
+        "pid": 18803,
+        "runtime": 494,
+        "invoked": 1566,
+        "usecs": 316,
+        "onesec": "0.00",
+        "process": "vshd"
+      },
+      {
+        "pid": 18804,
+        "runtime": 561,
+        "invoked": 307,
+        "usecs": 1827,
+        "onesec": "0.00",
+        "process": "template_manager"
+      },
+      {
+        "pid": 18805,
+        "runtime": 274,
+        "invoked": 1318,
+        "usecs": 208,
+        "onesec": "0.00",
+        "process": "tamnw"
+      },
+      {
+        "pid": 18806,
+        "runtime": 87,
+        "invoked": 24,
+        "usecs": 3644,
+        "onesec": "0.00",
+        "process": "smm"
+      },
+      {
+        "pid": 18807,
+        "runtime": 139,
+        "invoked": 615,
+        "usecs": 227,
+        "onesec": "0.00",
+        "process": "psshelper"
+      },
+      {
+        "pid": 18808,
+        "runtime": 1364,
+        "invoked": 378,
+        "usecs": 3609,
+        "onesec": "0.00",
+        "process": "pixm_vl"
+      },
+      {
+        "pid": 18809,
+        "runtime": 628,
+        "invoked": 576,
+        "usecs": 1090,
+        "onesec": "0.00",
+        "process": "pixm_gl"
+      },
+      {
+        "pid": 18810,
+        "runtime": 755,
+        "invoked": 217,
+        "usecs": 3481,
+        "onesec": "0.00",
+        "process": "nginx"
+      },
+      {
+        "pid": 18811,
+        "runtime": 597,
+        "invoked": 134,
+        "usecs": 4461,
+        "onesec": "0.00",
+        "process": "mmode"
+      },
+      {
+        "pid": 18812,
+        "runtime": 79,
+        "invoked": 87,
+        "usecs": 911,
+        "onesec": "0.00",
+        "process": "lmgrd"
+      },
+      {
+        "pid": 18813,
+        "runtime": 417,
+        "invoked": 234,
+        "usecs": 1783,
+        "onesec": "0.00",
+        "process": "fs-daemon"
+      },
+      {
+        "pid": 18814,
+        "runtime": 475,
+        "invoked": 1433,
+        "usecs": 331,
+        "onesec": "0.00",
+        "process": "feature-mgr"
+      },
+      {
+        "pid": 18815,
+        "runtime": 161,
+        "invoked": 338,
+        "usecs": 477,
+        "onesec": "0.00",
+        "process": "confcheck"
+      },
+      {
+        "pid": 18816,
+        "runtime": 382,
+        "invoked": 379,
+        "usecs": 1010,
+        "onesec": "0.00",
+        "process": "capability"
+      },
+      {
+        "pid": 18817,
+        "runtime": 208,
+        "invoked": 291,
+        "usecs": 716,
+        "onesec": "0.00",
+        "process": "bloggerd"
+      },
+      {
+        "pid": 18818,
+        "runtime": 119,
+        "invoked": 512,
+        "usecs": 233,
+        "onesec": "0.00",
+        "process": "psshelper_gsvc"
+      },
+      {
+        "pid": 18838,
+        "runtime": 142,
+        "invoked": 1554,
+        "usecs": 91,
+        "onesec": "0.00",
+        "process": "tams_proc"
+      },
+      {
+        "pid": 18850,
+        "runtime": 21588,
+        "invoked": 2490,
+        "usecs": 8669,
+        "onesec": "0.00",
+        "process": "clis"
+      },
+      {
+        "pid": 18851,
+        "runtime": 580,
+        "invoked": 526,
+        "usecs": 1104,
+        "onesec": "0.00",
+        "process": "licmgr"
+      },
+      {
+        "pid": 18867,
+        "runtime": 49,
+        "invoked": 40,
+        "usecs": 1244,
+        "onesec": "0.00",
+        "process": "cisco"
+      },
+      {
+        "pid": 18911,
+        "runtime": 1031,
+        "invoked": 1101,
+        "usecs": 937,
+        "onesec": "0.00",
+        "process": "tamd_proc"
+      },
+      {
+        "pid": 18913,
+        "runtime": 118,
+        "invoked": 197,
+        "usecs": 600,
+        "onesec": "0.00",
+        "process": "xmlma"
+      },
+      {
+        "pid": 18914,
+        "runtime": 139,
+        "invoked": 225,
+        "usecs": 621,
+        "onesec": "0.00",
+        "process": "vmm"
+      },
+      {
+        "pid": 18915,
+        "runtime": 539,
+        "invoked": 439,
+        "usecs": 1229,
+        "onesec": "0.00",
+        "process": "vdc_mgr"
+      },
+      {
+        "pid": 18916,
+        "runtime": 107,
+        "invoked": 179,
+        "usecs": 601,
+        "onesec": "0.00",
+        "process": "usbhsd"
+      },
+      {
+        "pid": 18917,
+        "runtime": 390,
+        "invoked": 370,
+        "usecs": 1054,
+        "onesec": "0.00",
+        "process": "ttyd"
+      },
+      {
+        "pid": 18918,
+        "runtime": 3593,
+        "invoked": 1586,
+        "usecs": 2265,
+        "onesec": "0.00",
+        "process": "sysinfo"
+      },
+      {
+        "pid": 18919,
+        "runtime": 211,
+        "invoked": 151,
+        "usecs": 1402,
+        "onesec": "0.00",
+        "process": "snmpmib_proc"
+      },
+      {
+        "pid": 18920,
+        "runtime": 568,
+        "invoked": 171,
+        "usecs": 3326,
+        "onesec": "0.00",
+        "process": "sksd"
+      },
+      {
+        "pid": 18921,
+        "runtime": 145,
+        "invoked": 157,
+        "usecs": 924,
+        "onesec": "0.00",
+        "process": "scheduler"
+      },
+      {
+        "pid": 18922,
+        "runtime": 704,
+        "invoked": 578,
+        "usecs": 1218,
+        "onesec": "0.00",
+        "process": "res_mgr"
+      },
+      {
+        "pid": 18923,
+        "runtime": 72,
+        "invoked": 509,
+        "usecs": 142,
+        "onesec": "0.00",
+        "process": "plugin"
+      },
+      {
+        "pid": 18924,
+        "runtime": 148,
+        "invoked": 1019,
+        "usecs": 145,
+        "onesec": "0.00",
+        "process": "plog_sup"
+      },
+      {
+        "pid": 18925,
+        "runtime": 1324,
+        "invoked": 2819,
+        "usecs": 469,
+        "onesec": "0.00",
+        "process": "patch-installer"
+      },
+      {
+        "pid": 18926,
+        "runtime": 269,
+        "invoked": 282,
+        "usecs": 956,
+        "onesec": "0.00",
+        "process": "nxapi"
+      },
+      {
+        "pid": 18927,
+        "runtime": 144,
+        "invoked": 325,
+        "usecs": 445,
+        "onesec": "0.00",
+        "process": "mvsh"
+      },
+      {
+        "pid": 18928,
+        "runtime": 311,
+        "invoked": 86,
+        "usecs": 3619,
+        "onesec": "0.00",
+        "process": "mts_mgr"
+      },
+      {
+        "pid": 18929,
+        "runtime": 90,
+        "invoked": 63,
+        "usecs": 1443,
+        "onesec": "0.00",
+        "process": "mping_server"
+      },
+      {
+        "pid": 18930,
+        "runtime": 616,
+        "invoked": 845,
+        "usecs": 729,
+        "onesec": "0.00",
+        "process": "module"
+      },
+      {
+        "pid": 18931,
+        "runtime": 250,
+        "invoked": 146,
+        "usecs": 1717,
+        "onesec": "0.00",
+        "process": "kim"
+      },
+      {
+        "pid": 18932,
+        "runtime": 400,
+        "invoked": 395,
+        "usecs": 1013,
+        "onesec": "0.00",
+        "process": "kafka"
+      },
+      {
+        "pid": 18933,
+        "runtime": 343,
+        "invoked": 211,
+        "usecs": 1629,
+        "onesec": "0.00",
+        "process": "issu_helper"
+      },
+      {
+        "pid": 18934,
+        "runtime": 528,
+        "invoked": 229,
+        "usecs": 2307,
+        "onesec": "0.00",
+        "process": "evms"
+      },
+      {
+        "pid": 18936,
+        "runtime": 139,
+        "invoked": 145,
+        "usecs": 958,
+        "onesec": "0.00",
+        "process": "epld_upgrade_stdby"
+      },
+      {
+        "pid": 18940,
+        "runtime": 347,
+        "invoked": 309,
+        "usecs": 1123,
+        "onesec": "0.00",
+        "process": "diagclient"
+      },
+      {
+        "pid": 18941,
+        "runtime": 917,
+        "invoked": 943,
+        "usecs": 972,
+        "onesec": "0.00",
+        "process": "dhclient"
+      },
+      {
+        "pid": 18942,
+        "runtime": 411,
+        "invoked": 537,
+        "usecs": 765,
+        "onesec": "0.00",
+        "process": "crdcfg_server"
+      },
+      {
+        "pid": 18947,
+        "runtime": 107,
+        "invoked": 57,
+        "usecs": 1889,
+        "onesec": "0.00",
+        "process": "core-dmon"
+      },
+      {
+        "pid": 18948,
+        "runtime": 518,
+        "invoked": 398,
+        "usecs": 1303,
+        "onesec": "0.00",
+        "process": "clk_mgr"
+      },
+      {
+        "pid": 18949,
+        "runtime": 75,
+        "invoked": 160,
+        "usecs": 470,
+        "onesec": "0.00",
+        "process": "bios_daemon"
+      },
+      {
+        "pid": 18950,
+        "runtime": 485,
+        "invoked": 886,
+        "usecs": 547,
+        "onesec": "0.00",
+        "process": "ascii-cfg"
+      },
+      {
+        "pid": 18953,
+        "runtime": 1103,
+        "invoked": 1714,
+        "usecs": 643,
+        "onesec": "0.00",
+        "process": "securityd"
+      },
+      {
+        "pid": 18957,
+        "runtime": 607,
+        "invoked": 1012,
+        "usecs": 600,
+        "onesec": "0.00",
+        "process": "cert_enroll"
+      },
+      {
+        "pid": 18960,
+        "runtime": 590,
+        "invoked": 1157,
+        "usecs": 510,
+        "onesec": "0.00",
+        "process": "aaa"
+      },
+      {
+        "pid": 18994,
+        "runtime": 161,
+        "invoked": 232,
+        "usecs": 697,
+        "onesec": "0.00",
+        "process": "obfl"
+      },
+      {
+        "pid": 19019,
+        "runtime": 1099,
+        "invoked": 661,
+        "usecs": 1663,
+        "onesec": "0.00",
+        "process": "aclmgr"
+      },
+      {
+        "pid": 19037,
+        "runtime": 25,
+        "invoked": 346,
+        "usecs": 73,
+        "onesec": "0.00",
+        "process": "klogd"
+      },
+      {
+        "pid": 19092,
+        "runtime": 560,
+        "invoked": 300,
+        "usecs": 1867,
+        "onesec": "0.00",
+        "process": "l3vm"
+      },
+      {
+        "pid": 19093,
+        "runtime": 543,
+        "invoked": 213,
+        "usecs": 2552,
+        "onesec": "0.00",
+        "process": "urib"
+      },
+      {
+        "pid": 19112,
+        "runtime": 145,
+        "invoked": 664,
+        "usecs": 219,
+        "onesec": "0.00",
+        "process": "device_test"
+      },
+      {
+        "pid": 19113,
+        "runtime": 463,
+        "invoked": 502,
+        "usecs": 923,
+        "onesec": "0.00",
+        "process": "xbar"
+      },
+      {
+        "pid": 19154,
+        "runtime": 158,
+        "invoked": 354,
+        "usecs": 447,
+        "onesec": "0.00",
+        "process": "evmc"
+      },
+      {
+        "pid": 19187,
+        "runtime": 118,
+        "invoked": 39,
+        "usecs": 3047,
+        "onesec": "0.00",
+        "process": "ExceptionLog"
+      },
+      {
+        "pid": 19188,
+        "runtime": 426,
+        "invoked": 514,
+        "usecs": 829,
+        "onesec": "0.00",
+        "process": "bootvar"
+      },
+      {
+        "pid": 19190,
+        "runtime": 165,
+        "invoked": 211,
+        "usecs": 784,
+        "onesec": "0.00",
+        "process": "cardclient"
+      },
+      {
+        "pid": 19191,
+        "runtime": 779,
+        "invoked": 683,
+        "usecs": 1141,
+        "onesec": "0.00",
+        "process": "diagmgr"
+      },
+      {
+        "pid": 19193,
+        "runtime": 981,
+        "invoked": 637,
+        "usecs": 1540,
+        "onesec": "0.00",
+        "process": "ifmgr"
+      },
+      {
+        "pid": 19268,
+        "runtime": 118,
+        "invoked": 41,
+        "usecs": 2879,
+        "onesec": "0.00",
+        "process": "npacl"
+      },
+      {
+        "pid": 19279,
+        "runtime": 144,
+        "invoked": 183,
+        "usecs": 787,
+        "onesec": "0.00",
+        "process": "statsclient"
+      },
+      {
+        "pid": 19569,
+        "runtime": 289,
+        "invoked": 61,
+        "usecs": 4750,
+        "onesec": "0.00",
+        "process": "adjmgr"
+      },
+      {
+        "pid": 19576,
+        "runtime": 377,
+        "invoked": 132,
+        "usecs": 2860,
+        "onesec": "0.00",
+        "process": "u6rib"
+      },
+      {
+        "pid": 19634,
+        "runtime": 101,
+        "invoked": 893,
+        "usecs": 113,
+        "onesec": "0.00",
+        "process": "incrond"
+      },
+      {
+        "pid": 19860,
+        "runtime": 382,
+        "invoked": 92,
+        "usecs": 4154,
+        "onesec": "0.00",
+        "process": "arp"
+      },
+      {
+        "pid": 19861,
+        "runtime": 286,
+        "invoked": 86,
+        "usecs": 3326,
+        "onesec": "0.00",
+        "process": "icmpv6"
+      },
+      {
+        "pid": 19908,
+        "runtime": 188,
+        "invoked": 71,
+        "usecs": 2658,
+        "onesec": "0.00",
+        "process": "pktmgr"
+      },
+      {
+        "pid": 20051,
+        "runtime": 591,
+        "invoked": 110,
+        "usecs": 5378,
+        "onesec": "0.00",
+        "process": "netstack"
+      },
+      {
+        "pid": 20413,
+        "runtime": 678,
+        "invoked": 1310,
+        "usecs": 517,
+        "onesec": "0.00",
+        "process": "radius"
+      },
+      {
+        "pid": 20415,
+        "runtime": 908,
+        "invoked": 506,
+        "usecs": 1795,
+        "onesec": "0.00",
+        "process": "cdp"
+      },
+      {
+        "pid": 20417,
+        "runtime": 658,
+        "invoked": 566,
+        "usecs": 1162,
+        "onesec": "0.00",
+        "process": "cfs"
+      },
+      {
+        "pid": 20419,
+        "runtime": 85,
+        "invoked": 24,
+        "usecs": 3565,
+        "onesec": "0.00",
+        "process": "ip_dummy"
+      },
+      {
+        "pid": 20421,
+        "runtime": 80,
+        "invoked": 34,
+        "usecs": 2365,
+        "onesec": "0.00",
+        "process": "ipv6_dummy"
+      },
+      {
+        "pid": 20423,
+        "runtime": 558,
+        "invoked": 490,
+        "usecs": 1140,
+        "onesec": "0.00",
+        "process": "otm"
+      },
+      {
+        "pid": 20424,
+        "runtime": 1369,
+        "invoked": 1204,
+        "usecs": 1137,
+        "onesec": "0.00",
+        "process": "snmpd"
+      },
+      {
+        "pid": 20425,
+        "runtime": 83,
+        "invoked": 89,
+        "usecs": 936,
+        "onesec": "0.00",
+        "process": "tcpudp_dummy"
+      },
+      {
+        "pid": 20447,
+        "runtime": 76,
+        "invoked": 31,
+        "usecs": 2456,
+        "onesec": "0.00",
+        "process": "dcos-xinetd"
+      },
+      {
+        "pid": 20906,
+        "runtime": 374,
+        "invoked": 701,
+        "usecs": 534,
+        "onesec": "0.00",
+        "process": "callhome"
+      },
+      {
+        "pid": 23976,
+        "runtime": 51,
+        "invoked": 509,
+        "usecs": 101,
+        "onesec": "0.00",
+        "process": "nginx"
+      },
+      {
+        "pid": 23977,
+        "runtime": 1279,
+        "invoked": 1130,
+        "usecs": 1132,
+        "onesec": "0.00",
+        "process": "port-profile"
+      },
+      {
+        "pid": 23986,
+        "runtime": 325,
+        "invoked": 102,
+        "usecs": 3190,
+        "onesec": "0.00",
+        "process": "vman"
+      },
+      {
+        "pid": 23988,
+        "runtime": 347,
+        "invoked": 433,
+        "usecs": 801,
+        "onesec": "0.00",
+        "process": "spm"
+      },
+      {
+        "pid": 23989,
+        "runtime": 642,
+        "invoked": 116,
+        "usecs": 5542,
+        "onesec": "0.00",
+        "process": "rpm"
+      },
+      {
+        "pid": 23990,
+        "runtime": 798,
+        "invoked": 374,
+        "usecs": 2135,
+        "onesec": "0.00",
+        "process": "pltfm_config"
+      },
+      {
+        "pid": 23991,
+        "runtime": 362,
+        "invoked": 532,
+        "usecs": 681,
+        "onesec": "0.00",
+        "process": "plcmgr"
+      },
+      {
+        "pid": 23992,
+        "runtime": 608,
+        "invoked": 280,
+        "usecs": 2174,
+        "onesec": "0.00",
+        "process": "pfstat"
+      },
+      {
+        "pid": 24007,
+        "runtime": 475,
+        "invoked": 390,
+        "usecs": 1218,
+        "onesec": "0.00",
+        "process": "ntp"
+      },
+      {
+        "pid": 24008,
+        "runtime": 1239,
+        "invoked": 1131,
+        "usecs": 1095,
+        "onesec": "0.00",
+        "process": "nia-mgr"
+      },
+      {
+        "pid": 24009,
+        "runtime": 94,
+        "invoked": 49,
+        "usecs": 1929,
+        "onesec": "0.00",
+        "process": "nbproxy"
+      },
+      {
+        "pid": 24010,
+        "runtime": 761,
+        "invoked": 671,
+        "usecs": 1134,
+        "onesec": "0.00",
+        "process": "monitor"
+      },
+      {
+        "pid": 24011,
+        "runtime": 627,
+        "invoked": 173,
+        "usecs": 3628,
+        "onesec": "0.00",
+        "process": "mld"
+      },
+      {
+        "pid": 24016,
+        "runtime": 901,
+        "invoked": 396,
+        "usecs": 2277,
+        "onesec": "0.00",
+        "process": "lldp"
+      },
+      {
+        "pid": 24017,
+        "runtime": 587,
+        "invoked": 580,
+        "usecs": 1012,
+        "onesec": "0.00",
+        "process": "lim"
+      },
+      {
+        "pid": 24018,
+        "runtime": 494,
+        "invoked": 812,
+        "usecs": 608,
+        "onesec": "0.00",
+        "process": "l2rib"
+      },
+      {
+        "pid": 24019,
+        "runtime": 1233,
+        "invoked": 623,
+        "usecs": 1980,
+        "onesec": "0.00",
+        "process": "ipfib"
+      },
+      {
+        "pid": 24020,
+        "runtime": 642,
+        "invoked": 104,
+        "usecs": 6175,
+        "onesec": "0.00",
+        "process": "igmp"
+      },
+      {
+        "pid": 24021,
+        "runtime": 1041,
+        "invoked": 1298,
+        "usecs": 802,
+        "onesec": "0.00",
+        "process": "icam"
+      },
+      {
+        "pid": 24023,
+        "runtime": 894,
+        "invoked": 1991,
+        "usecs": 449,
+        "onesec": "0.00",
+        "process": "eth_port_channel"
+      },
+      {
+        "pid": 24024,
+        "runtime": 133,
+        "invoked": 34,
+        "usecs": 3932,
+        "onesec": "0.00",
+        "process": "ecp"
+      },
+      {
+        "pid": 24025,
+        "runtime": 153,
+        "invoked": 53,
+        "usecs": 2896,
+        "onesec": "0.00",
+        "process": "adbm"
+      },
+      {
+        "pid": 24026,
+        "runtime": 399,
+        "invoked": 171,
+        "usecs": 2333,
+        "onesec": "0.00",
+        "process": "acllog"
+      },
+      {
+        "pid": 24027,
+        "runtime": 28,
+        "invoked": 703,
+        "usecs": 41,
+        "onesec": "0.00",
+        "process": "nginx"
+      },
+      {
+        "pid": 24030,
+        "runtime": 713,
+        "invoked": 2148,
+        "usecs": 332,
+        "onesec": "0.00",
+        "process": "tacacs"
+      },
+      {
+        "pid": 24031,
+        "runtime": 791,
+        "invoked": 452,
+        "usecs": 1750,
+        "onesec": "0.00",
+        "process": "eltm"
+      },
+      {
+        "pid": 24040,
+        "runtime": 134,
+        "invoked": 783,
+        "usecs": 171,
+        "onesec": "0.00",
+        "process": "ntpd"
+      },
+      {
+        "pid": 24063,
+        "runtime": 34,
+        "invoked": 768,
+        "usecs": 45,
+        "onesec": "0.00",
+        "process": "nginx"
+      },
+      {
+        "pid": 24073,
+        "runtime": 222,
+        "invoked": 4228,
+        "usecs": 52,
+        "onesec": "0.00",
+        "process": "eth_dstats"
+      },
+      {
+        "pid": 24076,
+        "runtime": 1622,
+        "invoked": 1656,
+        "usecs": 979,
+        "onesec": "0.00",
+        "process": "ipqosmgr"
+      },
+      {
+        "pid": 24077,
+        "runtime": 415,
+        "invoked": 216,
+        "usecs": 1923,
+        "onesec": "0.00",
+        "process": "lacp"
+      },
+      {
+        "pid": 24084,
+        "runtime": 811,
+        "invoked": 649,
+        "usecs": 1250,
+        "onesec": "0.00",
+        "process": "vlan_mgr"
+      },
+      {
+        "pid": 24091,
+        "runtime": 20,
+        "invoked": 839,
+        "usecs": 24,
+        "onesec": "0.00",
+        "process": "nginx"
+      },
+      {
+        "pid": 24092,
+        "runtime": 523,
+        "invoked": 422,
+        "usecs": 1239,
+        "onesec": "0.00",
+        "process": "aclqos"
+      },
+      {
+        "pid": 24095,
+        "runtime": 438,
+        "invoked": 2492,
+        "usecs": 176,
+        "onesec": "0.00",
+        "process": "diag_port_lb"
+      },
+      {
+        "pid": 24097,
+        "runtime": 1826,
+        "invoked": 1374,
+        "usecs": 1329,
+        "onesec": "0.00",
+        "process": "ethpm"
+      },
+      {
+        "pid": 24100,
+        "runtime": 794,
+        "invoked": 499,
+        "usecs": 1591,
+        "onesec": "0.00",
+        "process": "l2fm"
+      },
+      {
+        "pid": 24131,
+        "runtime": 475,
+        "invoked": 2087,
+        "usecs": 228,
+        "onesec": "0.00",
+        "process": "stp"
+      },
+      {
+        "pid": 24132,
+        "runtime": 268,
+        "invoked": 130,
+        "usecs": 2068,
+        "onesec": "0.00",
+        "process": "stripcl"
+      },
+      {
+        "pid": 24195,
+        "runtime": 712,
+        "invoked": 588,
+        "usecs": 1212,
+        "onesec": "0.00",
+        "process": "copp"
+      },
+      {
+        "pid": 24200,
+        "runtime": 460,
+        "invoked": 540,
+        "usecs": 852,
+        "onesec": "0.00",
+        "process": "vtp"
+      },
+      {
+        "pid": 24201,
+        "runtime": 98,
+        "invoked": 133,
+        "usecs": 743,
+        "onesec": "0.00",
+        "process": "vrrp-cfg"
+      },
+      {
+        "pid": 24202,
+        "runtime": 688,
+        "invoked": 283,
+        "usecs": 2431,
+        "onesec": "0.00",
+        "process": "ufdm"
+      },
+      {
+        "pid": 24203,
+        "runtime": 78,
+        "invoked": 61,
+        "usecs": 1293,
+        "onesec": "0.00",
+        "process": "u2"
+      },
+      {
+        "pid": 24205,
+        "runtime": 149,
+        "invoked": 137,
+        "usecs": 1087,
+        "onesec": "0.00",
+        "process": "sal"
+      },
+      {
+        "pid": 24206,
+        "runtime": 541,
+        "invoked": 154,
+        "usecs": 3516,
+        "onesec": "0.00",
+        "process": "mrib"
+      },
+      {
+        "pid": 24207,
+        "runtime": 10035,
+        "invoked": 718829,
+        "usecs": 13,
+        "onesec": "0.77",
+        "process": "mfdm"
+      },
+      {
+        "pid": 24208,
+        "runtime": 185,
+        "invoked": 171,
+        "usecs": 1083,
+        "onesec": "0.00",
+        "process": "mcm"
+      },
+      {
+        "pid": 24209,
+        "runtime": 550,
+        "invoked": 150,
+        "usecs": 3672,
+        "onesec": "0.00",
+        "process": "m6rib"
+      },
+      {
+        "pid": 24210,
+        "runtime": 550,
+        "invoked": 800,
+        "usecs": 687,
+        "onesec": "0.00",
+        "process": "l2pt"
+      },
+      {
+        "pid": 24212,
+        "runtime": 435,
+        "invoked": 662,
+        "usecs": 657,
+        "onesec": "0.00",
+        "process": "interface-vlan"
+      },
+      {
+        "pid": 24213,
+        "runtime": 418,
+        "invoked": 191,
+        "usecs": 2190,
+        "onesec": "0.00",
+        "process": "vrrp-eng"
+      },
+      {
+        "pid": 24245,
+        "runtime": 157,
+        "invoked": 104,
+        "usecs": 1516,
+        "onesec": "0.00",
+        "process": "m2rib"
+      },
+      {
+        "pid": 24728,
+        "runtime": 1,
+        "invoked": 6,
+        "usecs": 263,
+        "onesec": "0.00",
+        "process": "nginx_1_fe"
+      },
+      {
+        "pid": 24780,
+        "runtime": 385,
+        "invoked": 1172,
+        "usecs": 328,
+        "onesec": "0.00",
+        "process": "nginx_1_fe"
+      },
+      {
+        "pid": 24834,
+        "runtime": 96,
+        "invoked": 191,
+        "usecs": 507,
+        "onesec": "0.00",
+        "process": "getty"
+      },
+      {
+        "pid": 25064,
+        "runtime": 642,
+        "invoked": 504,
+        "usecs": 1274,
+        "onesec": "0.00",
+        "process": "uwsgi"
+      },
+      {
+        "pid": 25079,
+        "runtime": 183,
+        "invoked": 205,
+        "usecs": 892,
+        "onesec": "0.00",
+        "process": "bloggerd"
+      },
+      {
+        "pid": 25092,
+        "runtime": 1706,
+        "invoked": 150,
+        "usecs": 11374,
+        "onesec": "0.00",
+        "process": "nxpython"
+      },
+      {
+        "pid": 25109,
+        "runtime": 0,
+        "invoked": 2,
+        "usecs": 414,
+        "onesec": "0.00",
+        "process": "uwsgi"
+      },
+      {
+        "pid": 25111,
+        "runtime": 68,
+        "invoked": 516,
+        "usecs": 132,
+        "onesec": "0.00",
+        "process": "psshelper"
+      },
+      {
+        "pid": 25112,
+        "runtime": 62,
+        "invoked": 494,
+        "usecs": 126,
+        "onesec": "0.00",
+        "process": "psshelper"
+      },
+      {
+        "pid": 25113,
+        "runtime": 593,
+        "invoked": 1885,
+        "usecs": 314,
+        "onesec": "0.00",
+        "process": "plog_lc"
+      },
+      {
+        "pid": 25114,
+        "runtime": 25,
+        "invoked": 455,
+        "usecs": 56,
+        "onesec": "0.00",
+        "process": "patch_installer"
+      },
+      {
+        "pid": 25115,
+        "runtime": 23,
+        "invoked": 94,
+        "usecs": 246,
+        "onesec": "0.00",
+        "process": "obfl_lc"
+      },
+      {
+        "pid": 25116,
+        "runtime": 38,
+        "invoked": 143,
+        "usecs": 267,
+        "onesec": "0.00",
+        "process": "mvsh"
+      },
+      {
+        "pid": 25117,
+        "runtime": 61,
+        "invoked": 167,
+        "usecs": 368,
+        "onesec": "0.00",
+        "process": "evmc"
+      },
+      {
+        "pid": 25118,
+        "runtime": 549,
+        "invoked": 967,
+        "usecs": 568,
+        "onesec": "0.00",
+        "process": "dt_helper"
+      },
+      {
+        "pid": 25119,
+        "runtime": 110,
+        "invoked": 121,
+        "usecs": 914,
+        "onesec": "0.00",
+        "process": "diagclient"
+      },
+      {
+        "pid": 25120,
+        "runtime": 734,
+        "invoked": 11230,
+        "usecs": 65,
+        "onesec": "0.00",
+        "process": "crdcfg_server"
+      },
+      {
+        "pid": 25121,
+        "runtime": 29,
+        "invoked": 82,
+        "usecs": 359,
+        "onesec": "0.00",
+        "process": "capability"
+      },
+      {
+        "pid": 25124,
+        "runtime": 422,
+        "invoked": 983,
+        "usecs": 429,
+        "onesec": "0.00",
+        "process": "device_test"
+      },
+      {
+        "pid": 25126,
+        "runtime": 3738,
+        "invoked": 1330,
+        "usecs": 2810,
+        "onesec": "0.00",
+        "process": "crdclient"
+      },
+      {
+        "pid": 25135,
+        "runtime": 595,
+        "invoked": 670,
+        "usecs": 888,
+        "onesec": "0.00",
+        "process": "dc3_sensor"
+      },
+      {
+        "pid": 25136,
+        "runtime": 39291,
+        "invoked": 44454,
+        "usecs": 883,
+        "onesec": "0.77",
+        "process": "tahusd"
+      },
+      {
+        "pid": 25228,
+        "runtime": 55,
+        "invoked": 411,
+        "usecs": 134,
+        "onesec": "0.00",
+        "process": "nxpython"
+      },
+      {
+        "pid": 25229,
+        "runtime": 50,
+        "invoked": 476,
+        "usecs": 106,
+        "onesec": "0.00",
+        "process": "nxpython"
+      },
+      {
+        "pid": 25916,
+        "runtime": 197,
+        "invoked": 463,
+        "usecs": 427,
+        "onesec": "0.00",
+        "process": "bfdc"
+      },
+      {
+        "pid": 25917,
+        "runtime": 602,
+        "invoked": 506,
+        "usecs": 1190,
+        "onesec": "0.00",
+        "process": "iftmc"
+      },
+      {
+        "pid": 25919,
+        "runtime": 260,
+        "invoked": 228,
+        "usecs": 1140,
+        "onesec": "0.00",
+        "process": "pixc"
+      },
+      {
+        "pid": 25920,
+        "runtime": 1035,
+        "invoked": 5116,
+        "usecs": 202,
+        "onesec": "0.00",
+        "process": "port_client"
+      },
+      {
+        "pid": 25921,
+        "runtime": 15158,
+        "invoked": 24541,
+        "usecs": 617,
+        "onesec": "0.00",
+        "process": "stats_client"
+      },
+      {
+        "pid": 25922,
+        "runtime": 256,
+        "invoked": 301,
+        "usecs": 851,
+        "onesec": "0.00",
+        "process": "vntagc"
+      },
+      {
+        "pid": 25924,
+        "runtime": 378,
+        "invoked": 95,
+        "usecs": 3983,
+        "onesec": "0.00",
+        "process": "mtm"
+      },
+      {
+        "pid": 25927,
+        "runtime": 1023,
+        "invoked": 633,
+        "usecs": 1617,
+        "onesec": "0.00",
+        "process": "ipfib"
+      },
+      {
+        "pid": 25928,
+        "runtime": 3827,
+        "invoked": 19423,
+        "usecs": 197,
+        "onesec": "0.00",
+        "process": "aclqos"
+      },
+      {
+        "pid": 25929,
+        "runtime": 181,
+        "invoked": 82,
+        "usecs": 2210,
+        "onesec": "0.00",
+        "process": "ptplc"
+      },
+      {
+        "pid": 25930,
+        "runtime": 3265,
+        "invoked": 508,
+        "usecs": 6428,
+        "onesec": "0.00",
+        "process": "tun_enc_lc"
+      },
+      {
+        "pid": 25944,
+        "runtime": 250,
+        "invoked": 49,
+        "usecs": 5103,
+        "onesec": "0.00",
+        "process": "monc"
+      },
+      {
+        "pid": 25945,
+        "runtime": 336,
+        "invoked": 1606,
+        "usecs": 209,
+        "onesec": "0.00",
+        "process": "nf"
+      },
+      {
+        "pid": 25946,
+        "runtime": 159,
+        "invoked": 55,
+        "usecs": 2896,
+        "onesec": "0.00",
+        "process": "xbar_client"
+      },
+      {
+        "pid": 27516,
+        "runtime": 0,
+        "invoked": 1,
+        "usecs": 537,
+        "onesec": "0.00",
+        "process": "sshd"
+      },
+      {
+        "pid": 30031,
+        "runtime": 86,
+        "invoked": 26,
+        "usecs": 3322,
+        "onesec": "0.00",
+        "process": "swtele"
+      },
+      {
+        "pid": 30739,
+        "runtime": 174,
+        "invoked": 129,
+        "usecs": 1350,
+        "onesec": "0.00",
+        "process": "dcos_sshd"
+      },
+      {
+        "pid": 30758,
+        "runtime": 3,
+        "invoked": 33,
+        "usecs": 112,
+        "onesec": "0.00",
+        "process": "dcos_sshd"
+      },
+      {
+        "pid": 30759,
+        "runtime": 225,
+        "invoked": 501,
+        "usecs": 449,
+        "onesec": "0.00",
+        "process": "vsh.bin"
+      },
+      {
+        "pid": 30866,
+        "runtime": 243,
+        "invoked": 398,
+        "usecs": 611,
+        "onesec": "0.00",
+        "process": "vsh.bin"
+      },
+      {
+        "pid": 30943,
+        "runtime": 254,
+        "invoked": 465,
+        "usecs": 546,
+        "onesec": "0.00",
+        "process": "vsh.bin"
+      },
+      {
+        "pid": 31069,
+        "runtime": 244,
+        "invoked": 421,
+        "usecs": 581,
+        "onesec": "0.00",
+        "process": "vsh.bin\n"
+      },
+      {
+        "pid": 32029,
+        "runtime": 0,
+        "invoked": 2,
+        "usecs": 313,
+        "onesec": "0.00",
+        "process": "sleep"
+      }
+    ]
+  }
+}
diff --git a/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_memory_shared.json b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_memory_shared.json
new file mode 100644
index 00000000..8ab282dc
--- /dev/null
+++ b/test/nxos/mocked_data/test_get_environment/psu_issues_1371_1372/show_processes_memory_shared.json
@@ -0,0 +1,393 @@
+{
+  "TABLE_process_tag": {
+    "ROW_process_tag": {
+      "process-memory-share-total-shm-size": 627,
+      "process-memory-share-total-shm-used": 52,
+      "process-memory-share-total-shm-avail": 575,
+      "TABLE_SHOWPROC": {
+        "ROW_SHOWPROC": [
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/smm",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "smm",
+                "process-memory-share-smr-addr": "50000000",
+                "process-memory-share-smr-size": 1028,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 3,
+                "process-memory-share-smr-avail": 1025,
+                "process-memory-share-smr-ref-count": 41,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/cli",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "cli",
+                "process-memory-share-smr-addr": "50101000",
+                "process-memory-share-smr-size": 112644,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 47388,
+                "process-memory-share-smr-avail": 65256,
+                "process-memory-share-smr-ref-count": 9
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/npacl",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "npacl",
+                "process-memory-share-smr-addr": "56F02000",
+                "process-memory-share-smr-size": 4100,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 2,
+                "process-memory-share-smr-avail": 4098,
+                "process-memory-share-smr-ref-count": 2
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/urib",
+            "TABLE_ONEITEMDYNAMIC": {
+              "ROW_ONEITEMDYNAMIC": {
+                "process-memory-share-dynamic-smr-addr": "57303000",
+                "process-memory-share-dynamic-smr-size": 1024,
+                "process-memory-share-dynamic-plus-char": "+",
+                "process-memory-share-max-mem-size-str": "(253956)",
+                "process-memory-share-dynamic-smr-used": 892,
+                "process-memory-share-dynamic-smr-avail": 132,
+                "process-memory-share-dynamic-smr-ref-count": "25"
+              }
+            },
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-dynamic-smr-name": "urib"
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/urib-pib",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "urib-pib",
+                "process-memory-share-smr-addr": "66B04000",
+                "process-memory-share-smr-size": 1028,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 301,
+                "process-memory-share-smr-avail": 727,
+                "process-memory-share-smr-ref-count": 25
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/urib-redist",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "urib-redist",
+                "process-memory-share-smr-addr": "66C05000",
+                "process-memory-share-smr-size": 5124,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 866,
+                "process-memory-share-smr-avail": 4258,
+                "process-memory-share-smr-ref-count": 25
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/urib-ufdm",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "urib-ufdm",
+                "process-memory-share-smr-addr": "67106000",
+                "process-memory-share-smr-size": 8196,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 832,
+                "process-memory-share-smr-avail": 7364,
+                "process-memory-share-smr-ref-count": 1
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/am",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "am",
+                "process-memory-share-smr-addr": "67907000",
+                "process-memory-share-smr-size": 1028,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 201,
+                "process-memory-share-smr-avail": 827,
+                "process-memory-share-smr-ref-count": 10
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/am_lim",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "am_lim",
+                "process-memory-share-smr-addr": "67A08000",
+                "process-memory-share-smr-size": 68,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 1,
+                "process-memory-share-smr-avail": 67,
+                "process-memory-share-smr-ref-count": 10
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/u6rib",
+            "TABLE_ONEITEMDYNAMIC": {
+              "ROW_ONEITEMDYNAMIC": {
+                "process-memory-share-dynamic-smr-addr": "67A19000",
+                "process-memory-share-dynamic-smr-size": 1024,
+                "process-memory-share-dynamic-plus-char": "+",
+                "process-memory-share-max-mem-size-str": "(98308)",
+                "process-memory-share-dynamic-smr-used": 375,
+                "process-memory-share-dynamic-smr-avail": 649,
+                "process-memory-share-dynamic-smr-ref-count": "13"
+              }
+            },
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-dynamic-smr-name": "u6rib"
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/u6rib-pib",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "u6rib-pib",
+                "process-memory-share-smr-addr": "6DA1A000",
+                "process-memory-share-smr-size": 1028,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 312,
+                "process-memory-share-smr-avail": 716,
+                "process-memory-share-smr-ref-count": 13
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/u6rib-notify",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "u6rib-notify",
+                "process-memory-share-smr-addr": "6DB1B000",
+                "process-memory-share-smr-size": 4100,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 908,
+                "process-memory-share-smr-avail": 3192,
+                "process-memory-share-smr-ref-count": 13
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/icmpv6",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "icmpv6",
+                "process-memory-share-smr-addr": "6DF1C000",
+                "process-memory-share-smr-size": 6148,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 0,
+                "process-memory-share-smr-avail": 6148,
+                "process-memory-share-smr-ref-count": 11,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/arp",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "arp",
+                "process-memory-share-smr-addr": "6E51D000",
+                "process-memory-share-smr-size": 4100,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 45,
+                "process-memory-share-smr-avail": 4055,
+                "process-memory-share-smr-ref-count": 8
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/arplib",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "arplib",
+                "process-memory-share-smr-addr": "6E91E000",
+                "process-memory-share-smr-size": 24580,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 128,
+                "process-memory-share-smr-avail": 24452,
+                "process-memory-share-smr-ref-count": 1
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/ip",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "ip",
+                "process-memory-share-smr-addr": "7011F000",
+                "process-memory-share-smr-size": 10244,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 219,
+                "process-memory-share-smr-avail": 10025,
+                "process-memory-share-smr-ref-count": 26,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/ipv6",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "ipv6",
+                "process-memory-share-smr-addr": "70B20000",
+                "process-memory-share-smr-size": 12292,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 26,
+                "process-memory-share-smr-avail": 12266,
+                "process-memory-share-smr-ref-count": 13,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/rpm",
+            "TABLE_ONEITEMDYNAMIC": {
+              "ROW_ONEITEMDYNAMIC": {
+                "process-memory-share-dynamic-smr-addr": "71721000",
+                "process-memory-share-dynamic-smr-size": 2048,
+                "process-memory-share-dynamic-plus-char": "+",
+                "process-memory-share-max-mem-size-str": "(10244)",
+                "process-memory-share-dynamic-smr-used": 1,
+                "process-memory-share-dynamic-smr-avail": 2047,
+                "process-memory-share-dynamic-smr-ref-count": "8"
+              }
+            },
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-dynamic-smr-name": "rpm"
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/igmp",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "igmp",
+                "process-memory-share-smr-addr": "72122000",
+                "process-memory-share-smr-size": 3076,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 0,
+                "process-memory-share-smr-avail": 3076,
+                "process-memory-share-smr-ref-count": 2,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/mld",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "mld",
+                "process-memory-share-smr-addr": "72423000",
+                "process-memory-share-smr-size": 68,
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 0,
+                "process-memory-share-smr-avail": 68,
+                "process-memory-share-smr-ref-count": 2,
+                "process-memory-share-smr-star-char": {}
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/mrib",
+            "TABLE_ONEITEMDYNAMIC": {
+              "ROW_ONEITEMDYNAMIC": {
+                "process-memory-share-dynamic-smr-addr": "72434000",
+                "process-memory-share-dynamic-smr-size": 3072,
+                "process-memory-share-dynamic-plus-char": "+",
+                "process-memory-share-max-mem-size-str": "(59396)",
+                "process-memory-share-dynamic-smr-used": 3,
+                "process-memory-share-dynamic-smr-avail": 3069,
+                "process-memory-share-dynamic-smr-ref-count": "2"
+              }
+            },
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-dynamic-smr-name": "mrib"
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/mrib-mfdm",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "mrib-mfdm",
+                "process-memory-share-smr-addr": "75E35000",
+                "process-memory-share-smr-size": 6148,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 0,
+                "process-memory-share-smr-avail": 6148,
+                "process-memory-share-smr-ref-count": 1
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/m6rib",
+            "TABLE_ONEITEMDYNAMIC": {
+              "ROW_ONEITEMDYNAMIC": {
+                "process-memory-share-dynamic-smr-addr": "76436000",
+                "process-memory-share-dynamic-smr-size": 3072,
+                "process-memory-share-dynamic-plus-char": "+",
+                "process-memory-share-max-mem-size-str": "(8196)",
+                "process-memory-share-dynamic-smr-used": 3,
+                "process-memory-share-dynamic-smr-avail": 3069,
+                "process-memory-share-dynamic-smr-ref-count": "2"
+              }
+            },
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-dynamic-smr-name": "m6rib"
+              }
+            }
+          },
+          {
+            "process-memory-share-table-showproc-key": "/rsw/shm/m6rib-mfdm",
+            "TABLE_ONEITEM": {
+              "ROW_ONEITEM": {
+                "process-memory-share-proc-smr-name": "m6rib-mfdm",
+                "process-memory-share-smr-addr": "76C37000",
+                "process-memory-share-smr-size": 6148,
+                "process-memory-share-smr-star-char": "*",
+                "process-memory-share-smr-empty-char": "",
+                "process-memory-share-smr-used": 0,
+                "process-memory-share-smr-avail": 6148,
+                "process-memory-share-smr-ref-count": 1
+              }
+            }
+          }
+        ]
+      }
+    }
+  }
+}