{
  "name": "OemSwitchAll",
  "rules": [
    {
      "name": "OemSwitch_Base",
      "rules": [
        "show version",
        "show clock",
        "show run",
        "show cpu",
        "@sleep 1000",
        "show cpu",
        "show memory",
        "show logging",
        "show interfaces counters summary",
        "show interfaces counters errors",
        "show interfaces counters rate",
        "show debugging",
        "show users"
      ]
    },
    {
      "name": "OemSwitch_Model55",
      "rules": [
        "@include OemSwitch_Base",
        "more config.text",
        "show environment temperature",
        "show interfaces status",
        "show mac-address-table",
        "show ip ssh",
        "show ssh",
        "show interface transceiver",
        "show interface transceiver diagnosis",
        "show tech support"
      ]
    },
    {
      "name": "OemSwitch_Model20",
      "rules": [
        "@include OemSwitch_Base",
        "show mac-address count",
        "show tech-support"
      ]
    },
    {
      "name": "OemSwitch_Model20Poe",
      "rules": [
        "@include OemSwitch_Base",
        "show mac-address count",
        "show tech-support"
      ]
    },
    {
      "name": "OemSwitchL2_Base",
      "rules": [
        "@include OemSwitch_Base",
        "show interface #swport1"
      ]
    },
    {
      "name": "OemSwitchL2_Model55",
      "rules": [
        "@include OemSwitchL2_Base",
        "show interface #swport1 counters",
        "show interface #swport1 counters error",
        "@show interface #swport1 transceiver",
        "@show interface #swport1 transceiver dia",
        "show arp | include #swport1",
        "show mac-address-table | include  #swport1",
        "@show aggregatePort summary",
        "@show aggregatePort load-balance"
      ]
    },
    {
      "name": "OemSwitchL2_Model20",
      "rules": [
        "@include OemSwitchL2_Base"
      ]
    },
    {
      "name": "OemSwitchL2_Model20Poe",
      "rules": [
        "@include OemSwitchL2_Base",
        "show interface #swport1 statistics"
      ]
    }
  ],
  "checkItems": [
    {
      "collectType": "网管与监控",
      "subTypes": [
        {
          "typeName": "端口镜像SPAN无法镜像到报文",
          "cmds": [
            "@include OemSwitch_Base"
          ]
        }
      ]
    },
    {
      "collectType": "系统相关",
      "subTypes": [
        {
          "typeName": "电源告警或异常_Model55",
          "cmds": [
            "@include OemSwitch_Model55",
            "show environment power"
          ]
        },
        {
          "typeName": "电源告警或异常_Model20",
          "cmds": [
            "@include OemSwitch_Model20"
          ]
        },
        {
          "typeName": "电源告警或异常_Model20Poe",
          "cmds": [
            "@include OemSwitch_Model20Poe"
          ]
        },
        {
          "typeName": "风扇告警或异常_Model55",
          "cmds": [
            "@include OemSwitch_Model55",
            "show environment fan"
          ]
        },
        {
          "typeName": "风扇告警或异常_Model20",
          "cmds": [
            "@include OemSwitch_Model20"
          ]
        },
        {
          "typeName": "风扇告警或异常_Model20Poe",
          "cmds": [
            "@include OemSwitch_Model20Poe"
          ]
        },
        {
          "typeName": "cpu异常冒高_Model55",
          "cmds": [
            "@include OemSwitch_Model55",
            "show cpu",
            "@sleep 1000",
            "show cpu",
            "show arp"
          ]
        },
        {
          "typeName": "cpu异常冒高_Model20",
          "cmds": [
            "@include OemSwitch_Model20",
            "show cpu",
            "@sleep 1000",
            "show cpu",
            "show arp-table"
          ]
        },
        {
          "typeName": "cpu异常冒高_Model20Poe",
          "cmds": [
            "@include OemSwitch_Model20Poe",
            "show cpu",
            "@sleep 1000",
            "show cpu",
            "show arp-table"
          ]
        },
        {
          "typeName": "内存异常冒高_Model55",
          "cmds": [
            "@include OemSwitch_Model55",
            "show memory"
          ]
        },
        {
          "typeName": "内存异常冒高_Model20",
          "cmds": [
            "@include OemSwitch_Model20",
            "show memory"
          ]
        },
        {
          "typeName": "内存异常冒高_Model20Poe",
          "cmds": [
            "@include OemSwitch_Model20Poe",
            "show memory"
          ]
        }
      ]
    },
    {
      "collectType": "二层业务",
      "subTypes": [
        {
          "typeName": "端口不能UP_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55"
          ]
        },
        {
          "typeName": "端口不能UP_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "端口不能UP_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe"
          ]
        },
        {
          "typeName": "端口丢包_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55"
          ]
        },
        {
          "typeName": "端口丢包_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "端口丢包_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe"
          ]
        },
        {
          "typeName": "端口聚合后链路不通_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55"
          ]
        },
        {
          "typeName": "端口聚合后链路不通_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "端口聚合后链路不通_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe"
          ]
        },
        {
          "typeName": "LACP协商失败_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55"
          ]
        },
        {
          "typeName": "LACP协商失败_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "LACP协商失败_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe"
          ]
        },
        {
          "typeName": "生成树端口状态异常_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55",
            "show spanning-tree",
            "show spanning-tree summary",
            "show spanning-tree interface #swport1",
            "show spanning-tree mst configuration"
          ]
        },
        {
          "typeName": "生成树端口状态异常_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "生成树端口状态异常_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe"
          ]
        },
        {
          "typeName": "POE端口无法供电_Model55",
          "cmds": [
            "@include OemSwitchL2_Model55"
          ]
        },
        {
          "typeName": "POE端口无法供电_Model20",
          "cmds": [
            "@include OemSwitchL2_Model20"
          ]
        },
        {
          "typeName": "POE端口无法供电_Model20Poe",
          "cmds": [
            "@include OemSwitchL2_Model20Poe",
            "show poe powersupply",
            "show poe interface #swport1",
            "show poe interfaces configuration",
            "show poe interfaces status"
          ]
        }
      ]
    },
    {
      "collectType": "未知故障",
      "subTypes": [
        {
          "typeName": "未知故障_Model55",
          "cmds": [
            "@include OemSwitch_Model55"
          ]
        },
        {
          "typeName": "未知故障_Model20",
          "cmds": [
            "@include OemSwitch_Model20"
          ]
        },
        {
          "typeName": "未知故障_Model20Poe",
          "cmds": [
            "@include OemSwitch_Model20Poe"
          ]
        }
      ]
    }
  ]
}