create and load a system dump for B&R PLC from the command line
Project description
systemdump.py
create and load a system dump for B&R PLC from the command line
read what a systemdump is good for
Intention
I regularly had to create lots of system dumps from multiple machines and was tired of always using the websites to do it. So I wrote this Python script to automate this work with e.g. a batchfile.
Installation
install Python from web page https://www.python.org/. I used the 3.9.6.
python -m pip install systemdumpy
Examples
create a dump and store it
python -m systemdumpy 192.168.0.100 -cuv -p MyCPU_
create a systemdump on 192.168.0.100
upload systemdump from 192.168.0.100
saving MyCPU_BuR_SDM_Sysdump_2021-07-09_11-51-55.tar.gz (2820986) bytes
delete the last systemdump from PLC
python -m systemdumpy 192.168.0.100 -dv
create a inventory list (*xlsx) from file
python -m systemdumpy BuR_SDM_Sysdump_2021-07-09_17-43-05.tar.gz -iv
usage
usage: systemdumppy [-h] [-c] [-n] [-u] [-d] [-p PREFIX] [-i] [-v] [--version] target
positional arguments:
target remote PLC IP address or name or systemdump file (*.targ.gz)
optional arguments:
-h, --help show this help message and exit
-c, --create create a dump on (remote) target
-n, --nofiles don't include data files (logger, NCT etc.)
-u, --upload upload from (remote) target and store to file
-d, --delete delete dump from target
-p PREFIX, --prefix PREFIX
prepend this PREFIX for system dump filename after upload
-i, --inventory create a hardware inventory list (*.xlsx)
-v, --verbose show messages
--version show program's version number and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file systemdumpy-1.0.2.tar.gz.
File metadata
- Download URL: systemdumpy-1.0.2.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc448687f70b1740b445a91596d5ad03d041b681c21782be610c09aaaee0cd8
|
|
| MD5 |
4263b7a61f890024e9506f88d352fc94
|
|
| BLAKE2b-256 |
77c3e19c41d650e4c30d16b7c067df20bb711ad5d5d43afb6559d76e33274b07
|
File details
Details for the file systemdumpy-1.0.2-py3-none-any.whl.
File metadata
- Download URL: systemdumpy-1.0.2-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdc8ce074796455f976dffd766881bb89b53a8fb905fdca0945ab0257e5ffc7d
|
|
| MD5 |
05935c2f87317a55b490e475aad31e80
|
|
| BLAKE2b-256 |
aadda8b58abe0970e0f63f7534298e60bd6c588d3c8681353103b110dc6008f5
|