Giter VIP home page Giter VIP logo

mariquit / aws-ec2rescue-linux Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awslabs/aws-ec2rescue-linux

0.0 2.0 0.0 2.93 MB

Amazon Web Services Elastic Compute Cloud (EC2) Rescue for Linux is a python-based tool that allows for the automatic diagnosis of common problems found on EC2 Linux instances.

License: Apache License 2.0

Makefile 0.06% Shell 0.12% Python 99.81% C 0.02%

aws-ec2rescue-linux's Introduction

Amazon Elastic Compute Cloud (EC2) Rescue for Linux

What is it?

Amazon Elastic Compute Cloud (EC2) Rescue for Linux (ec2rl) is a framework for executing diagnostic and troubleshooting modules to analyze issues on Linux instances on AWS.

The Latest Version

The latest stable version can be downloaded from https://s3.amazonaws.com/ec2rescuelinux/ec2rl.tgz

Documentation

Available in docs/ subdirectory

Prerequisites

Python 2.7.9+ / 3.2+

Installation

No ec2rl specific installation required. Unpack the tarball and run the tool.

Usage

ec2rl:  A framework for executing diagnostic and troubleshooting
        modules for analyzing issues on Linux instances on AWS.

USAGE:
    ec2rl [subcommand] [parameters]

COMMANDS:
  The following are the accepted subcommands:
    menu-config    - use a text-based menu system to create a configuration file, configuration.cfg
    save-config    - use the provided arguments to create a configuration file, configuration.cfg
    run            - executes modules
    list           - list available modules for platform
    upload         - upload a tarball of a directory to S3 using either a presigned URL or an AWS-support provided URL
    help           - print long help
    version        - print version and license information
    version-check  - check program version against the latest upstream version
    software-check - check for software required by modules that is not installed on the system and give install details
    bug-report     - print version information relevant for inclusion in a bug report

Additional usage information is available in the usage guide in docs/USAGE.md and the help subcommand output.

Examples

ec2rl can be run with no options or special configuration:

ec2rl run

Some modules require sudo/root. If executing as a regular user, utilizing sudo is required in order to run these modules:

sudo ec2rl run

Many modules require arguments for their usage. For example, most performance metric collection modules require times (number of samples to take) and period (length of sample).

sudo ec2rl run --times=3 --period=5

Some modules may negatively impact system performance and will not run by default. These modules can be run by specifying the perfimpact argument.

sudo ec2rl run --times=3 --period=5 --perfimpact=true

Module Development

Modules are YAML files containing either a BASH or a Python script as well as the necessary metadata. Examples are available in mod.d and the module development guide found in docs/MODULE.md

FAQ

Why does EC2 Rescue For Linux not have the ability to run and upload in a single command?

It is recommended the resulting data be reviewed prior to being uploaded in order to ensure that no confidential information is included.

Why does EC2 Rescue For Linux require Python 2.7.9+? What about Python 2.7.x, x < 9?

SSL SNI (Server Name Indication) is required for the ec2rl's upload functionality, however, this wasn't added to Python 2.7 until 2.7.9. See PEP 466 for more information regarding the SSL changes in Python 2.7.9.

I'm trying to use the menu on a system running SUSE, but it does not work.

Python's curses module is normally built into its standard library, however, it is sometimes separated and included as a separate package. You will need to install it with the operating system's package manager. The package name in SUSE Linux Enterprise Server 12 is "python-curses".

Licensing

Please see the file called LICENSE.

aws-ec2rescue-linux's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.