login
Forgot?
Login with Facebook

Don't have an account? Register one now!

A client to receive command remotely and execute them

Bids 
16
Avg Bid
$206 USD
CLOSED
  • Project ID:

    703252
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

Objectives of this post:
To create a client software that can run in any platform. <client>
To pull list of commands and execute them and send back the results. (client-server way)
The software must be be running with JRE 1.5,1.6 and gnu JRE.
The code must be written and optimized to utilize very small amount of memory and CPU.
the binary must be one single file to make to distribute it.

More details:
The required java code will be used in a new open source project **(so kindly be nice with the price and I will add your name and site in the credit for the code)** that will serve system administrators and all data centers workers.
The project it self will be designed in php (web-based) but there will be a small java agent need to run in each server in the data center

This post is to request an offer from the bidder whom want to work in developing the agent.

The agent is very simple and doesn't require much coding.

It will be basically running manually using command line and once its started it will be doing the following steps:


1. Check there is no other instance of the program running (otherwise exit).
2. Read the settings from a properties file.
3. Check if we have a UUID (saved in the properties file) and if no UUID
A. Generate a UUID
B. Save it In the properties file
C. Submit the host name and the UUID to a URL saved (HTTP POST and the URL it read it from the properties file).
D. Exit.
4. Connect to a URL and sending the UUID (HTTP GET and also URL from the properties file)
5. With the connect the program will receive a text with list of lines, each line will represent an action the program must do it, the line format will be like the following

Action ID | Action Key | action type | action data.....(data can include also |)
( as you can see the splitter is “|” )

The software then will read each line and based in the "action type" it will do some action.

"action type" will be on of the following:
Action Type Meaning
exec Execute the command in "action data" (time out if the command takes more than 10 minutes and just don’t report the result to the server)
pull Download the file "action data" to a directory (from properties file)
push Upload the file "action data" to a server (from properties file), the file can be a directory or many files with *
pullexec download file from "action data" and execute it (time out if the command takes more than 10 minutes and just don’t report the result to the server)
version get the java software version
java.version get the The version of Java Runtime Environment
java.vendor  get the The name of Java Runtime Environment vendor
java.home get the The directory of Java installation 
java.io.tmpdir get the The path of temp file
os.name The name of OS name
os.arch  The OS architecture
user.name The name of account name user
user.home The home directory of user 
user.dir  The current working directory of the user


6. After running the action the software will save all the output in 2 files one for stdout and the other for stderr
7. The software will submit it (HTTP POST) among with Action ID and Action Key to a server (again URL from properties file)

8. Then it will exit

Additional Project Description:

06/05/2010 at 3:28 EDT:
Some people are offering to do it with SSH, this is NOT what I want

If you read the requirement you will see I'm talking about connections. Using http
I don't want live http during all the time, i just want the agent simply to
1. Conect and get list of actions (commands) and disconnect
2. Go through the actions and do them.
3. Return or upload the actions output



Skills required:

J2EE, Java

Project posted by:

ahmadt Saudi Arabia
(0 Reviews)

Last seen:

Public Clarification Board

2 messages

  • ahmadt

    The client will use http get and post as I mention in my post
    The connection will be closed one it receive the list of the commands and then the agent will start executing them or do the actions based on the action type for each command
    After that it will open connection to the server to submit the results or to send/download files

    over 1 year ago

  • Ashrise

    Hi there.
    You said:
    4. Connect to a URL and sending the UUID (HTTP GET and also URL from the properties file)
    5. With the connect the program will receive a text with list of lines, each line will represent an action the program must do it, the line format will be like the following

    You mean the client (the agent) connects to the server over a HTTP protocol?
    The the client receive the answer (in the form of a command list) and start processing the commands?
    I'm asking this because the HTTP communication must end, I mean if you send a http request, you get your response then the connection is closed.
    You can't keep the connection always "on" (at least is not recommended) and expect to receive responses from the server from time to time using the same connection.

    How many times do you want the client (agent) to connect on the server? You just want to run the client(agent) manually, then let him do his job and then exit?

    over 1 year ago


If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

fighterjockey India
fighterjockey
India From India     Offline
 Accepted
$30 in 5 days 
0
over 1 year ago
5.0

1.0

1 Review
100% Completion Rate
Have already made a similar agent for my experimental Grid Computing environment. just need some tweaking !

