{
    "name"  : "检查拨号口是否被shutdown",
    "problems" : {
        "copper" : {
            "desc"      : "【问题】拨号口被shutdown",
            "advice"    : "【建议】在对应的拨号口上执行no shutdown" 
        }
    }
}

---------------------------code-------------------------------
dailPort = precondition('dailPort')
cmd = 'show interface ' + dailPort + ' | inc administratively down'
response = cli(cmd)
response = response.split(/\r?\n/)
val = response[response.length - 1]
val = val.indexOf("#")
if val == -1 :
	if response.length == 1 :
		add_problem("copper")
		return 'warn'
	end
else :
	if response.length == 2:
		add_problem("copper")
		return 'warn'
	end
end
return 'success'