{
    "name"  : "设备TCP资源是否被占满",
    "problems" : {
        "fullTCP" : {
            "desc"      : "【问题】设备TCP资源被占满",
            "advice"    : "【建议】在WEB系统上开启本地防攻击-防流量攻击功能"
        }
    }
}
---------------------------code-------------------------------
#设备TCP资源是否被占满
STARTNUM = 1
response = cli('show tcp connect')
print response 
results = response.split(/\r?\n/)
print results.length
if results.length > 1000 :
    add_problem('fullTCP')
    return 'warn'
end
return 'success'