All Bids ()

pixarsolution Pakistan
pixathe.jpg
pixarsolution
Pakistan From Pakistan     Online
$200 in 10 days 
0
over 1 year ago
4.7

5.7

8 Reviews
64% Completion Rate
Expert java/J2EE developer is here. I have around 8 years experience developing enterprise applications.
ihsoftAFaisal Bangladesh
ihsoftAFaisal
Bangladesh From Bangladesh     Gold Member     Offline
  Freelancer Orientation (85%, 99th percentile)
  General Freelancer Orientation (85%, 95th percentile)
$100 in 3 days 
0
over 1 year ago
5.0

5.3

8 Reviews
69% Completion Rate
*************6 yrs+ Java Experience ************* I understand it properly. Would like to start it soon. Thanks
pawel100 Poland
pawel100
Poland From Poland     Offline
  General Freelancer Orientation (90%, 98th percentile)
  Foundation EUFreelance.com Member
$100 in 10 days 
$50 Milestone Requested
over 1 year ago
4.9

4.4

15 Reviews
74% Completion Rate
Hello, I'm interested in your project, Please check PMB for more details.
agilitysoftwares India
AgilitySoftwares_Logo.jpg
agilitysoftwares
India From India     Offline
  Foundation LimeExchange Member
  Foundation EUFreelance.com Member
$250 in 7 days 
0
over 1 year ago
3.6

4.6

4 Reviews
65% Completion Rate
Please check your PMB for more details.
pbq China
pbq
China From China     Offline
$100 in 30 days 
$50 Milestone Requested
over 1 year ago
5.0

4.0

5 Reviews
50% Completion Rate
Please check PM
rapuk Russian Federation
rapuk
Russian Federation From Russian Federation     Offline
$220 in 5 days 
$220 Milestone Requested
over 1 year ago
5.0

3.6

4 Reviews
71% Completion Rate
I can easily make this small java agent.
govind99 India
logonoesis.jpg
govind99
India From India     Offline
  General Freelancer Orientation (90%, 98th percentile)
  Foundation LimeExchange Member
  Foundation EUFreelance.com Member
$220 in 10 days 
$110 Milestone Requested
over 1 year ago
5.0

2.7

2 Reviews
65% Completion Rate
Hello sir Please check PMB of Yours I can help you
MathiasDeGroof Belgium
MathiasDeGroof
Belgium From Belgium     Offline
  Foundation EUFreelance.com Member
$200 in 10 days 
0
over 1 year ago
5.0

1.9

3 Reviews
100% Completion Rate
Please see PMB
bigaims India
Logo2.png
bigaims
India From India     Offline
$250 in 30 days 
$125 Milestone Requested
over 1 year ago
4.6

1.4

1 Review
50% Completion Rate
Allready having such project. so there is no problem with us for your project. To get project on time and with quality work i expect you will assign this task to us. Regards
ranacseruet Bangladesh
Banner.gif
ranacseruet
Bangladesh From Bangladesh     Offline
  General Freelancer Orientation (90%, 98th percentile)
  Foundation LimeExchange Member
$450 in 12 days 
$450 Milestone Requested
over 1 year ago
5.0

1.0

1 Review
82% Completion Rate
I am interested..
kenpachizaraki Tunisia
kenpachizaraki
Tunisia From Tunisia     Offline
$30 in 7 days 
0
over 1 year ago
0.0

0.0

0 Reviews
0% Completion Rate
i m interest in this project.
SWajid Pakistan
SWajid
Pakistan From Pakistan     Offline
$300 in 4 days 
$90 Milestone Requested
over 1 year ago
I can complete this project within 4 days i just not understand UUID is it userId?
dmirx Ukraine
dmirx
Ukraine From Ukraine     Offline
  Foundation EUFreelance.com Member
$50 in 7 days 
$25 Milestone Requested
over 1 year ago
Please check pmb for details.
ajinsk India
ajinsk
India From India     Offline
$500 in 25 days 
$100 Milestone Requested
over 1 year ago
Hi Please check your PMB. With Best Regards Ajith
hussainsharif Pakistan
Logo.jpg
hussainsharif
Pakistan From Pakistan     Offline
  Foundation LimeExchange Member
$300 in 10 days 
0
over 1 year ago
0.0

0.0

0 Reviews
50% Completion Rate
Please check your PMB