GithubHelp home page GithubHelp logo

ipmitool-wrapper's Introduction

ipmi.exe

PS C:\Users\efika> ipmi.exe --help
ipmi 0.1.4
Hosts management tool and ipmitool wrapper

USAGE:
    ipmi.exe [-- <ipmitool-args>...] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <ipmitool-args>...    The ipmitool args to process

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    host    Host management subcommand(s)
PS C:\Users\efika> # with the tool, goodbye:
PS C:\Users\efika> ipmitool.exe -I lanplus -H 000.000.000.000 -U admin -P admin <1st> <2nd> ...
PS C:\Users\efika> # say hello to:
PS C:\Users\efika> ipmi.exe -- <1st> <2nd> ...
PS C:\Users\efika> # [note]: please add ipmitool.exe to PATH before using it.

Host management

Host list example

PS C:\Users\efika> # none in list
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
---------------------------------------------
Please add at least one host:
    ipmi.exe host add -i <ip> -u <user> -p <pswd>
And then use it:
    ipmi.exe host use <index of host>

PS C:\Users\efika> # some in list
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
 0003        10.245.38.2                admin
 0004        10.245.38.3                 root
---------------------------------------------

PS C:\Users\efika>

Host add example

PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
---------------------------------------------
Please add at least one host:
    ipmi.exe host add -i <ip> -u <user> -p <pswd>
And then use it:
    ipmi.exe host use <index of host>

PS C:\Users\efika> # add 1st host
PS C:\Users\efika> ipmi host add -i 10.245.38.1 -u ADMIN -p ADMIN
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
---------------------------------------------

PS C:\Users\efika> # add 2nd host
PS C:\Users\efika> ipmi host add -i 10.245.38.1 -u admin -p admin
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
---------------------------------------------

PS C:\Users\efika> # add 3rd host
PS C:\Users\efika> ipmi host add -i 10.245.38.2 -u admin -p admin
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
 0003        10.245.38.2                admin
---------------------------------------------

PS C:\Users\efika> # update 3rd host's password
PS C:\Users\efika> ipmi host add -i 10.245.38.2 -u admin -p AdMiN
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
 0003        10.245.38.2                admin
---------------------------------------------

PS C:\Users\efika> # add 4th host
PS C:\Users\efika> ipmi host add -i 10.245.38.3 -u root -p root
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
 0003        10.245.38.2                admin
 0004        10.245.38.3                 root
---------------------------------------------

PS C:\Users\efika>

Host use example

PS C:\Users\efika> ipmi.exe host use 3
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
 0002        10.245.38.1                admin
*0003        10.245.38.2                admin
 0004        10.245.38.3                 root
---------------------------------------------

PS C:\Users\efika>

Host del example

PS C:\Users\efika> ipmi.exe host del 2
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.1                ADMIN
*0002        10.245.38.2                admin
 0003        10.245.38.3                 root
---------------------------------------------

PS C:\Users\efika>

Ipmitool wrapper

PS C:\Users\efika> # overall example of this tool, i hide part of ip with * for security:
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
---------------------------------------------
Please add at least one host:
    ipmi.exe host add -i <ip> -u <user> -p <pswd>
And then use it:
    ipmi.exe host use <index of host>

PS C:\Users\efika> ipmi.exe host add -i 10.245.38.*** -u ADMIN -p ADMIN
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
 0001        10.245.38.***              ADMIN
---------------------------------------------

PS C:\Users\efika> ipmi.exe host use 1
PS C:\Users\efika> ipmi.exe host list

---------------------------------------------
Index        IP                          User
-----        --                          ----
*0001        10.245.38.***              ADMIN
---------------------------------------------

PS C:\Users\efika> ipmi.exe -- user list
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit
2   ADMIN            false   false      true       ADMINISTRATOR
3   Administrator    true    true       true       ADMINISTRATOR
PS C:\Users\efika>

ipmitool-wrapper's People

Watchers

James Cloos 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.