{
    "name"  : "用户的新建会话数是否超过了限制",
    "problems" : {
        "newSession" : {
            "desc"      : "【问题】用户的新建会话数超过了限制",
            "advice"    : "【建议】请调整新建连接数限制策略"
        }
    }
}
---------------------------code-------------------------------
userNoNetIp = precondition('userNoNetIp')
cmd = "show flow-pre-mgr new-session-limit attack | in " + userNoNetIp
response = cli(cmd)
if response.indexOf("Invalid input") == -1:
    results = response.split(/\r?\n/)
    if results.length > 2 :
        add_problem("newSession")
        return "warn"
    end
end

return "success"
