Forum Discussion

johndoems_45694's avatar
johndoems_45694
Icon for Nimbostratus rankNimbostratus
Jul 17, 2008

Modifying SNMP configuration using the java icontrol api

Hello, I am modifying SNMP agent access stuff using the java API - adding new community/source/OID entries and modifying the SNMP client allow list - via ManagementSNMPConfigurationBindingStub.set_readonly_community(), and ManagementSNMPConfigurationBindingStub.set_readwrite_community(). I have found that:

 

 

-using these functions only writes to snmpd.conf and does not update the internal database nor the GUI interface

 

-there is no way to modify the hosts.allow file

 

 

The result is that if a user modifies the SNMP settings in the GUI after using my java program, the SNMP communities I added are deleted.

 

 

The only solution as far as I can see is to call these commands AND add new entries into the internal database. The database also has an entry for the client allow list - Service.SNMP.allow. Is there any better way to do this?
No RepliesBe the first to reply