[AGENT++] Constraint the SNMP agent to accept SNMP requests from predefined host

Pierre Pacchioni ppacch at yahoo.com
Wed Jun 22 11:29:11 CEST 2005


Hello,

Is it possible to constraint the Agent to accept connection from a (set)
predefined host(s)?
In our application we want to restrict the access to the agent to let say one
predefined host. I had a quick look at the code and I found a
set_address_validation() method on the RequestList class. Browsing the code I
found that when this flag is turn on, the snmpTargetAddrEntry and the
snmpTargetAddrExtEntry tables are used to check if the access is allowed or not
to the agent. I guess restricting the access to the agent is possible using
that "tables". 
Is someone already used that tables to do such access control? And yes it would
be great to receive a code snapshopt showing how to use that tables.
Thanks in advance for your help,
Pierre. 



More information about the AGENTPP mailing list