12-19-2006 09:54 AM
Has anyone successfully setup and run SNMP queries using Windows XP WMI SNMP?
I have attempted it but with no luck.
Here are the steps I have performed;
1) Added SNMP Protocol and WMI SNMP provider via Control Panel
2) Created an SNMP Namespace in the WMI repository. also created the 2 supporting registry entries - "File Suffixes" and "File Path"
3) Downloaded a single, standalone MIB - SNMPv2-SMI
4) Tried comipiling the mib using SMI2SMIR.EXE
Evertime I try to compile using SM2SMIR, it fails as follows;
C:\mib>smi2smir /g snmpv2-smi.txt > snmpv2-smi.mof
smi2smir : Version <UnknownVersion> : MIB definitions compiled from "snmpv2-smi.
txt"
smi2smir : Syntax Check successful on "snmpv2-smi.txt"
<1085,Warning>: "snmpv2-smi.txt" (line 15, col 0): No Groups found in module "SN
MPv2-SMI". Could not fabricate MODULE-IDENTITY. Attempt to load the module into
the SMIR will fail.
smi2smir : Semantic Check successful on "snmpv2-smi.txt"
smi2smir: Could not generate MOF
C:\mib>
I realize this is not a MS support forum, but I thought I'd try and see if anyone had successfully used Windows SMI to read SNMP data from Cisco Gear.
The following link is what my work has been based on;
http://msdn2.microsoft.com/en-gb/library/aa393621.aspx
registry entries;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\PROVIDE RS\SNMP\Compiler
with the REG_MULTI_SZ values: "File Path" (might already be existing)
and "File Suffixes"
The values for the file suffixes you have to enter by hand. Keep in
mind to separate different suffixes with a new line:
e.g. "txt
mib
asn"
Thanks
12-19-2006 03:49 PM
Haven't tried it. As an easy to use alternative, you may want to look into Net-SNMP:
12-20-2006 03:29 AM
Yes, I am familiar with it and have used it.
What I'm trying to find is something that allows me to make calls to from Windows based application without having to shell out to a command environment.
I didn't see where I could do that with net-snmp - am I missing something there?
Thanks for the reply.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide