Trap OID has a 0 before it?

This is a discussion on Trap OID has a 0 before it? within the SNMP Users forums, part of the Networking and Network Related category; Hi, I need a clarification on the snmptranslate command. When I try the following the command on a sample MIB ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-03-2007
Edison C.
 
Posts: n/a
Default Trap OID has a 0 before it?

Hi,
I need a clarification on the snmptranslate command.

When I try the following the command on a sample MIB file(attached
below)
snmptranslate -M+. -mNSMAIL-MIB -Tp -IR netscape
I got the following output -
+--netscape(1450)
|
+--netscape#(0)
| |
| +--nsMailServerStart(5002)
|
+--nsmail(5)
|
+--nsmailEntityInfo(1)
| |
| +-- -R-- String nsmailEntityDescr(1)
| | Textual Convention: DisplayString

Could some tell me why does the netscape#(0) node gets added
automatically? And is there any way to disable it?

Thanks
Ed

The MIB is attached is here -
NSMAIL-MIB DEFINITIONS ::= BEGIN
netscape OBJECT IDENTIFIER ::= { enterprises 1450 }
nsmail MODULE-IDENTITY
::= { netscape 5 }
nsmailEntityInfo OBJECT IDENTIFIER ::= { nsmail 1 }
nsmailEntityDescr OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
ACCESS read-only
STATUS mandatory
DESCRIPTION "A general textual description
of the Netscape Mail Server."
::= { nsmailEntityInfo 1 }


nsMailServerStart TRAP-TYPE
ENTERPRISE netscape
VARIABLES { nsmailEntityInfo }
DESCRIPTION "This trap is generated whenever
the agent detects the Netscape
Mail Server to have (re)started."
::= 5002
END



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0