LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2014, 08:36 AM   #1
Gongi10
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
net-snmp contextName vs a complex index


Hello,
I have a general net-snmp question. We are implementing a kind of 'generic' MIB, to be used by 'generic' NMSs. The general structure of the MIB is a table of NEs (Network Elements), each has its own unique name, and then a table of MOs (Manageable Objects) of each NE.
We are considering 2 alternatives:

1. The access to the MO table will be carried via a net-snmp contextName determines by the NE's name. i.e. the index of the MO table will only be its ID (MO ID, a integer), while having to create and register to each MOs table a contextName.

2. The access to the MO table will take place via a index which is a bit more complex (NE ID, MO ID, both are integers)

Thanks,
Gonen
 
Old 12-29-2014, 10:21 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Gonen,

Did you have a question?
I'm not a fan of random folks just deciding to re-write underlying environmental structure because they decided it looked like a thing they'd like to do. Oddly enough, the rest of us invariably don't share that feeling, however, if you have a question, we do answer those.
 
Old 12-30-2014, 03:10 AM   #3
Gongi10
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Dijetlo,

I can't remember a rude response like yours,frankly.
Yes, I have a question, and it was stated very clear, the need to choose between 2 coding options, why don't you just anser it if you can contribute ?

TRhanks,
Gonen
 
Old 12-30-2014, 07:00 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I can't remember a rude response like yours,frankly
That actually has more to do with your memory than my response.

Quote:
...why don't you just answer it if you can contribute ?
OK.
Don't waste the time.

The fact that MIBs are named in a non-intuitive manner is really only a problem for noobs who haven't figured out that you don't have to remember the MIB addresses, you can load them in a spread sheet and reference them that way.
Honestly Gonen. If all you're doing is renaming MIBs, why bother?
 
Old 12-31-2014, 12:16 AM   #5
Gongi10
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
I been writing SW for almost 30 years, at least some of it around snmp.
The new stuff for me here is using contextName, I'm implementing this specific MIB using mib2c, and it seems that things tend to be complicated when a table is accessed using a contextName.
Therefore I'm considering if it worth using a bit more complex index to the table rather than a contextName.

Can you help with that?

Thanks,
Gonen
 
Old 12-31-2014, 04:56 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Probably, since I've worked with networks, servers and SNMP as long as you've been developing software.
However, my suggestion remains the same.
I think the point your missing here, Gong, probably because you are a developer and not an engineer, is in the world of the engineer, most people don't ever see the MIB name, much less the table designation for the MIB. What they see is a little red ball lighting up on their monitor beside a server name. I have to figure out exactly why, so I have to know the OID/MIB designation, but in a staff of a hundred plus folks, there aren't 10 who even realize that what makes the red ball light up is an snmp trap popping on the server.
What I'm saying is you can do it, it's certainly not hard to come up with a naming convention less counter-intuitive than the one UC Davis picked but to what end? A LOT of software relies on the SNMP OID/MIB structure remaining relatively unchanged.
Besides, the naming convention is not the primary problem with SNMP ( for my money, if you want to fix SNMP, figure out a way around the connection less nature of the SNMP trap alert)
 
  


Reply



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
[NET-SNMP] OID parameter to use for SNMP Trap - Overall CPU utilisation sy85 Linux - Software 4 02-14-2015 12:08 AM
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 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