{
    "name"  : "AAA认证用户残留风险",
    "problems" : {
        "flowError" : {
            "desc"      : "【风险】当前软件存在AAA认证用户残留导致无法登陆风险（在输入用户名和密码的界面未完成输入信息就直接退出登录终端，会在AAA模块造成用户信息残留）。",
            "advice"    : "【建议】升级最新软件版本，推荐使用工具一键升级功能或在日常使用中避免风险操作。"
        }
    }
}
---------------------------code-------------------------------
res2 = cli("show version detail")
resArr2 = res2.match(/11\.\d+/)
if resArr2==null :
	return 'skip'
end
dateTmp = res2.match(/\d+-\d+-\d+/)
print dateTmp
time = dateTmp[0]
time = time.trim()
time = time.split("-")
year = time[0]
mouth = time[1]
day = time[2]
if year > 2015 || year < 2015 && mouth > 10 || year < 2015 && mouth < 10 && day > 8:
	return 'skip'
end
res3 = cli("show run | include aaa")
resArr3 = res3.indexOf("aaa new-model")
if resArr3 == -1 :
	return 'skip'
end
res = cli("show aaa user all")
resTmp = res.split(/\r?\n/)
print resTmp
if resTmp.length > 4:
	add_problem("flowError")
	return 'warn'
end
return 'success'