I'm using the "Baytech-MIB-413-1" MiB file and the Perl module SNMP to retrieve data from an MMP-11 power strip.

When I use the "getnext" function, I'm able to get all of the data I need, but it's cumbersome to read tables this way. So I switched to using the "gettable" function. It works well for all of the tables I'm reading, except for:

sBTAModulesRPCCircuitsTable (or sBTAModulesRPCBreakersTable)
sBTAEnvironmentalObjectsTable

With the sBTAModulesPRPCCircuitsTable I get the following message:

ack: gettable failed to find any columns to look for

With the sBTAEnvironmentalObjectsTable I get the following messages:

***** ERROR parsing .1.3.6.1.4.1.4779.1.6.2.1.13.2.1.1 MIB indexes:
   spcEnvironmentalStateTrapEn.2.1.1 => netsnmp_oidPtr
   should be an array
   expected # indexes = 2
***** ERROR parsing .1.3.6.1.4.1.4779.1.6.2.1.13.2.1.2 MIB indexes:
   spcEnvironmentalStateTrapEn.2.1.2 => netsnmp_oidPtr
   should be an array
   expected # indexes = 2

The Environmental one *does* return data for the sensors (we don't have any external sensors installed so the data is bogus) but the Circuits table returns just that error.

If anyone could help me with these issues I'd appreciate it. I have sent the same question to Baytech support but I'm thinking I'll get a faster response from this group.


In reply to Querying Baytech MMP-11 Power Strips using SNMP by wveagle81

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.