Giter Club home page Giter Club logo

setup-devs-python's Introduction

Automated airOS devices setup (Python)

Requirements

Install required packages: pip install -r requirements.txt


setup-dev-oop.py

Usage

See Help Page: python setup-dev-oop.py -h

Detailed usage

usage: setup-dev-oop.py [-h] [--do-restart] [--new-password NEW_PASSWORD] [--smart-passwords SMART_PASSWORDS] net_address mask uname passwords

argument format description
net_address IP Address Network address to configure devices in
mask Mask Address Mask address of network
uname String User name on all devices (for now it has to be the same)
passwords File path or string Path to file with list of passwords for devices or list of password serparated by space
--do-restart None When enabled devices will be rebooted after configuration
--new-passwords String Single password that will be set on all devices
--smart-passwords File path Path to file with specified new passwords for each IP Address

Smart passwords file format

To correctly specify password for each ip address create file with list of ip addresses and passwords like this: IP_ADDRESS$to$PASSWORD

And put every record in new line.


reboot-devices.py

Script that set reboot job for random time between specified hours.

Usage

Help page: python reboot-devices.py -h

Mode reboot

Create reboot jobs on devices in network/

Syntax for this mode: python reboot-devices.py reboot address mask uname passwords time

argument type description
address IP Address Network addres to work on
mask Mask Address Mask address of network
uname String User name on all devices
passwords File path or string List of passwords or file with list of passwords
time String Time interval in which devices should reboot (START_TIME-END_TIME, eg. 22:00-23:00)

Mode clear

Removes all pending reboots on devices in network.

Syntax for this mode: python reboot-devices.py clear address mask uname passwords

argument type description
address IP Address Network addres to work on
mask Mask Address Mask address of network
uname String User name on all devices
passwords File path or string List of passwords or file with list of passwords

setup-devs-python's People

Contributors

mattthecoder-w avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.