Jump to content

snmpwalk behaving differently on different servers


mbeals

Recommended Posts

I have a piece of php code that uses the snmpwalk to poll info from several different servers.  The code polls 4 different OIDS in a row on a server, logs the info to a DB and then moves on to the next server.

 

I developed the code on an old POS machine, and everything worked fine.  I migrate the code over to a faster machine, taking it out of the dev stage, and suddenly snmpwalk starts to fail on me.  The two machines are identical in terms of OS and file structure.  One is just significantly faster then the other.

 

Since the code doesn't fail in the same place every time (and sometimes it actually finishes), I'm wondering if it is trying to start the next snmpwalk before the previous has time to fully exit and complete.  It didn't do it before because the old machine was much slower.  Does this sound about right?  Is there a trick to make php wait (like the sleep shell command)?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.