Dart Home | PowerSNMP for ActiveX | Custom Development | Reply | PowerSNMP for ActiveX Topics | Forums |
Author | Forum: PowerSNMP for ActiveX Topic: Error code 12019 |
Deneh From: Herlong, CA USA Posts: 3 Member Since: 01/05/09 |
posted January 19, 2009 8:09 PM I'm new to using PowerSNMP and have a problem that I am not clear with. I made a nice little interface in Access 2003 to interface to an isolated HP ProCurve 2824 ethernet switch. It is for exploring how the ifIndex and ifNumber works for an application I am expanding to monitor ports. When I use my code to get something easy like sysName. no problem!. When I try to get ifNumber I get this; "Error #12019: Get exception (NOSuchName) in variable index 1". I am loading the MIBS as I stepped through the VBA code so what gives? Code below; Private Sub Test1_Click() On Error GoTo OnError ' use intrinsic error handling Dim OIDNumber As String Dim IPAddress As String Dim Value As SnmpVariable ' Set the OID Number & IP Address strings for proper operation OIDNumber = lstOIDNumber.Value IPAddress = cmbIPAddress.Column(1) ' Check if we are dealing with null data If IPAddress = "" Then ShowError ("No IP Address Selected") Exit Sub End If If OIDNumber = "" Then ShowError ("No OID Value Selected") Exit Sub End If 'AgentPort property defaults to 161. Manager1.Message.Reset Manager1.AgentName = IPAddress Manager1.AgentPort = 161 'Get the OID Information for the agent using the AgentVariable property Set Value = Manager1.AgentVariable(OIDNumber) List1.AddItem Value.Value Exit Sub OnError: ' Any error jumps here ShowError ("Error #" + CStr(Err.Number) + ": " + Err.Description) End Sub |
Jason Farrar (Admin) From: Oneida, NY USA Posts: 223 Member Since: 07/24/07 Extra Support Options Custom Application Development |
posted January 21, 2009 10:15 AM What is the value of lstOidNumber.Value? The error message means that you are requesting a valu from the agent but the agent is saying there is no value to at the requested location. This usually occurs when an OID is requested without it's cell identifier. Ex: The OID for SysName is: 1.3.6.1.2.1.1.5 however if you request the value with 1.3.6.1.2.1.1.5 then you should get the same error that you report below. You would have to request the value with 1.3.6.1.2.1.1.5.0 in order to retrieve the actual value. |
Reply | PowerSNMP for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |