Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have never been to any technical site that shows concern just to anybody with problems...I look forward to also share in the future..."

Geography

Where in the world do Tek-Tips members come from?

netsnmp agent: how to get value for any OID from my agent extention

mrkozmic (Programmer)
25 May 11 10:20
Hi,
I have added a MIB to by agent and wrote som GET/SET operations and traps. I would like to include values for OIDs from other MIBS and attach those to a
trap I'm sending. How do I do that? Do I have to do that in c code or in the MIB definition file?
bnorton916 (Programmer)
31 May 11 11:23
You would define that in the MIB file(OBJECTS clause i think).

Then some c-coding would probably have to be done, not sure.

Bill
mrkozmic (Programmer)
1 Jun 11 2:07
Thanks bnorton916, but that's the c coding part I need more info on. At least which API part should I look at.
bnorton916 (Programmer)
3 Jun 11 21:35
It all depends on what agent development kit you are using?
develtech (TechnicalUser)
21 Aug 11 23:37
Hi!

I need some guidance to write new MIB or how to customize existing MIBs.

I want to change IP-MIB , i want to change it ipAddress portion  from read to read-write access.

plz guide me in this concern.
Thanks
 
bnorton916 (Programmer)
23 Aug 11 13:29
I believe that would cause a revision of the IP-MIB something that is not likely to happen.

Writing a new MIB is not trivial.

What is this all for?
develtech (TechnicalUser)
24 Aug 11 0:01
Thanks for reply sir!

Actually i want to change some Parameters/Object via snmp interface.
like we change sysContact or sysName  of System group via SNMP set command, but we cant IP because Access is restricted to read only for IP and read-write for Some System group objects.


 
bnorton916 (Programmer)
25 Aug 11 15:47
Need to change the security settings on that agent.

Bill
develtech (TechnicalUser)
6 Sep 11 1:56
Sir!
As i am beginners, so i started a easy task,and now i am stuck at one point and could not find out the solution.

i created a private MIB with an object(purpose of it to just Display String when snmpget invoked in terminal).

i generated .c and .h files using mib2c and mib2c.scalar.conf. i compiled source code of NET-snmp with new MIB and compiled it successfully!

snmptranslate command wokrs fine but when i run snmoget command, i got object is unknown, can you guide me in this concern plz.

Thanks  

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close