cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1865
Views
5
Helpful
2
Replies

Using Windows WMI SNMP to read from Netwokr Gear

kst.amand
Level 1
Level 1

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

2 Replies 2

nhabib
Level 9
Level 9

Haven't tried it. As an easy to use alternative, you may want to look into Net-SNMP:

http://net-snmp.sourceforge.net/

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco