Re: error '80041010' using WMI SNMP in an ASP page.
From: Viatcheslav V. Vassiliev (msnewsgroup_at_www-sharp.com)
Date: 04/16/04
- Next message: Viatcheslav V. Vassiliev: "Re: Alternative to FOR EACH"
- Previous message: Arnaldo Cabral: "ASP - SQL - VBscript. I need to change text "http://www.link.com" to "<a href=http://www.link.com>http://www.link.com</a>""
- In reply to: Joe Bramlage: "error '80041010' using WMI SNMP in an ASP page."
- Next in thread: Joe Bramlage: "Re: error '80041010' using WMI SNMP in an ASP page."
- Reply: Joe Bramlage: "Re: error '80041010' using WMI SNMP in an ASP page."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 22:40:41 +0400
It is error WBEM_E_INVALID_CLASS - Specified class is not valid. I think it
is raised from InstacesOf() method.
//------------------------------------
Regards,
Vassiliev V. V.
http://www-sharp.com -
Scripting/HTA/.Net Framework IDE
"Joe Bramlage" <Zixx@faeduatheldaren.com> ???????/???????? ? ????????
?????????: news:72082ebf.0404160917.1dc9d0ec@posting.google.com...
> I've been fighting this one for a couple weeks now. Sometimes it will
> work 5 times in a row, but it seems like I'm getting random error
> '80041010's. I've used the exact same code in a .vbs on the server
> and it runs flawlessly. The issue has to be with the web server and
> how it's handling the calls in ASP. I suspect something is corrupt on
> the server but am not sure where to start or what to replace. I've
> done as much searching as I can and would welcome any input anyone has
> to offer.
>
> Code:
>
> Set objWmiNamedValueSet =
> CreateObject("WbemScripting.SWbemNamedValueSet")
> objWmiNamedValueSet.Add "AgentAddress", "My Switch IP"
> objWmiNamedValueSet.Add "AgentReadCommunityName", "My Snmp Read
> String"
> Set colIfTable =
CreateObject("WbemScripting.SWbemLocator").ConnectServer("",
> "root\snmp\localhost").InstancesOf("SNMP_RFC1213_MIB_ifTable", ,
> objWmiNamedValueSet)
> For Each objInterface In colIfTable
> If i>=48+4 Then Exit For
> Response.Write "Port: "&i&" ifInErrors: "&objInterface.ifInErrors&"
> ifOutErrors: "&objInterface.ifOutErrors
> i=i+1
> Next
> Set objWmiNamedValueSet=Nothing
> Set colIfTable=Nothing
- Next message: Viatcheslav V. Vassiliev: "Re: Alternative to FOR EACH"
- Previous message: Arnaldo Cabral: "ASP - SQL - VBscript. I need to change text "http://www.link.com" to "<a href=http://www.link.com>http://www.link.com</a>""
- In reply to: Joe Bramlage: "error '80041010' using WMI SNMP in an ASP page."
- Next in thread: Joe Bramlage: "Re: error '80041010' using WMI SNMP in an ASP page."
- Reply: Joe Bramlage: "Re: error '80041010' using WMI SNMP in an ASP page."
- Messages sorted by: [ date ] [ thread ]