Skip to content

ariael/Huawei-iBMC-Cmdlets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Huawei iBMC Cmdlets

Description

Huawei iBMC cmdlets provide powershell Cmdlets to manage iBMC using Redfish API. These cmdlets contains the most commonly used features such as: information query, RAID configuration, OS deploy, firmware upgrade.

Supported Device

Huawei Blade Server:        RH1288 V3, RH2288 V3, RH2288H V3, 1288H V5, 2288H V5, 2288 V5, 2488H V5
Huawei Rack Server:         CH121 V3, CH242 V3
Huawei High-density Server: XH622 V3, XH321 V5

Requirements

Install

  • Online installation

    Install-Module -Name Huawei-iBMC-Cmdlets -RequiredVersion 1.3.0
  • Local installation

    1、Decompress the Huawei-iBMC-Cmdlets v1.3.0.zip software packages to obtaion the Huawei-iBMC-Cmdlets folder
    2、Copy the Huawei-iBMC-Cmdlets folder to the PowerShell installation directory
    3、Run the following command to install Huawei-iBMC-Cmdlets:

    Import-Module -Name Huawei-iBMC-Cmdlets -Force

Usage

This is a sample for get user accounts:

PS C:\> $credential = Get-Credential
PS C:\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\> $Users = Get-iBMCUser -Session $session
PS C:\> $Users

Host     : 10.1.1.2
Id       : 2
Name     : User Account
UserName : Administrator
RoleId   : Administrator
Locked   : False
Enabled  : True
Oem      : @{Huawei=}

Host     : 10.1.1.2
Id       : 3
Name     : User Account
UserName : root
RoleId   : Administrator
Locked   : True
Enabled  : True
Oem      : @{Huawei=}

To get all available cmdlets provided by Huawei-iBMC-Cmdlets

PS C:\> Get-Command -Module Huawei-iBMC-Cmdlets

To get help for a specified cmdlet:

PS C:\> get-help Connect-iBMC -Full

Open Source Software Notice

https://github.com/Huawei/Huawei-iBMC-Cmdlets/blob/master/docs/Open_Source_Software_Notice.doc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 100.0%