SNMP'ing

R

resident_eagle

Greetings.

I'm not sure if I have chosen the right group, but I have a few
questions about compiling MIB's on Windows Server 2003 (even 2000 will
do) and using traps for alert notification in MOM 2005. This issue is
not stricty related to MOM (in my humble opinion), but is more
network, WMI and OS oriented. So I think.

I'll try to make a long story short (I doubt though). I am trying to
make the server (w2k3), on which MOM resides, listen and translate
traps that the networking device (configurable via telnet), that is
connected to UPS, sends. I need to compile some vendor MIB's so that
MOM 2005 can collect events using WMI SNMP Provider.

I've been trying some trap-listening software out that I've found on
the Net. It's mostly freeware, shareware or free-trial-period
software. Those applications have their own MIB loaders and, even
though they tend to report some warnings and/or errors, they succeed
to compile them. I figure that they have advanced parsing/compiling
capabilities and are able to recover from non-critical errors.

On the other hand, by using SMI2SMIR (w2k) and MIBCC (w2k & w2k3) I
don't get satisfying results. SMI2SMIR adds objects to the namespace
while MIBCC creates a binary file. It seems to me that the main reason
why these programs cannot compile those third-party MIB's is the
dependency. I received five enterprise MIB's which all import
RFC1155-SMI (that is contained within smi.mib), RFC1213-MIB
(mib_ii.mib), RFC-1212 and RFC-1215. They cannot be compiled because
there are syntax errors (where other loaders didn't have problems)
like the following:

<235,Warning>: (line 28, col 3): Unrecognized character in input,
ignored. "(null)" (SMI2SMIR output)
SYNTAX ERROR on line: 28, Last token read is "man" (MIBCC output)

and the line reads:

ups_man OBJECT IDENTIFIER ::= { enterprises 5491 }.

I'm not familiar with the syntax so there's a possibility that
underscores are not allowed. But I'm almost positive that they knew
the rules when they were writing it. I also received two MIB's named
RFC1628.mib and RFC1628A.mib which contain UPS-MIB definition. They
have the same dependencies and a few more (RFC1316-MIB, SNMPv2-TC and
SNMPv2-SMI), but they pass through SMI2SMIR successfully with a bunch
of warnings. I'm aware that some RFC MIB's are loaded by default and
others have to be included in command line. I don't have RFC's 1212,
1215 and 1316. I've dug the first one out in some reference article,
but it dates from 1991 or something like that. I'm unable to compile
the RFC1155-SMI (smi.mib), too. And that one is crucial.

OK, this story was not short. Maybe I'm thinking totally wrong and
going blindly in wrong direction. I've stopped a few times to ask for
a direction, but only so much help did I receive.

Please, people, help!

Many thanks in advance. Best regards.
 
G

Gary Fose [MSFT]

This might help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/wmisdk/wmi/snmp_provider.asp

Thanks,
Gary

--------------------
'--'From: (e-mail address removed) (resident_eagle)
'--'Newsgroups: microsoft.public.wbem,microsoft.public.win2000.networking
'--'Subject: SNMP'ing
'--'Date: 30 Dec 2004 05:02:55 -0800
'--'Organization: http://groups.google.com
'--'Lines: 58
'--'Message-ID: <[email protected]>
'--'NNTP-Posting-Host: 195.29.91.51
'--'Content-Type: text/plain; charset=ISO-8859-1
'--'Content-Transfer-Encoding: 8bit
'--'X-Trace: posting.google.com 1104411775 1558 127.0.0.1 (30 Dec 2004 13:02:55 GMT)
'--'X-Complaints-To: (e-mail address removed)
'--'NNTP-Posting-Date: Thu, 30 Dec 2004 13:02:55 +0000 (UTC)
'--'Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!
newsfeed1.ip.tiscali.net!news.maxwell.syr.edu!postnews.google.com!not-for-mail
'--'Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.networking:76831
microsoft.public.wbem:804
'--'X-Tomcat-NG: microsoft.public.win2000.networking
'--'
'--'Greetings.
'--'
'--'I'm not sure if I have chosen the right group, but I have a few
'--'questions about compiling MIB's on Windows Server 2003 (even 2000 will
'--'do) and using traps for alert notification in MOM 2005. This issue is
'--'not stricty related to MOM (in my humble opinion), but is more
'--'network, WMI and OS oriented. So I think.
'--'
'--'I'll try to make a long story short (I doubt though). I am trying to
'--'make the server (w2k3), on which MOM resides, listen and translate
'--'traps that the networking device (configurable via telnet), that is
'--'connected to UPS, sends. I need to compile some vendor MIB's so that
'--'MOM 2005 can collect events using WMI SNMP Provider.
'--'
'--'I've been trying some trap-listening software out that I've found on
'--'the Net. It's mostly freeware, shareware or free-trial-period
'--'software. Those applications have their own MIB loaders and, even
'--'though they tend to report some warnings and/or errors, they succeed
'--'to compile them. I figure that they have advanced parsing/compiling
'--'capabilities and are able to recover from non-critical errors.
'--'
'--'On the other hand, by using SMI2SMIR (w2k) and MIBCC (w2k & w2k3) I
'--'don't get satisfying results. SMI2SMIR adds objects to the namespace
'--'while MIBCC creates a binary file. It seems to me that the main reason
'--'why these programs cannot compile those third-party MIB's is the
'--'dependency. I received five enterprise MIB's which all import
'--'RFC1155-SMI (that is contained within smi.mib), RFC1213-MIB
'--'(mib_ii.mib), RFC-1212 and RFC-1215. They cannot be compiled because
'--'there are syntax errors (where other loaders didn't have problems)
'--'like the following:
'--'
'--'<235,Warning>: (line 28, col 3): Unrecognized character in input,
'--'ignored. "(null)" (SMI2SMIR output)
'--'SYNTAX ERROR on line: 28, Last token read is "man" (MIBCC output)
'--'
'--'and the line reads:
'--'
'--'ups_man OBJECT IDENTIFIER ::= { enterprises 5491 }.
'--'
'--'I'm not familiar with the syntax so there's a possibility that
'--'underscores are not allowed. But I'm almost positive that they knew
'--'the rules when they were writing it. I also received two MIB's named
'--'RFC1628.mib and RFC1628A.mib which contain UPS-MIB definition. They
'--'have the same dependencies and a few more (RFC1316-MIB, SNMPv2-TC and
'--'SNMPv2-SMI), but they pass through SMI2SMIR successfully with a bunch
'--'of warnings. I'm aware that some RFC MIB's are loaded by default and
'--'others have to be included in command line. I don't have RFC's 1212,
'--'1215 and 1316. I've dug the first one out in some reference article,
'--'but it dates from 1991 or something like that. I'm unable to compile
'--'the RFC1155-SMI (smi.mib), too. And that one is crucial.
'--'
'--'OK, this story was not short. Maybe I'm thinking totally wrong and
'--'going blindly in wrong direction. I've stopped a few times to ask for
'--'a direction, but only so much help did I receive.
'--'
'--'Please, people, help!
'--'
'--'Many thanks in advance. Best regards.
'--'


This posting is provided "AS IS" with no warranties, and confers no rights. Use of included
script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best
directed to the newsgroup/thread from which they originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top