Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WMI and SNMP provider setup

50 views
Skip to first unread message

Fernando Marotta

unread,
May 12, 2003, 11:08:11 AM5/12/03
to
Hello to everybody,

I'm a real newbie in the world of WMI, in particular I tried to setup the
WMI SNMP Provider as described by MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/
setting_up_the_wmi_snmp_environment.asp

I'm using a Win2K professional installation.
I downloaded and installed the provider (file: wmisnmp.exe), which seems to
be ok, and also downloaded and installed wmi tools,
then I've created a namespace using the following code (from MSDN):

----------------------------------------------------------------
// Load classes and instances into <\\.\root> namespace

#pragma namespace("\\\\.\\root")

[
AgentAddress( "localhost" ),
AgentReadCommunityName( "public"),
AgentWriteCommunityName( "private"),
AgentRetryCount( 1 ),
AgentRetryTimeout( 500 ),
AgentVarBindsPerPdu( 10 ),
AgentFlowControlWindowSize ( 3 )
]

instance of __Namespace
{
Name = "snmp" ;
};
----------------------------------------------------------------


using the command "mofcomp", which succeded,
then I tried to insert a MIB file I wrote (which is correct, because is used
successfully with more than one mib browser),
but the smi2smir output is the following:

>smi2smir /m 3 /a test.mib

smi2smir : Version 1.50.1085.0000 : MIB definitions compiled from "test.mib"

smi2smir : Syntax Check successful on "test.mib"

smi2smir : Semantic Check successful on "test.mib"

smi2smir : Could not load "test.mib" into the SMIR


can you help me with this, please? where am I wrong?

TIA
cheers

F.


[MS] Tim Chen

unread,
May 12, 2003, 3:34:11 PM5/12/03
to
Do you see root\snmp\smir and root\snmp\localhost namespaces? If they are
there, could you send me your mib file and I will take a look.

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


"Fernando Marotta" <f.ma...@NOSPAM.itsoftware.it> wrote in message
news:u0AvkhJG...@TK2MSFTNGP10.phx.gbl...

Fernando Marotta

unread,
May 13, 2003, 4:01:10 AM5/13/03
to
I think I discovered the problem:

some of my MIB variables (expecially table columns) had names containing
"-",

removing them it works fine (but I think that the "-" character is allowed
by MIB syntax).

thanks a lot.

F.

"[MS] Tim Chen" <tim...@online.microsoft.com> wrote in message
news:<3ebff733$1...@news.microsoft.com>...

[MS] Tim Chen

unread,
May 14, 2003, 4:55:04 PM5/14/03
to
"-" is allowed by MIB syntax but smi2smir does not allow it.

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

"Fernando Marotta" <f.ma...@NOSPAM.itsoftware.it> wrote in message

news:OF65nXS...@TK2MSFTNGP12.phx.gbl...

0 new messages