Skip to content

nchekwa/jcollect-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About 'jcollect-sh' collection repository

Juniper

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.

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.

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/).

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).

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.