{
    "name"  : "视频采样步骤",
    "problems" : {
    }
}
---------------------------code-------------------------------
ip = []
result = []
count = 0

def sampling() :
    #step1
    response = cli('show flowrate ip-application global application-group HTTP协议 | include 视频')
	print 'myResp:' + response
    result.push(response)
    response = response.split(/\r?\n/)
    response.shift()
    response.pop()
    reg = /(192.168.21.|192.168.23.)/
    foreach item in response :
        item = item.split(/\s+/)
        item_tmp = item[1]
        #step2
        if reg.test(item_tmp) :
            ip.push(item_tmp)
            if ip.length == 30 :
                break
            end
        end    
    end

    #step3
    foreach item in ip :
        cmd = 'show flowrate ip-application global ip ' + item
        response = cli(cmd)
        result.push(response)
    end

    ip = []
end

while count < 2:
    sampling()
    sleep(60000)
    count = count + 1
end 

return 'success'