{
  "name": "11xSwitchALL",
  "rules": [
    {
      "name": "11X交换机基本信息",
      "rules": [
        "show debugging",
        "undebug all",
        "show interface counters summary",
        "show interface counters rate",
        "show interface counters error",
        "show version detail",
        "show version slots",
        "show running",
        "show cpu",
        "@sleep 1000",
        "show cpu",
        "show cpu-protect",
        "@show version slots",
        "@show cpu-protect slot #X",
        "show memory",
        "show manuinfo",
        "show logging",
        "show temperature",
        "run-system-shell",
        "df -h",
        "telnet-cmd  #X #Y ssa / show c / ps / phy info / show c",
        "cat /proc/net/tcp",
        "exit",        
        "show card voltage",
        "show redundancy states",
        "show nfpp arp-guard summary",
        "show nfpp arp-guard hosts",
        "show nfpp ip-guard hosts",
        "show nfpp ip-guard summary",
        "show nfpp arp-guard scan",
        "show nfpp log buffer",
        "show nfpp dhcp-guard summary",
        "show nfpp dhcp-guard hosts",
        "show interfaces usage",
        "show ip interface brief",
        "show ip route",
        "show ip route count",
        "show cpu-protect mboard",
        "show cpu-protect summary",
        "show interface",
        "show interfaces counters",
        "show interfaces status",
        "show interfaces counters error",
        "show interfaces counters summary",
        "show interfaces counters rate",
        "show interface transceiver",
        "show interface transceiver dia",
        "show interface transceiver manuinfo",
        "show interface mac-address-mapping",
        "show interface usage",
        "show interface status err-disabled",
        "show arp detail",
        "show mac-address-table",
        "show spanning-tree",
        "show spanning-tree summary",
        "show spanning-tree count",
        "show lldp neighbor",
        "show lldp neighbor detail",
        "show mac-address-table count",
        "show arp count",
        "show ip route",
        "show aggregatePort summary",
        "show aggregatePort capacity",
        "show aggregatePort load-balance",
        "show interface link-state-change statistics",
        "show ip packet queue",
        "show ip packet statistics ",
        "show tcp statistics",
        "show tcp connet",
        "show tcp connect detail",
        "show tcp pmtu",
        "show tcp port",
        "show tcp parameter",
        "show efmp pkt-statistic ",
        "show efmp using-buff",
        "show efmp memory", 
        "show efmp broadcast", 
        "show efmp buff-leak", 
        "show efmp buff-pool",
        "show efmp fpa", 
        "show efmp frmpf ",
        "show efmp interface", 
        "show efmp ipfrag-reasm",
        "show efmp ipv6frag-reasm",
        "show efmp performance ",
        "show efmp rxpnt ",
        "show efmp skip ",
        "show efmp struct-info ",
        "show efmp txpnt  ",
        "show efmp using-buff",  
        "show efmp vthread ",
        "show interface counters summary",
        "show interface counters rate",
        "show interface counters error",
        "@call one_key_collect"
      ]
    },
    {
      "name": "11XIP地址与应用基本信息",
      "rules": [
      ]
    }
  ],
  "checkItems": [
    {
      "collectType": "网管与监控",
      "subTypes": [
        {
          "typeName": "端口镜像SPAN无法镜像到报文",
          "cmds": [
            "@include 11X交换机基本信息"
          ]
        }
      ]
    },
    {
      "collectType": "系统相关",
      "subTypes": [
        {
          "typeName": "系统指示灯告警或异常",
          "cmds": [
            "@include 11X交换机基本信息",
            "debug dp display bc misc",
            "debug lsm fiber-tran",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "show alarm",
            "show interface transceiver",
            "fpga read 0x1b 1",
            "show struct_info"
          ]
        },
        {
          "typeName": "电源指示灯告警或异常",
          "cmds": [
            "@include 11X交换机基本信息",
            "debug dp display bc misc",
            "debug lsm fiber-tran",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "show alarm",
            "fpga read 0x1b 1",
            "show struct_info"
          ]
        },
        {
          "typeName": "风扇指示灯告警或异常",
          "cmds": [
            "@include 11X交换机基本信息",
            "debug dp display bc misc",
            "debug lsm fiber-tran",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "show alarm",
            "show interface transceiver",
            "fpga read 0x1b 1",
            "show struct_info"
          ]
        },
        {
          "typeName": "cpu异常冒高",
          "cmds": [
            "@include 11X交换机基本信息",
            "show process cpu history",
            "show arp counter"
          ]
        },
        {
          "typeName": "内存异常冒高",
          "cmds": [
            "@include 11X交换机基本信息",
            "show memory history"
          ]
        },
        {
          "typeName": "温度告警或异常",
          "cmds": [
            "@include 11X交换机基本信息",
            "show temperature",
            "show temperature fault"
          ]
        },
        {
          "typeName": "线卡无法识别或无法启动",
          "cmds": [
            "@include 11X交换机基本信息",
            "show alarm cannot-startup",
            "debug dp display lc stm",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "@show version slots",
            "@session device #X slot #Y",
            "enable",
            "debug dp display lc stm",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "exit",
            "@sessionEnd"
          ]
        },
        {
          "typeName": "VSU状态异常或无法组建",
          "cmds": [
            "@include 11X交换机基本信息",
            "show switch virtual link",
            "show switch virtual config",
            "show switch virtual role",
            "show switch virtual dual-active summary",
            "show switch virtual dual-active bfd",
            "show dtm record vsl",
            "show dtm record topo",
            "show vsl lib record config",
            "run-system-shell",
            "cat /tmp/proxy/defout/ssc_process",
            "@mode_switch $(debug-ssc)/$(>|@)/$(@ctrl+]+e)",
            "at",
            "load ssc_vsl",
            "ut dump",
            "quit",
            "@modeEnd",
            "exit",
            "show rdnd status",
            "show rdnd problems",
            "show rdnd pairs",
            "show rdnd switchover",
            "show rdnd logs",
            "@sleep 1000",
            "debug syslog limit time 10 numbers 100",
            "debug rdnd ping ",
            "debug rdnd ping echo",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all"
          ]
        }

      ]
    },
	{
      "collectType": "硬件问题",
      "subTypes": [
        {
          "typeName": "硬件问题",
          "cmds": [ ],
          "t": "",
          "mapHtml": "",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 硬件问题"
        }
      ]
    },
	{
      "collectType": "通用版本检测",
      "subTypes": [
        {
          "typeName": "通用版本检测",
          "cmds": [ ],
          "t": "",
          "mapHtml": "html/switch/switch_layer2_noUp.html",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 通用版本检测"
        }
      ]
    },
	{
      "collectType": "自动化规则",
      "subTypes": [
        {
          "typeName": "自动化规则",
          "cmds": [ ],
          "t": "",
          "mapHtml": "",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 自动化规则"
        }
      ]
    },
    {
      "collectType": "二层业务类",
      "subTypes": [
        {
          "typeName": "端口不能UP",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息"
          ]
        },
        {
          "typeName": "端口丢包",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息"
          ]
        },
        {
          "typeName": "端口聚合后链路不通",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息"
          ]
        },
        {
          "typeName": "LACP协商失败",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息",
            "debug syslog limit time 10 numbers 100",
            "debug lacp event",
            "debug lacp packet",
            "debug lacp stm",
            "debug lacp timer",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all"
          ]
        },
        {
          "typeName": "生成树端口状态异常",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息"
          ]
        },
		{
          "typeName": "生成树异常状态及配置检测",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息"
          ]
        },
        {
          "typeName": "POE端口无法供电",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11X二层业务类基本信息",
            "show lldp neighbor",
            "show lldp neighbor detail",
            "show poe powersupply",
            "show poe interfaces #swport1",
            "show poe interface configuration",
            "show poe interfaces status",
            "show power"
          ]
        }
      ]
    },
    {
      "collectType": "IP地址与应用",
      "subTypes": [
        {
          "typeName": "DHCP无法获取IP地址",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11XIP地址与应用基本信息",
            "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",
            "debug syslog limit time 10 numbers 100",
            "debug ip dhcp server events",
            "debug ip dhcp server packet",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all"
          ]
        },
        {
          "typeName": "IPV4用户无法ping通网关",
          "cmds": [
            "@include 11X交换机基本信息",
            "@include 11XIP地址与应用基本信息",
            "show ip ref adjacency | include #sourceip",
            "show ip ref adjacency | include #destip",
            "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 11X交换机基本信息",
            "@include 11XIP地址与应用基本信息",
            "show ip ref adjacency | include #sourceip",
            "show ip ref adjacency | include #destip",
            "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 11X交换机基本信息",
            "@include 11XIP地址与应用基本信息",
            "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 11X交换机基本信息",
            "@include 11XIP地址与应用基本信息",
            "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 11X交换机基本信息",
            "show arp detail | include #unnormalip",
            "show web-server status",
            "show web-auth user ip #unnormalip",
            "debub scc user filter ip #unnormalip",
            "@show arp #unnormalip",
            "@debug scc user filter mac #macaddress",
            "debug acl efacl nac-show web",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "debug web cli",
            "debug web stat",
            "debug web stat eportalv2",
            "debug web show",
            "debug web ustat timeout",
            "show radius timeout record",
            "show radius dyn stat"
          ]
        }
      ]
    },
    {
      "collectType": "安全类问题",
      "subTypes": [
        {
          "typeName": "ACL不生效",
          "cmds": [
            "@include 11X交换机基本信息",
            "show access-lists",
            "show access-group",
            "show redirect",
            "debug scc acl-show  all",
            "debug scc appid 16 show",
            "terminal monitor",
            "@sleep 10000",
            "terminal no monitor",
            "undebug all",
            "run-system-shell",
            "@show version slots",
            "@telnet-cmd  #X #Y ssa / ffpdump all",
            "exit"
          ]
        }
      ]
    },
    {
      "collectType": "硬件类问题",
      "subTypes": [
        {
          "typeName": "硬件规则检测",
          "cmds": [
          ],
          "t": "",
          "mapHtml": "",
          "supportOldDiag": false,
          "supportNewDiag": true,
          "diagRule": "@include diagrules.json 硬件规则检测"
        }
      ]
    },
    {
      "collectType": "未知故障",
      "subTypes": [
        {
          "typeName": "未知故障",
          "cmds": [
            "@include 11X交换机基本信息"
          ]
        }
      ]
    }
  ]
}