RE: mib2c does not like object syntax "IpAddress"

kavita raghunathan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Ok. I cant change templates so easily, but if that's the only way out, I would. 

Can you tell me why changing the configuration file will enable "in_addr_t" to be found ? I even tried editing net_snmp_config.h to HAVE_INADDR_T as 0 but still did not work.

Kavita

--- On Thu, 9/23/10, [email protected] <[email protected]> wrote:

> From: [email protected] <[email protected]>
> Subject: RE: mib2c does not like object syntax "IpAddress"
> To: [email protected], [email protected]
> Cc: [email protected]
> Date: Thursday, September 23, 2010, 12:42 AM
> Try using iterate / table.conf file
> in mib2c , this works..
> 
> -----Original Message-----
> From: kavita raghunathan [mailto:[email protected]]
> 
> Sent: Thursday, September 23, 2010 2:07 AM
> To: [email protected]
> Cc: [email protected]
> Subject: mib2c does not like object syntax "IpAddress"
> 
> Hello, even though I import IpAddress, I get an error while
> generating c files that looks like this:
> 
> writing to defaults/table-sfOWBFarEndTable.m2d
> Starting MFD code generation...
> writing to sfOWBFarEndTable.h
> | +-> Processing table sfOWBFarEndTable
> writing to defaults/node-sfOWBifIndexNearEnd.m2d
> writing to defaults/node-sfOWBFarEndSerialNumber.m2d
> writing to defaults/node-sfOWBFarEndLocationField.m2d
> writing to defaults/node-sfOWBFarEndIPInBand.m2d
> writing to defaults/node-sfOWBFarEndIPoutOfBand.m2d
> writing to defaults/node-sfOWBFarEndMACOutOfBand.m2d
> writing to defaults/node-sfOWBFarEndMACInBand.m2d
> writing to defaults/node-sfOWBFarEndNumber.m2d
> writing to sfOWBFarEndTable.c
> writing to sfOWBFarEndTable_data_get.h
> writing to sfOWBFarEndTable_data_get.c
> | |   +-> Processing nonindex sfOWBifIndexNearEnd
> | |   +-> Processing nonindex
> sfOWBFarEndSerialNumber
> | |   +-> Processing nonindex
> sfOWBFarEndLocationField
> | |   +-> Processing nonindex sfOWBFarEndIPInBand
> 
> ERROR: unknown node.decl: in_addr_t
> 
> Imports line in MIB looks like this:
>  MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
>     Counter32, Integer32, Gauge32, Counter64, IpAddress
>         FROM SNMPv2-SMI
> 
> and the object looks like this:
> iPoutofband OBJECT-TYPE
>     SYNTAX      IpAddress
>     MAX-ACCESS  read-only
>     STATUS      current
>     DESCRIPTION
>         "Far End IP out of band"
>   ::= { iPoutofbandtable 6 }
> 
> If I change the type of the object to INTEGER, it works.
> So, I have proved that mib2c does not like IpAddress. But, I
> have to use IP address for this object type, because it is
> an Ip address. Please help!
> 
> Kavita
> 
> 
> 
>       
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment
> and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> 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
> 
> 


      

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
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.