{
    "name"  : "用户的并发会话数是否超过了限制",
    "problems" : {
        "flowLine" : {
            "desc"      : "【问题】用户的并发会话数超过了限制",
            "advice"    : "【建议】请调整连接数限制策略"
        }
    }
}
---------------------------code-------------------------------

userNoNetIp = precondition('userNoNetIp')
cmd = "show flow-pre-mgr ip-info | in " + userNoNetIp
response = cli(cmd)
print response
results = response.split(/\r?\n/ig)
exist = false
i = STARTNUM
while i < results.length :
    resultTemp = results[i]
    if resultTemp.search(userNoNetIp) != -1 : 
        all_num = results[i]
        all_num = all_num.trim()
		print 'all_num:' + all_num
        all_num = all_num.split(/[\s]{1,}/g)
		print 'all_num split:' + all_num.length
        flow_cnt = all_num[1]
        flow_limit = all_num[2]
		print 'flow_limit:' + flow_limit + ' flow_cnt:' + flow_cnt;
        if((flow_limit - flow_cnt) < 50) :
            add_problem('dnsDelegate')
            return 'warn'
        end
        break
    end
    i = i + 1
end

return 'success'
