Hi,

I cannot get $test_val to insert the value in the snmpset. What im a doing wrong??

$test_val = "SomeValue";

function snmp_set() {
//snmpset ( string hostname, string community, string object_id, string type, mixed value [, int timeout [, int retries]] )
snmpset('10.15.6.16', 'public', 'enterprises.1824.1.3.1.3.1', 's', $test_val);

}

    Maybe you forgotten about "global $test_val" after function definition?

      Yes offcource.

      thank you once again for you're fast reply.

      now it work fine

        Write a Reply...