Download ActiveSocket    |     Visit the ActiveSocket website

Index - Log in! - Sign up! - Visit website
Coldfusion error running snmp trap sample
 
ActiveXperts Software Forum Index -> ActiveSocket Toolkit -> Development Platforms
 
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
whozitsdad



Joined: 06 Aug 2008
Posts: 6

PostPosted: Mon Aug 18, 2008 3:57 pm    Post subject: Coldfusion error running snmp trap sample

When I run the SNMP Traps sample code, I'm getting this error:

Element LASTERROR is undefined in OBJTRAPMANAGER.


The error occurred in E:\horizon\snmptraps.cfm: line 157

155 : <!--- Echo the results --->
156 : <cfscript>
157 : intErrorNo = objTrapManager.LastError;
158 : strErrorDescr = objTrapManager.GetErrorDescription(objTrapManager.LastError);
159 : </cfscript>



Not sure what to do about it.

Thanks
Terry
Back to top
Albert
Site Admin


Joined: 10 Jul 2007
Posts: 420

PostPosted: Tue Aug 19, 2008 7:59 am    Post subject:

Hi Terry,

The Com object has not been created properly. Create a com object by using the following code snippet:

Code:
<cfobject class="ActiveXperts.SnmpTrapManager" type="com" name="objSocket" Action="Create">


If you still get the same error and if the default sample which is shipped with the product is not working either, you probably did not assign the proper permissions to the IUSR. Check the permissions on IUSR (I suppose you're using IIS to run CF?) and try again.

Hope this helps

Albert
Back to top
whozitsdad



Joined: 06 Aug 2008
Posts: 6

PostPosted: Tue Aug 19, 2008 10:51 am    Post subject:

Hi Albert and thanks. The code to create the object is in there. I will check the permissions this morning and yes, it is an older IIS version on a Win2k server box that CF is running on.

I'm going to try perhaps the asp.net but CF is the only method I know how to use.

Thanks again
Terry
Back to top
whozitsdad



Joined: 06 Aug 2008
Posts: 6

PostPosted: Tue Aug 19, 2008 1:51 pm    Post subject:

Next question. Not sure how to word this properly.

We use a local program called SNMPc Management Console which is a pretty good utility. We use it to monitor all of our CPE's in the field, including other equipment. In the SNMPc I can view all the OID's and interestingly, when I run the sample SNMP.CFM page with the appropriate IP address of the unit I want to test it on, everything matches up.

When I do the get Next and cycle through all of the OID's, it eventually cycles through our DSLAM channels and shows me success and status which to me is pretty cool.

Instead of using the form to poll one DSLAM/UNIT at a time and use the get/get next, I want to use some hidden code to poll the unit as soon as the page is displayed in the browser.

I have a web app that shows all of our dslams and number of channels. You can drill down to the specific dslam and view all the channels and subscriber information. It is there I want to display the Channel status.

This is an OID from a DLSAM I'm testing the sample code with:

interfaces.ifTable.ifEntry.ifAdminStatus.119
In theory I would want to poll all channels at once and display their status with the subscriber information I currently display.

The 119 represents Channel 19 on that specific DSLAM. Do you have some code that I can use, hidden without user input to poll by OID's and provide the status results?

Thanks
Terry
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum