I solved the issue above..
however I believe it to be a little messy with the connection.
I am creating a new connection to run each walk command, I cant seem to think of a way to run all of the OID's during 1 session with this..
Also the output is not as desired atm, but am working on that.
initial function, added argument
however I believe it to be a little messy with the connection.
I am creating a new connection to run each walk command, I cant seem to think of a way to run all of the OID's during 1 session with this..
Also the output is not as desired atm, but am working on that.
initial function, added argument
def test(host,oid):passing new arguments
def init_test5(): with open('apips.txt', 'r') as ips: for x in ips: with open ('bulkwalk/' + '450_bulkwalk_sm_stats.txt', 'r') as oids: for y in oids: test(x.strip(), y.strip())