Re: DISMAN-EVENT-MIB configuration

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 09/10/06, Jing Guan <[email protected]> wrote:
> In DISMAN-EVENT-MIB, "mteOwner" and "mteOwnerName" are the indexes of the
> mteTriggerEntry table, but they are NoWritable Objects.  Who set them?

They are set automatically when a new row is created in the table.
If you use mteTriggerEntryStatus to create a new row, this will
involve an assignment of the form:
      mteTriggerEntryStatus."someOwner".'someName' = 4

So the mteOwner and mteOwnerName values are implicit in the
mteTriggerEntryStatus instance indexes.


>  when I query the agent for "mteOwner" or "mteOwnerName" object, I got
> error message:
> DISMAN-EVENT-MIB::mteOwner = No Such Object
> DISMAN-EVENT-MIB::mteOwnerName = No Such Object

That's correct.
Check the MIB definitions:

mteOwner OBJECT-TYPE
   SYNTAX      SnmpAdminString (SIZE(0..32))
   MAX-ACCESS  not-accessible       <===========

So this particular object cannot be retrieved directly.
You can see the relevant index value in the OID when you retrieve
another (accessible) column in the same table.

As for mteOwnerName, there is no object by that name defined in this MIB.
The second index object for the mteTriggerTable is actually
mreTriggerName, which has the same basic definition as mteOwner.
Again, this object is not directly accessible.


> when I try to clear "mteTriggerEnabled" object by
> mteTriggerEnabled."snmpd.conf".'CPU Temp' = INTEGER: false(0),

Try escaping the quotes:

   snmpset ... mteTriggerEnabled.\"snmpd.conf\".\'CPU Temp\' i 0


Otherwise the shell swallows them, and "snmpset" get confused.


Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.