Code Monkey home page Code Monkey logo

homelab's Introduction

Proxmox CLI Tool

A Python CLI tool to interact with Proxmox using the Proxmoxer library.

Table of Contents

Introduction

This command-line tool allows you to interact with Proxmox using various commands.

Setup

  1. Clone this repository:
    git clone https://github.com/smithlabs/proxmox-cli.git
    cd proxmox-cli

Settings

  1. Create a settings.yaml file in the root directory with your Proxmox credentials and settings: Example on a fresh out-of-the-box Proxmox install
    proxmox_host: "proxmox.smithlabs.net"
    user: "root@pam"
    password: "MySecurePassword123!"
    verify_ssl: False
    target_node: "pve"  # Specify your target node name here
    Make sure to protect the settings.yaml file to keep your credentials secure:
    chmod 600 settings.yaml

Virtual Environment

  1. It's recommended to use a virtual environment for better isolation:
    # Create a virtual environment
    python -m venv venv
    
    # Activate the virtual environment
    source venv/bin/activate  # On Windows: .\venv\Scripts\activate
    
    # Install required packages
    pip install -r requirements.txt

Usage

Run the main.py script with the desired flags to interact with Proxmox.

Flags

  • --users: Retrieve and display Proxmox users' information.
  • --nodes: List all available nodes and display their information.
  • --network-info: Retrieve and display network information for the specified target node.

Examples

  • Display Proxmox users:
    python main.py --users
  • List available nodes and display their information:
    python main.py --nodes
  • Retrieve and display network information for the specified target node:
    python main.py --network-info
    python main.py --network-info screenshot

Author

Sean Smith

homelab's People

Contributors

smithlabs 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.