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.

py -m pip install systemdumpy

Examples

create a dump and store it

py -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

py -m systemdumpy 192.168.0.100 -dv

create a inventory list (*xlsx) from file

py -m systemdumpy BuR_SDM_Sysdump_2021-07-09_17-43-05.tar.gz -iv

usage

usage: systemdumpy [-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.3.tar.gz (21.7 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.3-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: systemdumpy-1.0.3.tar.gz
  • Upload date:
  • Size: 21.7 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.3.tar.gz
Algorithm Hash digest
SHA256 b363f7b033b40b2d26b9fe3ff2a1dead754c8378f84776c57e82806fd45d097e
MD5 f0b7dbaf4fcc48cfea834795fb7576f4
BLAKE2b-256 90a6ea73abb5c3e1d23c825eb5f6e68dda892ca86e3903539171941c74a4f8da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: systemdumpy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e5aea0b25ac9a3fbe77fdd42a15ac5676dad8b823f811373b3951f1ae30041
MD5 ffa526492e29ebea75f64df1d2dd5ef8
BLAKE2b-256 4eb46bd983d5167b2a469b6350db212e7482aa72870a607287daedb294db95f1

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