[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] How to run an arbitary script on the client end?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] How to run an arbitary script on the client end?
- From: Charles Jones <jonescr (at) cisco.com>
- Date: Fri, 08 Jun 2007 13:48:59 -0700
- Authentication-results: sj-dkim-4; header.From=jonescr (at) cisco.com; dkim=pass ( sig from cisco.com/sjdkim4002 verified; );
- Dkim-signature: v=0.5; a=rsa-sha256; q=dns/txt; l=4322; t=1181335741; x=1182199741; c=relaxed/simple; s=sjdkim4002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=jonescr (at) cisco.com; z=From:=20Charles=20Jones=20<jonescr (at) cisco.com> |Subject:=20Re=3A=20[hobbit]=20How=20to=20run=20an=20arbitary=20script=20 on=20the=20client=20end? |Sender:=20; bh=wRyxEN2lB76GLDGnIK70ShXwXzpfOKuHpc4tyEaR260=; b=nkii4DI+v4g4r22nMvzqPu04hpqpR4Sw3Y7gqC+gC1jyoXss2tX43/ZSc5IHNF/KY952nFmd DWMscEwvjtzDxoIhAtdZwke5ab88F9msSrUakzAloXKZGs3JexGm45jB;
- Organization: Cisco Systems
- References: <9836EA7D7FDAE34099AED87A2D9C3A8D222F40 (at) 306181ANEX2.global.avaya.com>
- User-agent: Thunderbird 2.0.0.0 (X11/20070419)
As far as I know there is no built-in functionality to dynamically
execute remote scripts and get their output. Others may have better
suggestions, but one way of doing it, is you could set the client-side
script to be launched by the hobbit client every X minutes, (via
clientlaunch.cfg). I'm not sure of the best way to get the script output
back to the hobbit server though. I guess you could have the script
output to a logfile , and then have the hobbit server monitor that log
via the normal log monitoring mechanism
.
-Charles
Haertig, David F (Dave) wrote:
Is there a way to confgure a client, via client-local.cfg or
otherwise, to run some arbitrary command on the client and send it's
stdout/stderr back to the hobbit server? I have a few simple shell
scripts that exist on some clients that it would be nice to invoke and
then read their results on the server end using the "$BBHOME/bin/bb
localhost clientlog..." method. Similar to the way a
"file:path_to_file" directive will collect a file's metadata? I want
something like "runprogram:path_to_program"
I am doing this currently using a server-side script that ssh'es to
the client machine and runs what it needs. I would rather have the
normal Hobbit client collect the data output by the client-side
program, upload that, and my server-side script would parse that
resulting clientlog rather than going and collecting it's own data.
If this is possible.
Thanks!