C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 18th, 2013, 09:39 AM
Gadgets21 Gadgets21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 2 Gadgets21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 40 sec
Reputation Power: 0
Creating a Agent Program to Send Data Back to MySQL DB

Hi,

I'm trying to work on developing a software agent (Windows XP/7) which can run an executable locally on computers, generate a log file, and send this data to a MySQL server.

Can you point me to any tutorials or sample source code?

Appreciate the help, thanks!

Reply With Quote
  #2  
Old March 18th, 2013, 06:54 PM
BobS0327 BobS0327 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 120 BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 7 m 57 sec
Reputation Power: 44
Quote:
Originally Posted by Gadgets21
Hi,

I'm trying to work on developing a software agent (Windows XP/7) which can run an executable locally on computers, generate a log file, and send this data to a MySQL server.

Can you point me to any tutorials or sample source code?

Appreciate the help, thanks!


I'm not sure I understand what you want to accomplish. Let me rephrase your question.

Develop a software agent that will be installed on several computers. This software agent will be remotely started on all installed computers. The agent will then send data to a computer which has a mySQL server installed. Example, Computer A will control the installing/starting/stopping of agents installed on Computer B, C and D. The agents installed on B, C and D will send data to Computer E which has a mySQL server.

Is this the scope of your project?

Reply With Quote
  #3  
Old March 19th, 2013, 07:46 AM
Gadgets21 Gadgets21 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 2 Gadgets21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 40 sec
Reputation Power: 0
Quote:
Originally Posted by BobS0327
I'm not sure I understand what you want to accomplish. Let me rephrase your question.

Develop a software agent that will be installed on several computers. This software agent will be remotely started on all installed computers. The agent will then send data to a computer which has a mySQL server installed. Example, Computer A will control the installing/starting/stopping of agents installed on Computer B, C and D. The agents installed on B, C and D will send data to Computer E which has a mySQL server.

Is this the scope of your project?


Yes that's right. You described it perfectly. Do you know where should I look for good tutorials?

Reply With Quote
  #4  
Old March 19th, 2013, 02:40 PM
BobS0327 BobS0327 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 120 BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level)BobS0327 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 7 m 57 sec
Reputation Power: 44
Well, source code for the installer which is the app that will copy/install/start the agent on a remote computer can be found at CodeForge. Alternatively, you can use PsExec from Technet. The source code for the PsExec utility is not available.

I've posted a User contribution to the Zoneminder forum. Zoneminder is an open source CCTV security system. It uses mySQL databases to control the functionality of all the CCTV cameras. The C contribution I made allows the end user to update the local mySQL databases to change the function of various cameras. In other words, the code demonstrates how to modify/update a mySQL database. This is the link to the C source code sample. You can use this sample as a starting point for writing your "agent".

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Creating a Agent Program to Send Data Back to MySQL DB

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap