Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EasySNMP Walk/BulkWalk
#3
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
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())
Reply


Messages In This Thread
EasySNMP Walk/BulkWalk - by pylance - Nov-17-2021, 03:36 AM
RE: EasySNMP Walk/BulkWalk - by pylance - Nov-17-2021, 11:29 AM
RE: EasySNMP Walk/BulkWalk - by pylance - Nov-17-2021, 08:50 PM
RE: EasySNMP Walk/BulkWalk - by pylance - Nov-29-2021, 12:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Python & MSGraph - Learning to Walk ITMan020324 2 470 Feb-04-2024, 04:37 PM
Last Post: ITMan020324
Question Cannot import easysnmp: ImportError: libnetsnmp.so.30 Calab 4 1,138 Jun-08-2023, 08:52 PM
Last Post: Gribouillis
  How to sort os.walk list? Denial 6 11,796 Oct-10-2020, 05:28 AM
Last Post: Denial
  os.walk question DPaul 2 2,377 May-31-2020, 02:08 PM
Last Post: DPaul
  os.walk(Path("path_string")) giving error Kumarkv 4 3,936 May-10-2020, 08:46 AM
Last Post: snippsat
  os.walk does not see files that are in the folder kiton 1 3,085 Jan-21-2020, 07:26 PM
Last Post: micseydel
  print notifcation when enter new directory os.walk() evilcode1 3 2,678 Jun-20-2019, 08:19 PM
Last Post: evilcode1
  Animating Random Walk Excelsiscelia 2 5,289 Nov-24-2018, 08:53 AM
Last Post: Excelsiscelia
  Python3 & os.walk while_e_coyote 2 3,510 Aug-24-2018, 07:32 PM
Last Post: while_e_coyote
  easysnmp output printing help anna 0 2,843 Apr-03-2018, 09:19 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020