https://github.com/nchekwa/jcollect-sh
Juniper Techsupport Collector
https://github.com/nchekwa/jcollect-sh
evo juniper juniper-documentation juniper-junos juniper-networks juniper-srx juniper-vsrx junos qfx rsi support technical
Last synced: 1 day ago
JSON representation
Juniper Techsupport Collector
- Host: GitHub
- URL: https://github.com/nchekwa/jcollect-sh
- Owner: nchekwa
- License: gpl-3.0
- Created: 2021-07-23T10:02:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-15T23:46:06.000Z (about 1 month ago)
- Last Synced: 2025-04-04T19:12:20.162Z (24 days ago)
- Topics: evo, juniper, juniper-documentation, juniper-junos, juniper-networks, juniper-srx, juniper-vsrx, junos, qfx, rsi, support, technical
- Language: Shell
- Homepage:
- Size: 561 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About 'jcollect-sh' collection repository

`jcollect-sh` was created for quick, automated data collection from Juniper devices running Junos OS. The solution's concept is **`fire and forget`** - we run a script that automatically collects necessary information and creates a diagnostic data package (one file) ready to be downloaded from the device.
The `jcollect-sh` repository consists of **5 scripts**:
## jcollect-sh-script.sh [main script - run on Junos OS]
`Bash` script is executed `on Juniper device shell`, which creates a diagnostic data package ready to be downloaded from the device. Files `junos_|junos-qfx_|evo_` placed in the folder together with `jcollect-sh-script.sh` are automatically executed and attached to the collection.
* Details: [jcollect-sh-script.md](./docs/jcollect-sh-script.md)
* Script: [jcollect-sh-script.sh](./jcollect-sh-script.sh)## jcollect-log-unpacking.py [upload on Juniper / run on local PC]
`Python3` script that is executed `on local PC`, allows to `decompress` and `combine` logs into one file.
In the folder together with `jcollect-sh-script.sh` will be included in the log collection inside LOGS TGZ.
* Details: [jcollect-log-unpacking.md](./docs/jcollect-log-unpacking.md)
* Script: [jcollect-log-unpacking.py](./jcollect-log-unpacking.py)## jcollect-event-script.py [run on Junos OS]
`Python3` script that is executed `on Juniper device`, in the **EVENT** option (`/var/db/scripts/event/`) or on demand **OP** (operation) (`/var/db/scripts/op/`).
* Details: in annotation of `jcollect-event-script.py` script
* Script: [jcollect-event-script.py](./jcollect-event-script.py)## jcollect-slicer.py [run on local PC]
`Python3` script that is executed `on local PC`, allows to `slice` log files into individual files (1 file = 1 command).
* Details: N/A
* Script: [jcollect-slicer.py](./jcollect-slicer.py)## jcollect/jcollect.py [run on local PC]
`Python3` script that is executed `on local PC`, based on configuration in YAML file format config, connects via SSH to Juniper device and collects diagnostic data.
* Details: [jcollect.md](./docs/jcollect.md)
* Script: [jcollect.py](./jcollect/jcollect.py)