
{
    "name"  : "硬件检测-CPU检测",
    "problems" : {
        "hardware_cpu" : {
            "desc"      : "【问题】通过show logging查询无法识别的线卡CPU存在异常，初判硬件异常。",
            "advice"    : "【建议】请关注“锐捷网络客户中心”微信报修；或拨打热线报修：4008-111-000进行设备更换。"
        }
    }
}

---------------------------code-------------------------------
log_cpu = cli('show logging | include <1.1.90:s8696-1.1.20:s8696>')
if log_cpu.indexOf('link <1.1.90:s8696-1.1.20:s8696> on network plane A, owner signature 43943, peer session 43943') > -1 :
	change_title('检测设备线卡CPU异常，疑似硬件问题')
	add_problem('hardware_cpu')
	return 'warn'
end

change_title('未检测到线卡CPU问题')
return 'success'
