PHP snmp work with one connection -


is there way make 1 connection , work it?

now have this:

snmp2_get("ip", "public", ".1.3.6.1.2.1.1.5.0"); snmp2_get("ip", "public", ".1.3.6.1.2.1.1.6.0"); 

is there function make 1 connection , work or how can put multi oids?

snmp on udp, default setup, connectionless begin with. php functions not provide means of generating "handle" can reused; typically, create own wrapper if wanted functionality.

note, however, php 5.4 introduced "snmp" class (see the documentation here), allow want.

for example:

$session = new snmp( snmp::version_2c, "127.0.0.1", "public" ); $value1 = $session->get( ".1.3.6.1.2.1.1.5.0" ); $value2 = $session->get( ".1.3.6.1.2.1.1.6.0" ); 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -