Hello,
I hope I am sending this to the write mailing list, but the current version
of the mib2c-update man page has a typo in it, where 'mib2c-updaterc' is
spelled 'mib2c-udpaterc'.
Thanks,
--
Sincerely,
Kole Swesey
*Iowa State University | *Computer Science
*Information Assurance Student
current
DESCRIPTION "Column
Description"
::= { ActiveLogicalPositionEntry 2 }
When running Mib2c it generates the following definition:
#define ALPROWSTATUS 2
{AL
ge.net
Subject: RE: Installing net-snmp-5.7.3 and mib2c on CentOS
Might have narrowed down the issue. Seems like my make install failed for the
perl module, running the perl install manually and did a make test got the
output:
Can't load '../blib/arch/auto/NetSNMP/default_store/default_st
...@gmail.com]
Sent: Wednesday, April 11, 2018 4:25 PM
To: Kalenscher, Dan (US Person) <dkale...@harris.com>
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Installing net-snmp-5.7.3 and mib2c on CentOS
On Wed, Apr 11, 2018 at 3:07 PM, Kalenscher, Dan
<dkale...@harris.com<mailto:dkale..
On Wed, Apr 11, 2018 at 3:07 PM, Kalenscher, Dan <dkale...@harris.com>
wrote:
> I am working on a server with CentOS 7 and I am building net-snmp agents
> with custom MIBs and therefore need mib2c. The yum repos with my CentOS
> build only have:
>
>
> yum list net
I know there are a number of threads detailing installation instructions, but I
cannot seem to find a definitive answer to my issue here.
I am working on a server with CentOS 7 and I am building net-snmp agents with
custom MIBs and therefore need mib2c. The yum repos with my CentOS build only
Hi
There are various SET macros like MODE_SET_RESERVE1,
MODE_SET_RESERVE2,MODE_SET_UNDO in my generated file .
I have implemented only MODE_SET_COMMIT for setinng values . What is use of
others??. Are they helpful to set values permanently.??
Thanks in advance.
Hello,
I ran: mib2c -c mib2c.mfd.conf ifTable
I think (not sure) that the file ifTable.h has an error:
...
config_add_mib(IF-MIB)
config_require(IF-MIB/ifTable/ifTable_interface)
config_require(IF-MIB/ifTable/ifTable_data_access)
config_require(IF-MIB/ifTable/ifTable_data_get)
config_require
Hi,
I am going to create mib tables the are populated from a database.
Would the iterate config style be the best fitted to use from mib2c?
Thanks!
Mattias
--
Avis de confidentialité
Les informations contenues dans le présent message et dans toute pièce qui
lui est jointe sont
Hi
I am working on net-snmp since past few days. I want lldpLocChassisId from
Q-BRIDGE-MIB.
I have added the mib and able to translate the OIDs.
Now I want to do get.
I did mib2c -c mib2c.scalar.conf lldpdLocalSystemData.
Janki Chhatbar
M.Tech (Embedded Systems)
Nirma University
(+91
Hi
I am working on net-snmp since past few days. I want lldpLocChassisId from
Q-BRIDGE-MIB.
I have added the mib and able to translate the OIDs.
Now I want to do get.
I did mib2c -c mib2c.scalar.conf lldpdLocalSystemData. lldpLocSystemData.c
and lldpLocSystemData.h files are generated
Hi Janki
Did MIB2C also create any files for you that ended with the words: …_data_get.c
or …_data_access.c ?
I ask because when I ran MIB2C it generated these files to give me an
opportunity to write functions that would be called when the SNMP agent wanted
to fetch a value to return
Could someone with the knowledge please reply?
Thanks!
On 20 October 2014 17:35, Ali Azar azaad2...@gmail.com wrote:
I have a mib file which has many tables.
I have used mib2c to generate code for each of the tables separately in
the following fashion
mib2c -c someconfigFile tablename1
I have a mib file which has many tables.
I have used mib2c to generate code for each of the tables separately in the
following fashion
mib2c -c someconfigFile tablename1
mib2c -c someconfigFile tablename2
mib2c -c someconfigFile tablename3
... etc
I am not aware if there is a way that I could
Hi Kenneth,
I could do both snmpget and snmpset .
Thanks for your help
Pranesh
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with
else ?
Pranesh
On Thu, Sep 18, 2014 at 11:48 AM, Pranesh Kulkarni pranes...@gmail.com
wrote:
Hi All,
I used mib2c compiler for generating mfd option for ifTable
I am not getting the values for snmpwalk
#snmpwalk -v 2c -c public localhost ifTable
IF-MIB::ifTable = No Such Object available
Hi All,
I used mib2c compiler for generating mfd option for ifTable
I am not getting the values for snmpwalk
#snmpwalk -v 2c -c public localhost ifTable
IF-MIB::ifTable = No Such Object available on this agent at this OID
I have correctly configured config file.
running the master agent
Hello,
mib2c throwing compilation error , when i compile with
--with-mib-module=mibII/interfaces,
we have our own mibII/XYZinterfaces.c module, which i wanted to include
with other mib modules.
May i know how to remove 'if-mib/data_access/interface' module and add
mibII/interface mib module. I
We've recently used mib2c to create a subagent for another open source
project (hostapd). We'd like to give that subagent to the other
project but can't find a clear statement of license for the mib2c
output. Can anyone on this list provide an authoritative statement
about what license we need
Hi,
when I enter
# mib2c -c mib2c.perl.conf myOID
node code is generated, but the part of the scalars is missing. tables are ok,
but no scalars are defined. Not in he oidfunc hash nor in the skel.pl output.
It looks as is the scalars are never read into the $scalar variable. Is this a
bug
Am Montag, 6. Januar 2014, 18:15:50 schrieb Michael Schwartzkopff:
Hi,
when I enter
# mib2c -c mib2c.perl.conf myOID
node code is generated, but the part of the scalars is missing. tables are
ok, but no scalars are defined. Not in he oidfunc hash nor in the skel.pl
output.
It looks
Hello,
I'm using net-snmp v5.7.2 and the mib2c tool.
When I'm trying to set and created values for table I defined, I got error
that the set operation had failed.
After investigation I found out that in each table, which had been defined I
see in the xxxTable_interface.c inside
Hi David,
Thanks for your email. Unfortunately the result was the same as before. But I
found a simple way to avoid it. Just run plain vanilla mib2c w/o -c ... and
it produces just 2 files. I then insert my code into .c file.
Thanks a lot again,
lg
From
...@yahoo.com]
Sent: Tuesday, May 14, 2013 6:46 PM
To: net-snmp-users@lists.sourceforge.net
Subject: mib2c
Hi,
I am new to Net-SNMP so please excuse me is the question is somewhat simple.
I am trying to add the ENTITY MIB code to the agent. I have no problems with
the scalars, but here is what
):
env MIBS=”+ENTITY-MIB” mib2c –c mib2c.mfd.conf
entAliasMappingTable
A bunch of .c and .h is generated and I copy them into
…/agent/mibgroup dir.
Run ./configure –with-mib-modules=entAliasMappingTable
And get an error:
Mib module “entAliasMappingTable” requires module
“ENTITY-MIB
Thanks Dave,
You made my day :-) static will do just fine.
Regards,
Nuno Magalhães.
On 06-01-2013 18:47, Dave Shield wrote:
On 5 January 2013 18:10, Nuno Magalhães nuno.magalh...@inov.pt wrote:
Here it goes.
Thanks for that.
In windows embedded code full compilation it doesn't happen.
In
On 5 January 2013 18:10, Nuno Magalhães nuno.magalh...@inov.pt wrote:
Here it goes.
Thanks for that.
In windows embedded code full compilation it doesn't happen.
In linux debian dlmod (obu.so) I must declared it inline to proc_status not
return always zero.
I'm not currently set up for
escreveu:
On 4 January 2013 19:34, Nuno Magalhães nuno.magalh...@inov.pt wrote:
What's the configuration I should use, with the mib2c tool, to access
global functions.
For example for invoking unix shell commands with popen or system and
retrieving a value.
There's no special configuration
On 5 January 2013 09:05, Nuno Magalhães nuno.magalh...@inov.pt wrote:
But why must it be declared as inline?
Why must what be declared inline?
What has that got to do with using global functions/variables?
Is there any limitation in global variables and function calls?
Otherwise the global
Hi Dave,
It seems that normal global functions are not called since I put snmp
logs all over the global function and invoke it in the function handler
and nothing gets logged.
If I use the 'inline' keywork in the global function definition it gets
logged. As you're certainly more experienced
On 5 January 2013 12:14, Nuno Magalhães nuno.magalh...@inov.pt wrote:
It seems that normal global functions are not called since I put snmp logs
all over the global function and invoke it in the function handler and
nothing gets logged.
If I use the 'inline' keywork in the global function
Hi,
What's the configuration I should use, with the mib2c tool, to access
global functions.
For example for invoking unix shell commands with popen or system and
retrieving a value.
Can someone point me sample code.
Thanks,
Nuno Magalhães
On 4 January 2013 19:34, Nuno Magalhães nuno.magalh...@inov.pt wrote:
What's the configuration I should use, with the mib2c tool, to access
global functions.
For example for invoking unix shell commands with popen or system and
retrieving a value.
There's no special configuration required
Hi.
I have added a new table with read-write elements into my MIB and mib2c
reports the following errors :
$ env MIBS=+./MY-MIB.mib mib2c -c mib2c.mfd.conf myTable
...
...
writing to defaults/table-myTable.m2d
Starting MFD code generation...
writing to myTable.h
| +- Processing table myTable
On 18 May 2012 14:57, Michael Dorin bsddo...@gmail.com wrote:
My question should have been more specific..the Table function is
invoked when a get request comes in...
and UPSALARMID is built...but it never comes back for the remaining
columns.(At least that is how it seems to me)...
I
Dave,
Thanks for your reply. I must admit I did find the bug...and should
have posted it..but
was a bit ashamed since I had been doing the nasty habit of ignoring warnings!
My variables table need something bigger than variable4...once I
changed it to variable7 and REGISTER_MIBS in the
init
After Creating MIB2C where i modifed the logic of c file pls help me
for simple example with print snmpwalk with hostname display
--
Thanks Regards,
Murugayen M
--
Live Security Virtual Conference
Exclusive live event
My question should have been more specific..the Table function is
invoked when a get request comes in...
and UPSALARMID is built...but it never comes back for the remaining
columns.(At least that is how it seems
to me)...I thought it would come back and ask for UPSALARMDESCR...but
it does not
I am trying to make a subagent for the UPS-MIB.
I generate the code with mib2c -c mib2c.conf upsMIB
I select 1) ucd-snmp style code
I get upsMIB.c
I am trying to fill in var_upsAlarmTable, but am running into lots of
little errors. Does anybody havae
any example code I might be able to review
I have separate program that will be serializing a struct and sending it to
my mib2c generated agent. Since my structure is already in the MIB, I would
think I could generate my C Struct for my separate program. Is there a best
practice for this or is there a way you would recommend
iftable_data_access.c file, specifically load container function
Zlatan S.
On Apr 18, 2012, at 7:04 PM, James Gosnell jamesgosn...@gmail.com wrote:
I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings.
Should i have a `int ifTable_cache_load(netsnmp_container * container
I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings.
Should i have a `int ifTable_cache_load(netsnmp_container * container)` in
my code? It's not there. I'm following instructions from:
http://www.net-snmp.org/wiki/index.php/MFD:ifTable:Data_Access. I'm trying
to make the edits
that tutorial is out of date. you only have to modify iftable_data_access.c
file, specifically load container function
Zlatan S.
On Apr 18, 2012, at 7:04 PM, James Gosnell jamesgosn...@gmail.com wrote:
I ran `mib2c -c mib2c.mfd.conf ifTable` and used the default settings. Should
i have
Hello,
I am running CentOS release 6.1 linux distribution. How do I install and
execute mib2c on my distro?
Thanks,
Z
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try
running CentOS release 6.1 linux distribution. How do I install and
execute mib2c on my distro?
Thanks,
Z
--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try
On 3 April 2012 15:38, Jaques Arantes jaques.aran...@gmail.com wrote:
Isn't there any nestnmp or snmp package you can install from standard
repositories?
Have you tried `yum net-snmp`?
http://www.it-slav.net/blogs/2008/11/11/install-and-configure-snmp-on-rhel-or-centos/
Note that mib2c
}
generates file with containing only the code :
/*
* Note: this file originally auto-generated by mib2c using
* $
*/
#include net-snmp/net-snmp-config.h
#include net-snmp/net-snmp-includes.h
#include net-snmp/agent/net-snmp-agent-includes.h
#include mpbcRMHOSU.h
/** Initializes the mpbcRMHOSU
Hi,
I'm a new Net-SNMP user, learning how to code my first MIB subagent for
a pre-written MIB file. I gather, from searching these archives, that
mib2c is intended to be run on a single MIB node with a single type of
data, so if I had the following MIB:
myMIB
myMIB.scalar
myMIB.table
I would
) the MIB modules into
the same binary.
Presumably I somehow need to run mib2c on the root node,
myMIB, to generate code that registers and delegates calls to the scalar
and table nodes. And what about the subagent wrapper that talks to the
master?
It's probably not worth
Hi,
I am trying to use mib2c-update tool for updating scalar objects. Even though
.orig and .new generate files are different, but mib2c-update is not providing
the diff for these ?
Any known issues related to this ? If not, any idea on how to use mib2c-update
on scalars.
-Dheeraj
Dear Sir/Madam,
In accessory, I send you my code from mib2c. but this function doesn't work,
the picture is the error message. It says no v2 trapOID varbind provided,
but in function trapOID has provided.If you have time, I hope you can give me
some advice. Thank you very much.
I have too
Any feedback on this? I am also interested in such a script.
Thanks,
Simon
On Wed, Nov 9, 2011 at 1:11 PM, Suresh kumar skjaiswa...@hotmail.comwrote:
Hello all
i want convert entire MIB object to c/h file using mib2c at once
can any once do this before please let me know .
if not what i
On 9 November 2011 18:11, Suresh kumar skjaiswa...@hotmail.com wrote:
i want convert entire MIB object to c/h file using mib2c at once
What do you mean by converting the MIB object?
What sort of MIB object(s) do you have in mind.
If these are scalar objects, then try
mib2c -c
wrote:
i want convert entire MIB object to c/h file using mib2c at once
What do you mean by converting the MIB object?
What sort of MIB object(s) do you have in mind.
If these are scalar objects, then try
mib2c -c mib2c.scalar.conf MY-MIB::myTopLevelObject
If this is a MIB table
that.
If the MIB contains tables (or a mixture of tables and scalars), then
you should
look at implementing one table at a time.
You can always combine the implementation code for related tables into a
single file manually, but the mib2c templates are typically designed to work
with just one table
Hello all
i want convert entire MIB object to c/h file using mib2c at once
can any once do this before please let me know .
if not what i need change in mib2c script.
Thanks in advance.
~suresh
/efface/net-snmp-5.7.1/agent'
make: *** [subdirs] Error 1
What am I missing?
Thanks,
Simon
On Thu, Nov 3, 2011 at 11:34 AM, Dave Shield
d.t.shi...@liverpool.ac.ukwrote:
On 3 November 2011 15:21, Simon Chamlian simon.chaml...@gmail.com
wrote:
What does mib2c do?
It produces
On 31 October 2011 18:51, Simon Chamlian simon.chaml...@gmail.com wrote:
I have an embedded board running Linux/net-snmp (TWR54418 from Freescale).
[root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
ERROR: You don't have the SNMP perl module installed.
Why do you need to create the MIB
What does mib2c do?
I can always install it on a host computer and run it. But eventually, I
will need an application that returns values associated to my MIB OIDs.
Is that done by modifying the SNMP agent daemon or I can have a different
application interact with agent?
The tutorial
http
On 3 November 2011 15:21, Simon Chamlian simon.chaml...@gmail.com wrote:
What does mib2c do?
It produces _template_ code for implementing a MIB module.
You would take the generated code file, fill in the gaps, and
compile it into the SNMP agent (either a native agent for the
system you
the C code from the MIB I have.
But when I run it, I get the following error:
[root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download
, MIB for Dummies. It
suggests to create the C code from the MIB I have.
But when I run it, I get the following error:
[root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp
several tutorials, I came accross, MIB for Dummies. It
suggests to create the C code from the MIB I have.
But when I run it, I get the following error:
[root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest
came accross, MIB for Dummies. It
suggests to create the C code from the MIB I have.
But when I run it, I get the following error:
[root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release
Dear net-snmp team
I try to figure out how to obtains the range of a given node...
I want to do smthg like :
@foreach $var scalar@
@if $var.ranges ...
@end@
But don't know how to acces the range, And I can' t mange to find how to
use @foreach $RANGE_START, $RANGE_END range node@ to
@lists.sourceforge.net
net-snmp-users@lists.sourceforge.net
Sent: Thursday, September 15, 2011 12:54 AM
Subject: Re: Document for modifying the mib2c generated code
On 15 September 2011 00:24, N. Karthikeyan karthik_96...@yahoo.com wrote:
Could you please let me know whether there is any document
available
On 15 September 2011 00:24, N. Karthikeyan karthik_96...@yahoo.com wrote:
Could you please let me know whether there is any document
available on how to change the mib2c generated code?
Not really.
I started writing a book on this, but it never really came to fruition.
The main problem
Hi Dave,
Could you please let me know whether there is any document
available on how to change the mib2c generated code? I am trying
to implement a table with mib2c.iterate.conf with cache enabled.
Thanks in advance for your help and guidance.
Thanks,
-karthi
Hi,
I am not sure of the document. While I was implemented this, I did the
following step and it worked good and still working.
1. TABLE_data_access.c is only file I changed, TABLE__container_load() is
only function I changed
2. Code generated will contain a while (1) loop in
On 2 September 2011 19:13, N. Karthikeyan karthik_96...@yahoo.com wrote:
I created an executable which contains the mib2c generated code.
When I run that executable, it reports the following error.
./test_snmpd: error while loading shared libraries: libssp.so.0: cannot open
shared object
Sir! i studied again but unable to fix the error, still getting the same
error even added 0 at the end of object.
Sir! both snmpget and snmpwalk not working for TEST-ENTERPRISE-MIB ...
kindly guide me
On Mon, Sep 5, 2011 at 12:17 PM, devel tech devel.te...@gmail.com wrote:
Thanks sir!
Thanks sir!
Mistakenly i saved MIB by name TEST-MIB.txt but inside the MIB i wrote
TEST-ENTERPRISE-MIB,
and
I read about scalar instance subidentifier from
http://www.webnms.com/cagent/help/technology_used/c_snmp_overview.html; and
i find out the mistake that i was doing..
I was missing 0 at
You need to use mib2c.scalar.conf as config file.
http://www.net-snmp.org/docs/man/mib2c.html
-Dheeraj
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even
On 2 September 2011 08:56, Dheeraj Gautam dgau...@juniper.net wrote:
You need to use mib2c.scalar.conf as config file.
That will generate template code to implement the scalar objects.
For a template of routines to generate the notifications, use mib2c.notify.conf
There are a number of possible
Hi Dave/Dheeraj,
Thanks for the info.
I created an executable which contains the mib2c generated code.
When I run that executable, it reports the following error.
./test_snmpd: error while loading shared libraries: libssp.so.0: cannot open
shared object file: No such file or directory
Hi All,
I am trying to generate a code for the CISCO-LICENSE-MGMT-MIB.
This MIB has scalars, tables and notifications defined in it. Could you
please let me know the config_file needs to be used with mib2c to
generate a code for all of the objects?
http://tools.cisco.com/Support/SNMP/do
On 30 August 2011 05:56, devel tech devel.te...@gmail.com wrote:
i performed following snmptranslate steps and got responses.
snmptranslate -IR TEST-MIB::teststr
Cannot find module (TEST-MIB): At line 0 in (none)
That is not surprising - the name of the MIB is
TEST-ENTERPRISE-MIBnot
is
the zero-length string.
::= { testsystem 1 }
END
-
then i run command mib2c -c mib2c.scalar.conf teststr in terminal and got
teststr.c and teststr.h files that i move to agent/mibgroups/teststr
directory.
i put following code in my teststr.c file
On 25 August 2011 09:53, devel tech devel.te...@gmail.com wrote:
i compiled [my MIB] using mib2c command and it generated two files .c and h
of
object Namesys.
mib2c -c mib2c.scalar.conf Namesys
it was okay, then i run make command and i got following errors
test
Hi, I have a mib file DatronIridium-mib.txt and I put the mib file in
/usr/local/share/snmp/mibs directory.
But when I use MIBS=+DatronIridium-mib mib2c -c mib2c.scalar.conf
datronAntenna,
I have got error Cannot find module (DatronIridium-mib): At line 0 in
(none)
Please see my mib file
I finally got snmp perl installed by changing a bunch of Makefiles.
But when I use mib2c to create template files from a MIB file, I got the
following error:
#env MIBS=+RTIRIDIUM-MIB mib2c -c mib2c.scalar.conf iridium
writing to iridium.h
writing to iridium.c
running indent on iridium.c
indent
Hi,
I ran mib2c on the nsDemodEventsTable (see below) and I got the
following structure
struct nsDemodEventsTable_entry {
/*
* Index values
*/
longnsDemodEventsUtcSeconds;
/*
* Column values
*/
long
as length
and not the maximum length given in the MIB
'Cos this value isn't easily accessible to mib2c
Dave
--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security
Hello. I would appreciate some help getting started with building a subagent
using mib2c and MFD. I'm trying to build a simple example to handle a table. (I
did a scalar first, and that seemed worked fine, so this is the next step...)
I have net-snmp version 5.5.
I do:
mib2c -c
On 18 February 2011 11:02, Alec Edgington
alec.edging...@thales-esecurity.com wrote:
Hello. I would appreciate some help getting started with building a subagent
using mib2c and MFD.
I have little or no expertise with the MfD framework,
but there is one glaring error in your example:
snmpget
I have little or no expertise with the MfD framework,
but there is one glaring error in your example:
snmpget -v1 -c public localhost nsIETFWGChair1
A GET request must always include the instance subidentifiers
(i.e. the index to the table). A GET request on the bare MIB object
name
On 18 February 2011 16:11, Alec Edgington
alec.edging...@thales-esecurity.com wrote:
snmpget -v1 -c public localhost nsIETFWGChair1.0
which gave:
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1.
That
I have problem to generate the code using mib2c:
snmptranslate 1.3.6.1.4.1.388.11.2.2.11.10
SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable
sym...@debian-build01:~/Sanjay$ mib2c -c mib2c.iterate.conf
SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable
*you didn't give me a valid OID to start with at /usr
On 11 January 2011 13:31, sanjay kumar fromsan...@gmail.com wrote:
I have problem to generate the code using mib2c:
snmptranslate 1.3.6.1.4.1.388.11.2.2.11.10
SYMBOL-CC-WS2000-MIB::auditLoggingCfgTable
sym...@debian-build01:~/Sanjay$ mib2c -c mib2c.iterate.conf
SYMBOL-CC-WS2000-MIB
Hi All,
I want to generate c implementation file and header file for the MIB-NODE
file containing both scalars and table.
I have generated c file and header file for scalar using mib2c.scalar.conf
and similarly for table using mib2c.table_data.conf, but I want to generate
c file and header file
generate scalar and a table source file, club all together while compiling
On Mon, Dec 13, 2010 at 4:54 PM, MAS . mass3m...@gmail.com wrote:
Hi All,
I want to generate c implementation file and header file for the MIB-NODE
file containing both scalars and table.
I have generated c file
Very simple,
using CLI, run mib2c -c YOUR-MIB's-NODE-NAME
On Mon, Dec 13, 2010 at 4:54 PM, MAS . mass3m...@gmail.com wrote:
Hi All,
I want to generate c implementation file and header file for the MIB-NODE
file containing both scalars and table.
I have generated c file and header file
On 13 December 2010 11:24, MAS . mass3m...@gmail.com wrote:
I want to generate c implementation file and header file for the MIB-NODE
file containing both scalars and table.
Please see the FAQ entry
How can I have mib2c generate code for both scalars and tables?
This states
Hi I used the mib2c int template to convert a mib with a single
read-write object successfully , however now I face a new issue the
value that I need to snmpset is `date +%s` (Linux APOC) which I assume
will not fit into an integer field , I assume I will need to change the
field type
SNMP_ERR_WRONGVALUE;
}
which yields an error for each of the two correct values 54 oder 65. The
'||' should be a ''.
If somebody could give me a hint where this has to be corrected in the mib2c
compiler I could submit a patch
thanks
Boris
On 11 October 2010 13:51, Boris Zweimueller boris.zweimuel...@gmail.com wrote:
the generated c code for this object ist:
/** Check the ranges of the passed value for legality */
if ( !(*val = 54 *val = 54) || !(*val = 65 *val = 65) )
{
return SNMP_ERR_WRONGVALUE;
}
perfect, thank you!
Boris
2010/10/11 Dave Shield d.t.shi...@liverpool.ac.uk
On 11 October 2010 13:51, Boris Zweimueller boris.zweimuel...@gmail.com
wrote:
the generated c code for this object ist:
/** Check the ranges of the passed value for legality */
if ( !(*val = 54 *val
...@emc.com anup.shan...@emc.com wrote:
From: anup.shan...@emc.com anup.shan...@emc.com
Subject: RE: mib2c does not like object syntax IpAddress
To: kraghuna2...@yahoo.com, net-snmp-users@lists.sourceforge.net
Cc: net-snmp-cod...@lists.sourceforge.net
Date: Thursday, September 23, 2010, 12:42 AM
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
Try using iterate / table.conf file in mib2c , this works..
-Original Message-
From: kavita raghunathan [mailto:kraghuna2...@yahoo.com]
Sent: Thursday, September 23, 2010 2:07 AM
To: net-snmp-users@lists.sourceforge.net
Cc: net-snmp-cod...@lists.sourceforge.net
Subject: mib2c does
1 - 100 of 455 matches
Mail list logo