Skip to content

CLI tool that automates browser login to server BMC web interfaces using Selenium

License

Notifications You must be signed in to change notification settings

theopsguy/bmc-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMC Launcher

A command-line utility that uses Selenium WebDriver to launch a browser, navigate to a server's BMC (Baseboard Management Controller) web interface, and login automatically.

Installation

  1. Create a virtualenv (recommended)

    python3 -m venv ~/bmc_launcher && source ~/bmc_launcher/bin/activate
    
  2. Clone the repository

    git clone https://github.com/theopsguy/bmc-launcher.git
    cd bmc-launcher
    
  3. Install dependencies and utility:

    pip3 install poetry && poetry install
    

Configuration

Default location:

~/.bmc_launcher/config.yaml

Example

default_credentials:
  hpe:
    username: admin
    password: mysecret
  dell:
    username: root
    password: dellpass

servers:
  - name: web00
    ip: 192.168.1.10
    manufacturer: HPE
  - name: db00
    ip: 192.168.1.11
    manufacturer: dell
    credentials:
      username: specialuser
      password: otherpass

Usage

  • List hosts defined in the configuration:
% python3 bmc_launcher/main.py -l
  - name: web00
    url: https://192.168.1.10
    manufacturer: HPE
    credentials:
      username: Administrator
      password: '**********'
    ilo_version: 4
  - name: firewall00
    url: https://192.168.1.1
    manufacturer: SUPERMICRO
    credentials:
  - name: test_dell
    url: https://10.0.0.1
    manufacturer: DELL
    credentials:
    idrac_version: 9
  • Launch BMC:
python3 bmc_launcher/main.py -H web00 -i

Note, -i disables certificate validation.

About

CLI tool that automates browser login to server BMC web interfaces using Selenium

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages