an additional number of oid in tutorial: NET-SNMP-TUTORIAL-MIB

Alexander Bubnov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi!

Tutorial: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent.

Registration example from that tutorial:

  void
init_nstAgentSubagentObject(void)
{
  oid nstAgentSubagentObject_oid[] =
  { 1, 3, 6, 1, 4, 1, 8072, 2, 4, 1, 1, 2, 0 };

...
}

notice above an additional number is 0 at the end of oid declaration. Let me
know please why so?

I can see declartion of nstAgentSubagentObject in mib without any additional
numbers:

nstAgentSubagentObject OBJECT-TYPE
  SYNTAX Integer32
  MAX-ACCESS read-write
  STATUS current
  DESCRIPTION
 "This is an object that simply supports a writable integer
  when attached to the agent. The object should be accessible
  when the agentx subagent containing this object is attached.
  See http://www.net-snmp.org/tutorial-5/toolkit/XXX for
  further implementation details."
  DEFVAL { 2 }
  ::= { nstAgentModules 2 }

i.e. {1, 3, 6, 1, 4, 1, 8072, 2, 4, 1, 1, 2} is correct instead of {1, 3, 6,
1, 4, 1, 8072, 2, 4, 1, 1, 2, 0}. Is it right?

Thanks in advance.
-- 
/BR, Alexander

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com

_______________________________________________
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.