Commit fce1d584 authored by Johannes Kiesel's avatar Johannes Kiesel

Update cheatsheet for text view

parent 24c27979
test A few unimportant test scripts for developing purpose.
a short description
webis20 Storage Management Scripts, need direct access to RAID Controller and MegaCLI installed
util General helper tools and utilities
sshproxy Set up an SSH proxy tunnel for accessing digital library content or university-restricted URLs
read-from-clipboard read clipboard and print to stddout
write-to-clipboard write from stdin to the clipboard
login get fullname based on login name
tasks Process tasks in parallel
patch-jar add files from one jar (or other zip) to another one
backup-btrfs-vol Take a snapshot of a btrfs subvolume and back up its contents to another location
betamng Low level scripts for managing Betaweb.
activate_vnc_all activate vnc on all nodes of the hostlist
set_critical_temp_shutdown set settings for shutdown on critical temperature
status_all get power status of every node of betamng
get_bios_boot_settings_all get boot settings from all nodes
pssh run a command parallel on all betamng nodes
enable_pxe_bios_boot_all enable pxe bios boot on all hosts: experimental! hope and prey
start_all start every node of betamng (parallel)
change_lcd_msg_all change lcd message of every node of betaweb to betaweb???
bios_cpu_test_all starts bios cpu test on all nodes of the hostlist
virtualscreen open java vnc session to one of the betamng nodes, via idrac
do_all run a command sequential on all betamng nodes
stop_all shutdown every node of betamng
vnc open vnc session to one of the betamng nodes
read_all_macs printout system dump of all hosts for extracting mac addresses
ssh open ssh session to one of the betamng nodes (racadm can be used)
git Helper scripts for working with the Webis Git server and GitLab instance.
cvstree2git Try to clone all projects in the current CVS tree from Git.
onboard Set up the correct Gitlab group permissions for a new student or Hiwi
cvs2git Import all CVS modules into new Git repositories and push
web-admin Display a web-admin view for Gitlab (need to have a token with admin access)
clone-groups Check out groups of webis gitlab projects at once
init Initialize GitLab API client
clone-deps Clone dependencies for current project from GitLab
gitlab Gitlab commandline interface that comes with python-gitlab
update-project Clone or update the given Git project from GitLab.
core Core functions of the Webis command.
install install webis to PATH
fun easter egg
update-cheatsheet update local copy of code-webis-cmd/cheatsheet.txt
checker check codestyle of project
version get webis version
remove remove webis from PATH
update update the webis command from Git
betaweb High level scripts for betaweb, e.g. hadoop management.
rolling_restart Restart betaweb nodes one after another
restart_hadoop_ressourcemanager restart hadoop ressource manager on betaweb020 and restarts nodemanager
rolling_state Apply Salt state on nodes one after another
status get status of betaweb via salt
elasticsearch Helper scripts for managing Elasticsearch on the Betaweb cluster.
start_nodes Restart Elasticsearch cluster
restart_nodes Restart Elasticsearch cluster
stop_nodes Restart Elasticsearch cluster
# update local copy of code-webis-cmd/
# update local copy of code-webis-cmd/cheatsheet.txt
# Update Webis command
......@@ -11,7 +11,7 @@
# Constants
# Load libaries and toolkits.
......@@ -106,16 +106,15 @@ def get_subcommand_help(subcommandpath):
def print_help_table(config):
"""Prints a table with all commands, subcommands, and their descriptions."""
print("(sub-)command | description ")
print("------------------------------ | --------------------------------------------------")
commands = get_commands(config)
for command in commands:
command_help = str(config["commands_help"].get(command))
print("{:30s} | {}".format("**"+command+"**", "**"+command_help+"**"))
print("{:20s} {}".format(command, command_help))
subcommands = get_subcommands(config, commands[command])
for subcommand in subcommands:
subcommand_help = str(get_subcommand_help(subcommands[subcommand]))
print("- {:28s} | {}".format(subcommand, subcommand_help))
print(" {:20s} {}".format(subcommand, subcommand_help))
def check_subcommand_shebang(subcommandpath, allowed_scripts):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment