Skip to content

alkivi-sas/python-dlink-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script for DLink Switches

Simple script to deal with dlink switch that only have a web interface. Using request we can so far do the following actions :

  • Power POE off & on

Installation

You need python3 and pipenv, install this tools via your favorite way.

git clone https://github.com/alkivi-sas/python-dlink-switch
cd python-dlink-switch
pipenv install
pipenv shell

Usage

Once in your pipenv shell

./dlink.py --help
Usage: dlink.py [OPTIONS]

  Script to turn POE Off & On again.

Options:
  --user TEXT      User to log in.
  --password TEXT  Password for user.
  --ip TEXT        IP of the switch.
  --port INTEGER   Port number to reset.
  --help           Show this message and exit.

About

Scripts to manage DLINK Switch using their web UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages