Skip to main content

amxmaintenance

pulls together telnet info, log checking, firmware checks, etc. run() returns the full object for inspection, but what you'll most likely end up working with is instance.campus, which is a list of AMX system dicts.

FullScan():

telnet_output_dir: (default: amx telnet responses/)

error_log_dir: (default: error log/)

camera_log_dir: (default: camera log/)

master_fw_dir: (default: firmware lists/)

device_fw_dir: (default: firmware lists/)

set_systems(systems):

list of dicts where each dict is an AMX system

minimum key requirements:

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

config_excel():

uses the amxtoexcel and exceltoamx packages

source_xlsx_path: default 'campus_rooms.xlsx'. This is the excel file that everything else depends on. Each AMX system row will be turned into a dictionary, and then they'll all be put into a list.

bare minimum requirements for each system:

'full_name'
'master_ip'
'master_model' in the format NI-700, NX-2200, etc.

export_xlsx: default True. Do you want to export the results to an excel file?

xlsx_output_path: default 'campus_complete.xlsx'. If export_xlsx is true, the results are written to this location.

config_telnet():

Uses the amxtelnet pkg. To send specific commands, use the amxtelnet pkg directly. Also checkout the amxbroadcast pkg (coming soon) if replies don't matter.

telnet_user_name: user name for logging into AMX masters.

telnet_password: password to use with telnet_user_name.

telnet_alt_username: default: 'administrator',

telnet_alt_password: default: 'password',

scan_telnet: default: True.

export_telnet_txt: default: True.

def config_logs():

Uses the amxlogs pkg. To check for other types of log files, use the amxlogs pkg directly.

check_error_log: default: True.

clear_error_logs: default: False.

error_log_type: default: 'error_log'.

check_camera_log: default: True.

clear_camera_logs: default: False.

camera_log_type: default: 'camera_log'.

def config_firmware():

ni_700_current: default: '4.1.419'.

ni_x100_current: default: '4.1.419'.

nx_current: default: '1.6.179'.

run():

Performs telnet scan of systems defined in set_systems, checks their firmware against the versions provided in config_firmware, checks for logs defined in config_logs, and exports the results to excel.

Returns everything to the instance for inspection, but the part you will be working with is instance.campus, which is a list of dicts, with each dict being an AMX master controller.

Metadata

Release files for amxmaintenance 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amxmaintenance 0.0.4
File Size Uploaded
amxmaintenance-0.0.4.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amxmaintenance 0.0.4
File Interpreter ABI Platform
amxmaintenance-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / amxmaintenance-0.0.4.tar.gz

Download URL amxmaintenance-0.0.4.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e20eb58d73e91f4dd3ba5b4fcf60e3368d22b7ced99ea152bf9c4d0ce85dad21
BLAKE2b-256 checksum
How to use checksums
35871ddc73b017f2d6f1d00e8e075c0c6af70737e2a4b422d6018ce3a7d2cec1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / amxmaintenance-0.0.4-py3-none-any.whl

Download URL amxmaintenance-0.0.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75405706f30ccade138cb58c8f4bbd3983ab46c8c76eea3561325c6285241c17
BLAKE2b-256 checksum
How to use checksums
25554500be1f4b94bb17b13729708bd6e6111bff27f76ffd7c13919469f926e8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page