Skip to main content

node control utilities

Project description

nodemaster

introduction

This module provides various utilities that can be used for the control and diagnostics of a set of computing nodes. It could be used to check if a set of computers are accessible via SSH or could run a command on a set of computers accessible via SSH, for examples.

launch commands in tmux

Commands can be sent to respective panes of tmux. The following example defines multiple commands, launches tmux, creates multiple panes in tmux and then runs each command in its respective tmux pane.

import nodemaster
commands = [
    "ls",
    "ls",
    "ls",
    "ls"
]
nodemaster.launch_tmux(commands = commands)

The following example, for use on LXPLUS, illustrates how nodemaster can be used to send multiple commands out to multiple nodes and to observe the output in tmux.

import nodemaster
commands = [
    "ssh -o StrictHostKeyChecking=no lxplus0000.cern.ch uptime",
    "ssh -o StrictHostKeyChecking=no lxplus0001.cern.ch uptime",
    "ssh -o StrictHostKeyChecking=no lxplus0002.cern.ch uptime",
    "ssh -o StrictHostKeyChecking=no lxplus0003.cern.ch uptime"
]
nodemaster.launch_tmux(commands = commands)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodemaster-2017.1.16.1608.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file nodemaster-2017.1.16.1608.tar.gz.

File metadata

File hashes

Hashes for nodemaster-2017.1.16.1608.tar.gz
Algorithm Hash digest
SHA256 6cb96cd120cd7902e1631eb7fd41638a1720c5a6993e5a97f0e688416879364f
MD5 00a013fc9280c2b72d2db48622ed1e3e
BLAKE2b-256 ab21768aba3277850bb92f791e8b3908737f3769f3065bbb1c8f5ffbaf9f9281

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page