Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
/ cluster-batch-tools Public archive

tools to perform batch tasks on each node of a cluster

Notifications You must be signed in to change notification settings

bhoppi/cluster-batch-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

In a cluster, programs and configurations are often the same with each other on every node.
On the other hand, lots of routine tasks on cluster need do same operations on each node.
So Cluster-Batch-Tools is a solution, which let you just perform it once as if you do on a single computer, but affect the whole cluster.

This small project contains some scripts:
    cl-cp.sh:                 cp a specified local file to each node
    cl-exec.sh:               execute a specified command/script, auto on each node
    (to be added)
    
There are also some expect scripts used by above scripts. Usually you need not use them directly.
    cp-eachnode.exp:          scp's wrapper for auto copy file without interact
    run-eachnode.exp:         ssh's wrapper for auto exec cmd without interact
    run-eachnode-async.exp:   ssh's wrapper for auto exec cmd without interact, background mode
    
And there also has a nodelist file, you can edit it as need.

It has below dependencies to work: openssh, expect, bash(or other compatible shell)

Hope it can help you :)

NOTE: All the files in this repo are released under GPL.


Bhoppi Chaw
2012-11-29

About

tools to perform batch tasks on each node of a cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages