Community discussions

just joined
Topic Author
Posts: 6
Joined: Tue May 26, 2015 3:09 pm

API - Change SNMP Community

Mon Apr 29, 2019 3:07 pm

I'm trying to change Community SNMP settings via API (PHP). I do not receive any error, as if the command was executed successfully however in RouterOS nothing happens.


//get current SNMP data
$snmp = $API->read();

//get current Community data used
$community = $API->read();

//String example of addresses to update
$addresses = ',';

$API->write('addresses='.$addresses ,false);
$UPDATE = $API->read();

at end $UPDATE = array(0) { }

not just addresses, but any Community configuration happens the same.

Who is online

Users browsing this forum: No registered users and 22 guests