Skip to main content

amx telnet info, firmware checks, logs, etc.

Project description

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.

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

amxmaintenance-0.0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

amxmaintenance-0.0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file amxmaintenance-0.0.4.tar.gz.

File metadata

  • Download URL: amxmaintenance-0.0.4.tar.gz
  • Upload date:
  • Size: 5.0 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 amxmaintenance-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e20eb58d73e91f4dd3ba5b4fcf60e3368d22b7ced99ea152bf9c4d0ce85dad21
MD5 596fa38da2fceeebd0dc9de86a6cf87a
BLAKE2b-256 35871ddc73b017f2d6f1d00e8e075c0c6af70737e2a4b422d6018ce3a7d2cec1

See more details on using hashes here.

File details

Details for the file amxmaintenance-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: amxmaintenance-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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 amxmaintenance-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 75405706f30ccade138cb58c8f4bbd3983ab46c8c76eea3561325c6285241c17
MD5 f812230b651f03794e9d95bfbcf86c16
BLAKE2b-256 25554500be1f4b94bb17b13729708bd6e6111bff27f76ffd7c13919469f926e8

See more details on using hashes here.

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