Skip to main content

create and load a system dump for B&R PLC from the command line

Project description

License: GPL v3 made-with-python Made For B&R

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

systemdumpy-1.0.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

systemdumpy-1.0.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file systemdumpy-1.0.1.tar.gz.

File metadata

  • Download URL: systemdumpy-1.0.1.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

Hashes for systemdumpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e300e8bc30cb8138c76d10ecee4230a20facbf2db6733111cd7a3b6fc5284f92
MD5 9b79af1704536d8d0184f3f98d774860
BLAKE2b-256 e38f2d33cfa4d59cba6cbc36e88534ddd9debd12fc7b03ab08836db1cc2a5715

See more details on using hashes here.

File details

Details for the file systemdumpy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: systemdumpy-1.0.1-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

Hashes for systemdumpy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 127f8f232c79732de5e045eb3e86a82f9c2f7150cb599ec2d974da51849bc58c
MD5 6d2bacdfbfe614ffd750665eb5f18a22
BLAKE2b-256 ec3b74b4ae72ae2eccab2edfe06e1549d20b281d4e87c5e8f91b5b6f87170714

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page