Robert Story,
hi, thanks for your help.
i call snmpwalk, and get the following message
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.3
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".2 = OID: SNMPv2-SMI::enterprises.8193.1.1.1.5.1.4
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".1 = OID: UCD-SNMP-MIB::prNames
DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf2".2 = OID: UCD-SNMP-MIB::prErrMessage
DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".1 = INTEGER: true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf1".2 = INTEGER: true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".1 = INTEGER: true(1)
DISMAN-EVENT-MIB::mteObjectsIDWildcard."snmpd.conf"."snmpd.conf2".2 = INTEGER: true(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".1 = INTEGER: active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf1".2 = INTEGER:
active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".1 = INTEGER: active(1)
DISMAN-EVENT-MIB::mteObjectsEntryStatus."snmpd.conf"."snmpd.conf2".2 = INTEGER: active(1)
but i don't know how to do still, call snmpset? or other function call?
by the way, i notice also that the oid includes some string in the result, so can we use the string in the oid like these?
but snmpget it is failed.
e.g.
snmpget -v2c -c gw1admin 192.168.133.225 DISMAN-EVENT-MIB::mteObjectsID."snmpd.conf"."snmpd.conf1".1
DISMAN-EVENT-MIB::mteObjectsID.snmpd.conf.snmpd.conf1.1: Unknown Object Identifier (Index out of range: snmpd (mteOwner))
why?
>On Wed, 16 Mar 2005 19:58:21 -0800 (PST) Sim wrote:
>SW> i add a monitor in snmpd.conf at the agent, like this
>SW> monitor -o prNames -o prErrMessage "process table" prErrorFlag != 0
>SW>
>SW> now i want to implement the function at the manager, the manager adds the
>SW> specified monitor dynamicly, not to modify snmpd.conf. how to do it?
>
>Using the DISMAN EVENT MIB.
>
>Set up a few monitors, then snmpwalk dismanEventMIB to see how the tables get
>set up.
>
>--
>Robert Story; NET-SNMP Junkie
>Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
>Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
>You are lost in a twisty maze of little standards, all different.
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!