Hi Randy,

You can actually do a lot with Fabric. I hacked a quick script to download 
gemfire logs, stats, thread dumps and zip them up from any cluster I want 
(dev,sit, uat). Beauty of it is that you only need to install it in you local 
machine (in my case my Linux VM) and it uses ssh under the hood. You can also 
add any python goodness to your script and control your cluster with a simple 
command.

Cheers!
Abtin


> On Jun 3, 2015, at 3:41 PM, Randy May <[email protected]> wrote:
> 
> Thats funny. I was just looking for something exactly like this to help me
> out with build automation at a client.  Thanks for sharing!
> 
> On Wed, Jun 3, 2015 at 2:50 PM Luke Shannon <[email protected]> wrote:
> 
>> I was just working with a client who is using this framework to manage all
>> their distributed geode processes (mainly capturing log and stats files for
>> trouble shooting but also parallel starts to recover from persistence).
>> 
>> http://www.fabfile.org/
>> 
>> I have come across tons of custom shell script solutions to do this sort of
>> thing, and have played with Ansible myself (which is great). This one look
>> interesting. You can write Python, but you can also do a DSL that looks
>> like this:
>> 
>> from fabric.api import *
>> 
>> 
>> 
>> env.hosts = ['cache_server1', 'cache_server2']
>> 
>> env.user = 'my_user'
>> 
>> env.password = 'my_pass'
>> 
>> 
>> 
>> def download_log():
>> 
>>    with settings(warn_only=True):
>> 
>>                                cd('/gemfire/cache/):
>> 
>>                                                get('mycache.log')
>> 
>> 
>> 
>> 
>> --
>> Luke Shannon | Sr. Field Engineer - Toronto | Pivotal
>> -------------------------------------------------------------------------
>> Join the Toronto Pivotal Usergroup:
>> http://www.meetup.com/Toronto-Pivotal-User-Group/
>> 

Reply via email to