On 17 June 2012 10:20, MANSOUR NASERI <[email protected]> wrote: > snmpNotifyTable: > > Instance -----------> internal0 > snmpNotifyStorageType ----------->readOnly(5)
Remember that this is an entry which is being configured via the (static) snmpd.conf file. This is not something that the agent is expected to modify dynamically. That's why the storage type is reported as readOnly. > one problem is, I can not remove row from snmpTargetParamsTable and > snmpTargetAddrTable Same reason - if they are set via the (static) snmpd.conf file, then they can't be removed via SNMP SET requests. Think what would happen if this was allowed, and then the agent was shut down and restarted. It would re-read the config files, and set up the trap sink again. Hence from the point of view of the network administrator, the rows that had been deleted would seem to automatically reappear. That's why in general, anything configured via the main snmpd.conf file tends to be regarded as readOnly. > when I removed snmpNotifyTable row by snmpNotifyRowStatus > ----------->destroy(6),I can not received any traps.(as I expected). Hmmm.... I'm surprised that this works. (And I'm not convinced that it should). Same reasons again. > when i want to add that row again I have some problem: > > I can not write snmpNotifyStorageType >readOnly(5) Correct. You can't write to something that's 'readOnly', which is exactly what you need to do in order to create it. readOnly is used for rows set up via the config file, not using SET requests. > but I can write snmpNotifyStorageType >other(1) Hmmm.... I'm a little surprised. I'm really not sure how 'other' would be handled. I'd suggest it's probably better to use either 'volatile' or 'nonVolatile', depending on what behaviour you want when the agent restarts. > in that case still I can not receive any traps. > for adding new destination address I added rows like that with replacing > "internal0 to ext0" and "C0.A8.00.05.00.A2 (hex) to C0.A8.00.06.00.A2 > (hex)". > (192.168.0.6)but nothing happend again. What are the full contents of these tables, once you've set them up in the way that you think should work? Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
