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 to login to AMX
	password: password to login to AMX
	log_type: default 'error_log'. 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'. Case insensitive.
	path: file default 'systems/{log_type}/'. 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.

run():
	Begin connecting to systems in set_systems() and 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-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

amxlogs-0.0.2-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

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