Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil authored Jan 2, 2018
1 parent 014169a commit 3bc43a5
Showing 1 changed file with 67 additions and 9 deletions.
76 changes: 67 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@

---

**SYSIS provides a simple way to retrieve and display system information across multiple system types, by eliminating the need to use multiple commands that vary based on system-type.**  It is especially useful for sys-admins, developers and IT Professionals that frequently connect to multiple systems and require immediate knowledge of the current hosts info.
**SYSIS provides a simple way to retrieve and display system information across multiple system types, by eliminating the need to use multiple OS specific commands.**  It is especially useful for sys-admins, developers and IT Professionals who maintain simultaneous connections to multiple hosts, as it allows rapid retrieval of system info for any host.

It was designed for maximum productivity:
- Simple to use - it requires no parameters to use
- Executes quickly by gathering only commonly needed information
- Simple to use and requires no parameters to use (no parameters to research learn and memorize)
- Executes quickly by focusing on the most commonly needed information
- Includes Network Connection Details - Adapter Name, IPv4 (if assigned), IPv6 (if assigned), and MAC Address
- Details on Network Info are described in the [CHANGELOG](https://github.com/robertpeteuil/sysis/blob/master/CHANGELOG.md)

### macOS with 2 NICs: "en1" has IPv4 & IPv6 Addresses, "en2" has only IPv4 address
![](https://user-images.githubusercontent.com/1554603/34471519-22988876-ef09-11e7-8ac8-ea45959e7691.png)

### Example sysis output on Mac and Ubuntu:
![](https://user-images.githubusercontent.com/1554603/31736305-348e9408-b3f9-11e7-9c38-32a924d45505.png) ![](https://user-images.githubusercontent.com/1554603/31737773-5f2648e2-b3fd-11e7-970f-d5ec5cf66c1a.jpg)
### Ubuntu with 1 NIC: "enp0s10" has both IPv4 & IPv6 Addresses
![](https://user-images.githubusercontent.com/1554603/34471525-329da544-ef09-11e7-9a46-b9836302b422.png)

### Supported Platforms:

Expand All @@ -26,20 +30,74 @@ It was designed for maximum productivity:

### Installation:

Easily installed with `curl` using this command:
The script itself is a single Bash script, so there are many ways it can be installed: downloading and running the installer, cloning the repo locally and running the installer, or manually downloading it.
- Using the installer is recommended, as it installs the latest release
- Downloading the script manually retrieves the latest commit on the master branch

**Download and Run Installation Script (requires `curl`):**
- Download the installation script
- Verify the contents of the script you downloaded matches the contents of install.sh
- Run the installation script
- The installation script downloads the latest release and installs it in the path.

``` shell
bash -c "`curl -s -L https://raw.github.com/robertpeteuil/sysis/master/install.sh`"
curl -fsSL https://raw.github.com/robertpeteuil/sysis/master/install.sh -o install.sh
sh install.sh
```


Alternatively, the repo can be downloaded and installed locally. If downloaded (or cloned), `cd` into the directory and run `./install.sh`
**Install by cloning the repo and running installer locally:**
- clone the repo, optionally specifying `--depth=1` to make the download fast and use less disk space
- cd into the repo directory
- run the installation script
- The script will detects that it's running locally and use the downloaded copy of `sysis`, instead of downloading it

``` shell
git clone https://github.com/robertpeteuil/sysis.git --depth=1
cd sysis
./install.sh
```

**Install by manually downloading the script and placing it in the $PATH (requires `curl`)**
- This method downloads the latest commit on master, whereas the installation script downloads the latest release.

``` shell
curl -s -L https://raw.github.com/robertpeteuil/sysis/master/sysis > sysis; chmod +x sysis
```

### Hosted Script Execution and Security

For the purpose of this utility, there are two scenarios where executing a script directly from GitHub is desirable:
- executing the installation script
- this makes for an extremely simple, one-step install
- executing `sysis` without installation
- this is enables use of the utility on hosts where installation is not possible

In general, executing hosted scripts is not secure because the scripts are executed without a chance to inspect them. Fortunately, the security risks can be mitigated by performing actions specific to each scenario.

**Preperations for Using Hosted Installation Script**
This is the easier of the two scenarios to address because you will only run the installer once and don't need to consider future changes.
- review the [installer](https://github.com/robertpeteuil/sysis/blob/master/install.sh) and ensure its safe and meets your security standards
- After review, the hosted installation script can be executed with the command below.
- This is the equivalent of the first installation option, but performed in one step.

The online-installation command:
``` shell
bash -c "`curl -s -L https://raw.github.com/robertpeteuil/sysis/master/install.sh`"
```

**Preparations for Using Hosted `sysis` Script**
- Review the [sysis script](https://github.com/robertpeteuil/sysis/blob/master/sysis) and ensure its safe and meets your security standards
- Create a fork of this repo in your GitHub account
- This provides an isolated copy that you control and allows you to review all future commits before [syncing them to your fork](https://help.github.com/articles/syncing-a-fork/).
- In your fork, edit `install.sh` and change the value assigned to `REPOACCT` to your username. (This ensures that running the installer in your fork will look for releases in your fork.)
- Change the username in the command below so the script runs from your fork.
- For ease of use, you will likely want to create an alias or terminal macro to execute the command:

``` shell
bash -c "`curl -s -L https://raw.github.com/robertpeteuil/sysis/master/sysis`"
# remember to change 'robertpeteuil' to your account name if you've created a fork
```

### Usage and Options:

``` shell
Expand Down

0 comments on commit 3bc43a5

Please sign in to comment.