#!/usr/bin/env python

from snmp_helper import snmp_get_oid,snmp_extract

def snmp_stats(SNMP_PORT,COMMUNITY_STRING,IP_LIST,OID):
    for ip in IP_LIST:
        for oid in OID:
            device = (ip, COMMUNITY_STRING, SNMP_PORT)
            get = snmp_get_oid(device, oid)
            output = snmp_extract(get)
            print output
            print '----------------------------------------------'

if __name__ == "__main__":
    SNMP_PORT = 161
    COMMUNITY_STRING = 'galileo'
    IP_LIST = ('184.105.247.70','184.105.247.71')
    OID = ('1.3.6.1.2.1.1.5.0','1.3.6.1.2.1.1.1.0') 

    snmp_stats(SNMP_PORT, COMMUNITY_STRING, IP_LIST, OID)
