You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started with this project because I wanted to search job logs on Switch quickly and simply. If you work most part of the time coding and switching between GUI and Terminal you know how to bother is to go to Switch to look at the logs
6
+
7
+
### Requirements
8
+
9
+
Switch Orchestrator uses a few simple tools that you probably already have installed.
10
+
A text editor (such as Vim or Emacs)
11
+
A program to print files (like cat)
12
+
Basic programs that should be included in almost all Linux/Unix distributions, including mkdir, touch, mv, rm, echo, printf
13
+
But I order to optimize the developement two libraries are required, specially for deal with json files.
14
+
JQ <https://github.com/stedolan/jq>
15
+
JTBL <https://kellyjonbrazil.github.io/jtbl/>
16
+
17
+
### Usage
18
+
19
+
#### Before Start
20
+
21
+
Starting from the folder that swo.sh is located
22
+
23
+
```bash
24
+
chmod +x swo.sh
25
+
sudo cp swo.sh /usr/local/bin/swo
26
+
```
27
+
28
+
Create a file `swo_config` on `$HOME/.config/switchOrchestrator`
29
+
Please read the oficial manual of [Enfocus Switch API](https://www.enfocus.com/manuals/DeveloperGuide/WebServices/17/index.html#api-Authentication-LoginQuery) to learn how create a password hash
30
+
31
+
```bash
32
+
USER="log"
33
+
HASH_PASS="XXXXXXXXXXXXXXXX"
34
+
SWITCH_IP="0.0.0.0"
35
+
36
+
```
37
+
38
+
#### Auth
39
+
40
+
This command will save a token used to make the API calls
I'm far from expert and suspect there are many ways to improve. If you have ideas on how to make this project better, don't hesitate to fork and send pull requests!
0 commit comments