Login  
Search All Forums
Dart Home | Custom Development Reply | General Questions Topics | Forums   
AuthorForum: General Questions
Topic: PowerSNMP Manager importing MIB
eddi1984

From: Canada
Posts: 3
Member Since: 02/07/17
posted February 7, 2017 2:13 PM

Hi,

I am trying to import a HP-Laserjet-Common.mib.

When importing I get the following message:
"Error generating MIB nodes: Unable to locate definition for Syntax real"

What am I missing?

Thanks.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted February 7, 2017 2:53 PM

Hello,

Please follow the steps outlined at the bottom of the page here under "MIB Dependencies":

http://www.dart.com/help/psnet/webframe.html#SNMP%20Overview.html
eddi1984

From: Canada
Posts: 3
Member Since: 02/07/17
posted February 7, 2017 3:05 PM

HI,

the MIB i am trying to load, is defined here: http://www.circitor.fr/Mibs/Files/HP-LASERJET-COMMON-MIB.mib

It imports the RFC1155-SMI.mib. That MIB is already loaded. Even if I load a new one and overwrite the old RFC1155-SMI.mib, I still get the same error with "[...] Syntax real"

Thanks.
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 448
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted February 7, 2017 3:16 PM

Thank you for your reply. Are you evaluating the current version or do you already own the product? If you own the product, can you please send your product key and the version you are using to my email, jamie.powell@dart.com?

Thank you,
Jamie
eddi1984

From: Canada
Posts: 3
Member Since: 02/07/17
posted February 7, 2017 3:18 PM

I am evaluating, and so far I have no good reason to use it, since I cannot readout the SNMP values from a standard HP network printer.

In order to evaluate the product better, the import of the file should work.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted February 7, 2017 5:20 PM

Hello,

Thank you for providing the MIB file. It is malformed; "REAL" is not an RFC-defined SNMP syntax, nor is it imported from any dependency. It is an ASN.1 standard (which is likely why the MIB author used it, but only these ASN.1 standards are permitted for SNMP: https://tools.ietf.org/html/rfc1155#section-3.2.1 ), but REAL must be decomposed to an SNMP primitive type, per RFC1212 section 5.1.1:

https://tools.ietf.org/html/rfc1212#section-5.1.1

An non-tabular object with a complex syntax, such as REAL
or EXTERNAL, must be decomposed, usually into an OCTET
STRING (if sensible).

We'd recommend contacting the MIB author for a corrected/valid MIB. If that is not an option, you could try defining the REAL syntax in your own MIB, or correcting the original MIB as needed. You can alternatively request the values by OID directly (foregoing use of the MIB).
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted February 7, 2017 5:35 PM

For example, to edit the original MIB, if the HP Agent exposes those values as OCTET STRING, you replace each "SYNTAX REAL" with "SYNTAX OCTET STRING".
Reply | General Questions Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX