LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2006, 03:25 PM   #1
Ed_Les_Mann
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian and Rocks
Posts: 10

Rep: Reputation: 0
Question Network Message Passing Between Systems


Good day Everyone.
I have a need of a cross-platform toolset and regardless of my google queries I am not finding what I am looking for. I hope someone can give some incite.

I am looking for a way that I can send a message from any computer system to Linux server system, have the server record the string to a file on its local disk, and execute an update program I wrote.

If it helps explain my situation, I will share what I am trying to do. I have a C program that writes a string of about 50-100 characters to a file. This program runs several times a day on many servers (Linux and Windows). Instead of writing to a file on the local disk I would like for the program to send that string to my CentOS 4 server and have the server record the string and run a update program.

Before I added the windows systems and Linux systems without ssh, I was simply just executing:
ssh me@CentOS4 "echo hello > /tmp/file ; ./update_my_files"

However, trying to expand this out to systems that do not have SSH (including windows) has been difficult. I have experimented with using windows netsend, telnet, and the Linux commands of write, mesg, and wall but was not able to get the results I was hoping for.

Has anyone done this type of thing? Or do you know of a project that does this? Any suggestions and input are welcome.

Thanks Everyone.
 
Old 09-14-2006, 04:24 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i would think that syslog would probably be a good option, especially if you use something like syslog-ng instead of the older syslogd or equivalents. there are plenty of widgets to send arbitrary text to syslog, and syslog-ng can automatically manage client addresses etc if you need extra data other than the raw message.

i do a slightly similar thing where i work. we run ssylog-ng on a generic centos server, and messages that come into syslog on a given port are logged into a file per client but also into a second spool file. this second file is read permanently by a really simple bash script which reads each line in turn and runs additional commands from that input. nothign to it really.
 
Old 09-14-2006, 04:25 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you might also want to look at splunk for a really freaky modern take on data logging. not played with it myself, but it seems extremely powerful and can acquire log data from a horrific number of different cross platform technologies and merge them all into a standard format and such like.
 
Old 09-14-2006, 05:01 PM   #4
Ed_Les_Mann
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian and Rocks
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
we run ssylog-ng on a generic centos server, and messages that come into syslog on a given port are logged into a file per client but also into a second spool file.
Can you explain this a bit more please? I am slightly familiar with syslog as I know it is responsible for almost all of the system logs for the kernel, firewall, ect. However, I did not know that you can have it listen on specific ports. What do you use to send the messages from the other systems?

Thanks for replying!
 
Old 09-15-2006, 02:29 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the systems that log to it are cisco gear and other stuff, but there are tools on linux like "logger" that sends arbitrary data from a command lne to syslog, and many equivalents for windows you can find through google.

i'd suggest looking at the gentoo syslog documentation and that gives a really nice overview of how syslog-ng can give you lots of flexibility in different ways.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Message passing thru LAN in Linux. nethunter Linux - Networking 3 01-24-2006 11:49 AM
passing parameters to network modules muru Linux - Networking 4 10-21-2005 10:44 AM
Can you help me about Message Passing Interface (MPI) in Red Hat? danilux Red Hat 0 11-11-2004 11:49 AM
want some help regarding usage of message passing interface student_linux Linux - Software 0 03-24-2004 12:34 PM
pass message to other systems... stonegold84 Linux - Hardware 9 09-02-2003 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration