{
    "name"  : "CPU保护限制检查",
    "problems" : {
        "CpuProtectingCheck" : {
            "desc"      : "【问题】CPU保护限制没有放行80端口",
            "advice"    : "【建议】在scpp关联的ACL规则中增加deny 80（www）端口的配置。"
        }
    }
}
---------------------------code-------------------------------
res = cli("show run | in scpp")
aclNumber=[]
i=0
j=0
resArr = res.split(/\r?\n/)

print 'resArr=' + resArr
if resArr.length > 0 :
   while i < resArr.length:
            print 'resArr[i]=' + resArr[i]
               resArrTmp = resArr[i]
			   resArrTmp = resArrTmp.trim()
			   
			   if resArrTmp.indexOf("#") == -1 :
			       ressignalArr =  resArrTmp.match(/[0-9]+/)
			       print 'ressingalArr' + ressignalArr
			       if ressignalArr != null :
			       aclNOs = ressignalArr[0]
			       aclNOs = aclNOs.trim()
			       aclNumber.push(aclNOs)
			      end 
				end
			i = i + 1
    end
end

print 'aclNumber=' + aclNumber
while j < aclNumber.length:
       print 'aclNumber[j]=' + aclNumber[j]
	   cmd = "show access-lists " + aclNumber[j] + " | in deny" 
       resAmp = cli(cmd)
       if resAmp.indexOf("www") == -1 :
	      add_problem("CpuProtectingCheck")
          return "warn"
       end
end

return "success"