{
    "name"  : "检测当前CPU状态",
    "problems" : {
        "problem1" : {
            "desc"      : "【问题】供电异常",
            "advice"    : "【建议】更换供电模块，确保为AT供电"
        }
    }
}
---------------------------code-------------------------------
#step 1
#确定AP型号
result = cli('show version detail')
reg = /(AP740|AP530|AP5280|AP630|520+)/
if !reg.test(result) :
    return 'skip'
end
#step 2
cli('debug pd')
result = cli('debug pdpoe-test 1')
reg = /AF/
if reg.test(result) :
    add_problem('problem1')
    return 'warn'
end

return 'success'