LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2011, 02:46 AM   #1
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Rep: Reputation: 0
How to generate template code for PRIVATE MIB using mib2c....


My objective is to add a a private MIB file...and perform operation snmpset and snmpget



1) I install net-snmp-5.3.3
./configure --with-perl-modules
make
make install
2)I copied MIB file to /usr/share /snmp/mibs


Now which step i have to take ???
i search that CREATE A TEMPLATE CODE of MIB file in .C and .H file

For That i use tool mib2c

i just try
mib2c -c mib2c.scalar.conf ucdDemoPublic

---> it gives output
outputting to ucdDemoPublic.c and ucdDemoPublic.h ...
depth: 1
Number of Lines Created:
2 ucdDemoPublic.c
1 ucdDemoPublic.h
3 total
Done.

but the file content is blank....its not generating template code....



PLEASE GUIDE ME WHAT IS THE FURTHER STEP FOR ADDING MY PRIVATE MIB FILE....

THANK IN ADVANCE..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPL code vs my private source code???? DennisC31 Linux - General 7 03-08-2011 10:24 AM
generate Qt code with pyuic4 threaderslash Programming 7 11-05-2009 02:51 AM
Is there a way to generate public and private keys with PHP? abefroman Programming 4 10-13-2009 06:19 PM
porting code to gcc ..template code problems aayudh Programming 1 01-17-2009 03:40 PM
Compilation problem in c++ template code :( lali.p Programming 2 10-13-2008 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration