Skip to main content

finds, downloads, and clears logs from AMX devices using ftp

Project description

amxlogs

finds, extracts, and clears logs from AMX devices using ftp

LogSniffer():

returns:

logs are written to file and/or logged.

set_systems():

list of dicts where each dict is an AMX system.

minimum key requirements:

'full_name' (string)
'master_ip' (string)

config():

user_name: user name used to login to AMX

password: password used to login to AMX

log_type: default 'error_log', case insensitive.

Also try 'camera_log'. Additional types depend on what you name them when you create them in the AMX program. So if you had AMX create logs called late_night_usage.txt, log_type would be 'late_night_usage'.

output_dir: path to dir used to store received files.

File name is created using 'full_name' amx logfile name

clear_logs: default False.

Use True to delete the log files after they are downloaded.

debug_ftp: default 0.

Set to 1 to view ftplib's builtin debugger on stdout.

timeout: default 10. Seconds to timeout socket connection.

run():

Begin connecting to systems in set_systems(), download logs that match log_type, using settings from config()

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

amxlogs-1.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

amxlogs-1.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file amxlogs-1.1.3.tar.gz.

File metadata

  • Download URL: amxlogs-1.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for amxlogs-1.1.3.tar.gz
Algorithm Hash digest
SHA256 00aba22a9341265b4784c98bc91815caf6710bbe637cd86d8f2cfaeb4b06781e
MD5 53ccf82bb9784b8da29ba7c08a026aa0
BLAKE2b-256 eb3a99868b7379e204796acbb1749428def7a822c221aaf895f424ae71b43264

See more details on using hashes here.

File details

Details for the file amxlogs-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: amxlogs-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for amxlogs-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0ab063ea123d040b74654b7f8aa3a863c5e8ee21ee8f100905f9a213e2b18e8
MD5 250d263a1a8ae49044cb04cf77b0039d
BLAKE2b-256 088080e9d6b9a42898566cc236f61f4d3ba791bdc744947d35e0c4809e79db81

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