{
  "name": "10xSwitchAll",
  "rules": [
    {
      "name": "10X交换机基本信息",
      "rules": [
        "show debugging",
        "undebug all",
        "show version",
        "show version slots",
        "dir",
        "show interfaces counters summary",
        "show interfaces counters errors",
        "show interfaces counters rate",
        "show clock",
        "show run",
        "more config.text",
        "show cpu",
        "@sleep 1000",
        "show cpu",
        "@show version slots",
        "@show cpu-protect slot #X",
        "@show version slots",
        "@show resource owner all slot #X",
        "show memory",
        "show memory protocols",
        "show manuinfo",
        "show log",
        "show temperature",
        "show redundancy states",
        "show nfpp arp-guard summary",
        "show nfpp arp-guard hosts",
        "show nfpp arp-guard scan",
        "show nfpp ip-guard summary",
        "show nfpp ip-guard hosts",
        "show nfpp dhcp-guard summary",
        "show nfpp dhcp-guard hosts",
        "show nfpp log buffer",
        "show interfaces status",
        "show interfaces counters summary",
        "show interfaces counters errors",
        "show interfaces counters rate",
        "show ip route count",
        "show arp count",
        "show mac-address-table count",
        "show ipv6 neighbors statistics",
        "show user",
        "show tcp con",
        "show ip ssh",
        "show service",
        "show ssh",
        "show interface attribute all",
        "show interface transceiver",
        "show interface transceiver diagnosis",
        "show ip interface brief",
        "show ip route",
        "show ip route count",
        "show cpu-protect mboard",
        "show cpu-protect type all",
        "show cpu-protect summary",
        "show interface",
        "show interfaces counters",
        "@show mac-address-table",
        "@show arp detail",
        "show spanning-tree",
        "show spanning-tree summary",
        "show spanning-tree count",
        "show lldp neighbor",
        "show lldp neighbor detail",
        "show aggregatePort capacity",
        "show aggregatePort load-balance",
        "show interface sw_spcb",
        "show interface attribute all",
        "show interfaces switchport",
        "show interface remark",
        "show interfaces counters summary",
        "show interfaces counters errors",
        "show interfaces counters rate",
        "debug su",
        "show skbuff",
        "show exception",
        "end"
      ]
    },
    {
      "name": "10XIP地址与应用基本信息",
      "rules": [
        "show ip interface brief",
        "show ip route",
        "show ip route count"
      ]
    }
  ],
  "checkItems": [
    {
      "collectType": "网管与监控",
      "subTypes": [
        {
          "typeName": "端口镜像SPAN无法镜像到报文",
          "cmds": [
            "@include 10X交换机基本信息"
          ]
        }
      ]
    },
    {
      "collectType": "系统相关",
      "subTypes": [
        {
          "typeName": "电源告警或异常",
          "cmds": [
            "@include 10X交换机基本信息",
            "show power"
          ]
        },
        {
          "typeName": "风扇告警或异常",
          "cmds": [
            "@include 10X交换机基本信息",
            "show fan"
          ]
        },
        {
          "typeName": "cpu异常冒高",
          "cmds": [
            "@include 10X交换机基本信息",
            "show cpu",
            "@sleep 1000",
            "show cpu",
            "show arp counter",
            "debug support",
            "show task",
            "show task",
            "end"
          ]
        },
        {
          "typeName": "内存异常冒高",
          "cmds": [
            "@include 10X交换机基本信息",
            "show memory",
            "show memory protocols",
            "debug support",
            "show memory",
            "show memory",
            "show pool",
            "show pool",
            "show skbuff",
            "show skbuff",
            "show semaphore",
            "end"
          ]
        },
        {
          "typeName": "VSU状态异常或无法组建",
          "cmds": [
            "@include 10X交换机基本信息",
            "show switch virtual link",
            "@show version slots",
            "@session device #X slot #Y",
            "enable",
            "show switch virtual link port",
            "exit",
            "show switch virtual",
            "show switch virtual config",
            "show switch virtual role",
            "show switch virtual dual-active summary",
            "show switch virtual dual-active bfd",
            "show aggregatePort summary",
            "show lacp summary",
            "show aggregatePort load-balance",
            "debug support",
            "show exception",
            "show skbuff",
            "show queue",
            "show task",
            "@sleep 1000",
            "show task",
            "@sleep 1000",
            "show task",
            "show tipc nodes",
            "exec debug_show_exception_all",
            "exec debug_show_outband_link",
            "pnc show error slot all",
            "pnc show exception",
            "exit",
            "show rrp log",
            "show dad",
            "show dad mad",
            "show dad bfd",
            "debug net",
            "tcp",
            "exit",
            "show lldp local-information",
            "show lldp neighbors",
            "show lldp statistics",
            "show lldp status",
            "show lldp tlv-config"
          ]
        }
      ]
    },
    {
      "collectType": "二层业务",
      "subTypes": [
        {
          "typeName": "端口不能UP",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息"
          ]
        },
        {
          "typeName": "端口丢包",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息"
          ]
        },
        {
          "typeName": "端口聚合后链路不通",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息"
          ]
        },
        {
          "typeName": "LACP协商失败",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息"
          ]
        },
        {
          "typeName": "生成树端口状态异常",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息",
            "show spanning-tree",
            "show spanning-tree summary",
            "show spanning-tree counters",
            "show spanning-tree #swport1",
            "show spanning-tree mst configuration"
          ]
        },
        {
          "typeName": "POE端口无法供电",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10X二层业务类基本信息",
            "show lldp neighbor",
            "show lldp neighbor detail",
            "show poe powersupply",
            "show poe interfaces #swport1",
            "show poe interface configuration",
            "show poe interfaces status",
            "show power",
            "config",
            "poe support show-errors",
            "exit",
            "sd",
            "sh console on",
            "sh pdt dump sys",
            "sh pdt dump port #port_id",
            "sh pdt ups",
            "sh pdt read 0x28 0x00 1",
            "sh pdt read 0x28 0x02 1",
            "sh pdt read 0x28 0x04 1",
            "sh pdt read 0x28 0x06 1",
            "sh pdt read 0x28 0x08 1",
            "sh pdt read 0x28 0x0a 1",
            "sh pdt read 0x28 0x0c 1",
            "sh pdt read 0x28 0x0d 1",
            "sh pdt read 0x28 0x0e 1",
            "sh pdt read 0x28 0x0f 1",
            "sh pdt read 0x28 0x10 1",
            "sh pdt read 0x28 0x12 1",
            "sh pdt read 0x28 0x14 1",
            "sh pdt read 0x28 0x2A 1",
            "sh pdt read 0x28 0x2B 1",
            "sh pdt read 0x28 0x30 2",
            "sh pdt read 0x28 0x32 2",
            "sh pdt read 0x28 0x34 2",
            "sh pdt read 0x28 0x36 2",
            "sh pdt read 0x28 0x38 2",
            "sh pdt read 0x28 0x3a 2",
            "sh pdt read 0x28 0x3c 2",
            "sh pdt read 0x28 0x3e 2",
            "sh pdt read 0x29 0x00 1",
            "sh pdt read 0x29 0x02 1",
            "sh pdt read 0x29 0x04 1",
            "sh pdt read 0x29 0x06 1",
            "sh pdt read 0x29 0x08 1",
            "sh pdt read 0x29 0x0a 1",
            "sh pdt read 0x29 0x0c 1",
            "sh pdt read 0x29 0x0d 1",
            "sh pdt read 0x29 0x0e 1",
            "sh pdt read 0x29 0x0f 1",
            "sh pdt read 0x29 0x10 1",
            "sh pdt read 0x29 0x12 1",
            "sh pdt read 0x29 0x14 1",
            "sh pdt read 0x29 0x2A 1",
            "sh pdt read 0x29 0x2B 1",
            "sh pdt read 0x29 0x30 2",
            "sh pdt read 0x29 0x32 2",
            "sh pdt read 0x29 0x34 2",
            "sh pdt read 0x29 0x36 2",
            "sh pdt read 0x29 0x38 2",
            "sh pdt read 0x29 0x3a 2",
            "sh pdt read 0x29 0x3c 2",
            "sh pdt read 0x29 0x3e 2",
            "sh pdt read 0x2a 0x00 1",
            "sh pdt read 0x2a 0x02 1",
            "sh pdt read 0x2a 0x04 1",
            "sh pdt read 0x2a 0x06 1",
            "sh pdt read 0x2a 0x08 1",
            "sh pdt read 0x2a 0x0a 1",
            "sh pdt read 0x2a 0x0c 1",
            "sh pdt read 0x2a 0x0d 1",
            "sh pdt read 0x2a 0x0e 1",
            "sh pdt read 0x2a 0x0f 1",
            "sh pdt read 0x2a 0x10 1",
            "sh pdt read 0x2a 0x12 1",
            "sh pdt read 0x2a 0x14 1",
            "sh pdt read 0x2a 0x2A 1",
            "sh pdt read 0x2a 0x2B 1",
            "sh pdt read 0x2a 0x30 2",
            "sh pdt read 0x2a 0x32 2",
            "sh pdt read 0x2a 0x34 2",
            "sh pdt read 0x2a 0x36 2",
            "sh pdt read 0x2a 0x38 2",
            "sh pdt read 0x2a 0x3a 2",
            "sh pdt read 0x2a 0x3c 2",
            "sh pdt read 0x2a 0x3e 2",
            "sh pdt read 0x2b 0x00 1",
            "sh pdt read 0x2b 0x02 1",
            "sh pdt read 0x2b 0x04 1",
            "sh pdt read 0x2b 0x06 1",
            "sh pdt read 0x2b 0x08 1",
            "sh pdt read 0x2b 0x0a 1",
            "sh pdt read 0x2b 0x0c 1",
            "sh pdt read 0x2b 0x0d 1",
            "sh pdt read 0x2b 0x0e 1",
            "sh pdt read 0x2b 0x0f 1",
            "sh pdt read 0x2b 0x10 1",
            "sh pdt read 0x2b 0x12 1",
            "sh pdt read 0x2b 0x14 1",
            "sh pdt read 0x2b 0x2A 1",
            "sh pdt read 0x2b 0x2B 1",
            "sh pdt read 0x2b 0x30 2",
            "sh pdt read 0x2b 0x32 2",
            "sh pdt read 0x2b 0x34 2",
            "sh pdt read 0x2b 0x36 2",
            "sh pdt read 0x2b 0x38 2",
            "sh pdt read 0x2b 0x3a 2",
            "sh pdt read 0x2b 0x3c 2",
            "sh pdt read 0x2b 0x3e 2",
            "sh pdt read 0x2c 0x00 1",
            "sh pdt read 0x2c 0x02 1",
            "sh pdt read 0x2c 0x04 1",
            "sh pdt read 0x2c 0x06 1",
            "sh pdt read 0x2c 0x08 1",
            "sh pdt read 0x2c 0x0a 1",
            "sh pdt read 0x2c 0x0c 1",
            "sh pdt read 0x2c 0x0d 1",
            "sh pdt read 0x2c 0x0e 1",
            "sh pdt read 0x2c 0x0f 1",
            "sh pdt read 0x2c 0x10 1",
            "sh pdt read 0x2c 0x12 1",
            "sh pdt read 0x2c 0x14 1",
            "sh pdt read 0x2c 0x2A 1",
            "sh pdt read 0x2c 0x2B 1",
            "sh pdt read 0x2c 0x30 2",
            "sh pdt read 0x2c 0x32 2",
            "sh pdt read 0x2c 0x34 2",
            "sh pdt read 0x2c 0x36 2",
            "sh pdt read 0x2c 0x38 2",
            "sh pdt read 0x2c 0x3a 2",
            "sh pdt read 0x2c 0x3c 2",
            "sh pdt read 0x2c 0x3e 2",
            "sh pdt read 0x2d 0x00 1",
            "sh pdt read 0x2d 0x02 1",
            "sh pdt read 0x2d 0x04 1",
            "sh pdt read 0x2d 0x06 1",
            "sh pdt read 0x2d 0x08 1",
            "sh pdt read 0x2d 0x0a 1",
            "sh pdt read 0x2d 0x0c 1",
            "sh pdt read 0x2d 0x0d 1",
            "sh pdt read 0x2d 0x0e 1",
            "sh pdt read 0x2d 0x0f 1",
            "sh pdt read 0x2d 0x10 1",
            "sh pdt read 0x2d 0x12 1",
            "sh pdt read 0x2d 0x14 1",
            "sh pdt read 0x2d 0x2A 1",
            "sh pdt read 0x2d 0x2B 1",
            "sh pdt read 0x2d 0x30 2",
            "sh pdt read 0x2d 0x32 2",
            "sh pdt read 0x2d 0x34 2",
            "sh pdt read 0x2d 0x36 2",
            "sh pdt read 0x2d 0x38 2",
            "sh pdt read 0x2d 0x3a 2",
            "sh pdt read 0x2d 0x3c 2",
            "sh pdt read 0x2d 0x3e 2",
            "sh pdt push on",
            "sh pdt push off",
            "sh console off",
            "sh dexit"
          ]
        }
      ]
    },
    {
      "collectType": "IP地址与应用",
      "subTypes": [
        {
          "typeName": "DHCP无法获取IP地址",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10XIP地址与应用基本信息",
            "show dhcp lease",
            "show ip dhcp binding",
            "show ip dhcp conflict",
            "show ip dhcp server statistics",
            "show dhcp-server pool",
            "show ip dhcp snooping binding"
          ]
        },
        {
          "typeName": "IPV4用户无法ping通网关",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10XIP地址与应用基本信息",
            "show ip ref adjacency | include #sourceip",
            "show ip ref adjacency | include #destip",
            "show ip ref packet statistics",
            "show ip ref packet statistics",
            "show ip ref packet statistics",
            "show ip ref resolve-list",
            "show ip ref route | include #sourceip",
            "show ip ref route | include #destip",
            "show ip ref route vrf vrf-name | include #sourceip",
            "show ip ref route vrf vrf-name | include #destip"
          ]
        },
        {
          "typeName": "IPV4用户可ping通网关，无法ping通外网",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10XIP地址与应用基本信息",
            "show ip ref adjacency | include #sourceip",
            "show ip ref adjacency | include #destip",
            "show ip ref packet statistics",
            "show ip ref packet statistics",
            "show ip ref packet statistics",
            "show ip ref resolve-list",
            "show ip ref route | include #sourceip",
            "show ip ref route | include #destip",
            "show ip ref route vrf #vrfName | include #sourceip",
            "show ip ref route vrf #vrfName | include #destip"
          ]
        },
        {
          "typeName": "IPV6用户无法ping外网",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10XIP地址与应用基本信息",
            "show ipv6 ref adjacency | include  #sourceipv6",
            "show ipv6 ref packet statistics",
            "show ipv6 ref resolve-list",
            "show ipv6 ref route | include #sourceipv6",
            "show ipv6 ref route | include #destipv6",
            "show ipv6 ref route vrf #vrfName | include #sourceipv6",
            "show ipv6 ref route vrf #vrfName | include #destipv6",
            "show ipv6 ref statistics"
          ]
        },
        {
          "typeName": "BFD震荡",
          "cmds": [
            "@include 10X交换机基本信息",
            "@include 10XIP地址与应用基本信息",
            "show bfd interface",
            "show bfd client",
            "show bfd down-reason",
            "show bfd message",
            "show bfd src-port",
            "show bfd error",
            "show bfd pst-info",
            "show bfd rdnd-info"
          ]
        }
      ]
    },
    {
      "collectType": "认证问题",
      "subTypes": [
        {
          "typeName": "WEB认证无法弹开认证页面",
          "cmds": [
            "@include 10X交换机基本信息",
            "@show arp detail | include #ipparam1",
            "show web-server status",
            "@show web-auth user ip #ipparam1",
            "show aaa user lockout",
            "show radius server",
            "show dot1x",
            "show dot1x summary"
          ]
        }
      ]
    },
    {
      "collectType": "安全类问题",
      "subTypes": [
        {
          "typeName": "功能不生效",
          "cmds": [
            "@include 10X交换机基本信息",
            "show route-map",
            "show access-lists",
            "show ip access-group",
            "show access-group",
            "debug ssp enable slot all",
            "@mode_switch $(sd)/$(cli>)/$(dexit)",
            "su 0",
            "cons on",
            "nfpp drop_cnt all",
            "nfpp drop_cnt clear",
            "pacl dump summary",
            "pacl dump all",
            "cons off",
            "@modeEnd",
            "no debug ssp enable slot all",
            "show port-security",
            "show ip deny invalid-l4port",
            "show ip deny invalid-tcp",
            "show ip deny land",
            "show ip verify source"
          ]
        }
      ]
    },
    {
      "collectType": "防火墙卡",
      "subTypes": [
        {
          "typeName": "防火墙卡流量访问异常",
          "cmds": [
            "@include 10X交换机基本信息",
            "@show version slots",
            "@session slot #X",
            "en",
            "show ip fpm statistics",
            "show ip fpm counters",
            "clear ip fpm counters",
            "show efmp counter",
            "clear efmp counter",
            "show firewall debug",
            "show firewall counters all",
            "show firewall counters global",
            "clear firewall counters global",
            "show firewall debug ",
            "show firewall users total",
            "show firewall fatal",
            "clear firewall fatal ",
            "show ip fragment-buffer",
            "clear ip fragment-statistic",
            "show logging",
            "show session-limit status",
            "debug support ",
            "exec octeon_fpa_regs",
            "exit",
            "show version",
            "show run",
            "show memory",
            "show cpu",
            "show clock",
            "debug support",
            "show exception",
            "exit",
            "show ef_bridge drop_cnt",
            "show ef-rnfp all",
            "show failover",
            "show failover heartbeat",
            "show failover history",
            "show failover history detail",
            "show failover rdnd state",
            "show failover rdnd statistic",
            "show failover sa_rdnd statistic",
            "show aa-forword",
            "show ip fpm flows | include  #ipparam1",
            "show firewall users #ipparam1",
            "show firewall dynamic-filter  | include  #ipparam1",
            "show firewall global-blocking | include  #ipparam1",
            "show security-access-blocking | include  #ipparam1",
            "show ip nat translations    | include  #ipparam1",
            "show ip ref route | include  #ipparam1 ",
            "show mac-address-table dynamic",
            "show tcp connect | include  #ipparam1",
            "show mac-address-table static",
            "exit",
            "@sessionEnd"
          ]
        }
      ]
    },
    {
      "collectType": "硬件类问题",
      "subTypes": [
        {
          "typeName": "硬件规则检测",
          "cmds": [
          ],
          "t": "",
          "mapHtml": "",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 硬件规则检测"
        }
      ]
    },
    {
      "collectType": "未知故障",
      "subTypes": [
        {
          "typeName": "未知故障",
          "cmds": [
            "@include 10X交换机基本信息"
          ]
        }
      ]
    },
	{
      "collectType": "通用诊断",
      "subTypes": [
        {
          "typeName": "设备检测异常",
          "cmds": [
          ],
		  "t": "",
          "mapHtml": "",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 设备检测异常"
        }
      ]
    }
  ]
}