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