/PySystemsManager

A simple Python script used to SSH into boxes and complete tasks.

Primary LanguagePythonMIT LicenseMIT

PySystemsManager

A simple Python script used to SSH into boxes and complete tasks.

Example for Windows DHCP/DNS add host

Requirements

  • Python
  • Fabric for Python
  • A Windows box with an SSH server running (if you would like to use the Windows features)

Running the script

Simply run main.py! A menu of options will then be presented to you.

Script Capabilities

Windows
  • Add hosts to DHCP and/or DNS
  • View DHCP reservations
  • Add an AD user account
  • Unlock or disable an AD user account
  • View Hyper-V VMs
Linux
  • Restart services
  • Restart or shutdown hosts

Notes

  • For SSH on Windows, I have been using freeSSHd.
  • Make sure the fab_functions.py file is in the same directory as the main.py file.
  • This script will not run without Fabric.