Hi all

I'm looking for a possibility to configure trap targets dynamically. As
suggested in another Thread I try setting the appropriate values in the
corresponding tables.

Because I have defined one traptarget in my snmpd.conf file, which appears
correctly in the snmpTargetAddrTable as shown below:

snmpwalk -v 3 -u boris localhost SNMP-TARGET-MIB::snmpTargetAddrTable

yields:

SNMP-TARGET-MIB::snmpTargetAddrTDomain.'internal0' = OID:
SNMPv2-TM::snmpUDPDomain
SNMP-TARGET-MIB::snmpTargetAddrTAddress.'internal0' = Hex-STRING: C0 A8 00
D4 00 A2
SNMP-TARGET-MIB::snmpTargetAddrTimeout.'internal0' = INTEGER: 1000
SNMP-TARGET-MIB::snmpTargetAddrRetryCount.'internal0' = INTEGER: 5
SNMP-TARGET-MIB::snmpTargetAddrTagList.'internal0' = STRING: internal0
SNMP-TARGET-MIB::snmpTargetAddrParams.'internal0' = STRING: internal0
SNMP-TARGET-MIB::snmpTargetAddrStorageType.'internal0' = INTEGER:
readOnly(5)
SNMP-TARGET-MIB::snmpTargetAddrRowStatus.'internal0' = INTEGER: active(1)

If I try now to chagne for example the timeout value with the following
statement:

snmpset -v 3 -u boris localhost
SNMP-TARGET-MIB::snmpTargetAddrTimeout.\'internal0\' = 6

I get

Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMP-TARGET-MIB::snmpTargetAddrTimeout.'internal0'

I don't understand this, because the snmpTargetAddrTimeout ojbect has access
specifier 'read-create' and should therefore be writable.

My user has write access, I can set values in other tables successfully

Any help would greatly be appreciated!

Thanks a lot,

Boris
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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

Reply via email to