Giter Club home page Giter Club logo

Comments (1)

texroemer avatar texroemer commented on September 27, 2024

Hi @joshuajcone

Thanks for reporting the issue, i have fixed the bug and uploaded cmdlet to GitHub and Powershell gallery. Example below of running the updated cmdlet.

1. Confirm user account ID 16 does not exist.

PS C:\> Invoke-CreateIdracUserPasswordREDFISH -idrac_ip 192.168.0.120 -idrac_username root -idrac_password Test1234# -get_idrac_user_accounts -idrac_user_id 16

- INFO, executing GET command to get iDRAC user account 16 information


@odata.context         : /redfish/v1/$metadata#ManagerAccount.ManagerAccount
@odata.etag            : "752100"
@odata.id              : /redfish/v1/AccountService/Accounts/16
@odata.type            : #ManagerAccount.v1_10_0.ManagerAccount
AccountTypes           : {Redfish, SNMP, OEM, HostConsole...}
Description            : User Account
Enabled                : False
Id                     : 16
Keys                   : @{@odata.id=/redfish/v1/AccountService/Accounts/16/Keys}
Links                  : @{Role=}
Locked                 : False
Name                   : User Account
OEMAccountTypes        : {IPMI, SOL, WSMAN, UI...}
Oem                    : @{Dell=}
Password               :
PasswordChangeRequired : False
PasswordExpiration     :
RoleId                 : None
SNMP                   : @{AuthenticationKey=; AuthenticationKeySet=False; AuthenticationProtocol=HMAC_SHA96; EncryptionKey=; EncryptionKeySet=False; EncryptionProtocol=CFB128_AES128}
StrictAccountTypes     : False
UserName               :

2. Create iDRAC user account ID 16. 

PS C:\> Invoke-CreateIdracUserPasswordREDFISH -idrac_ip 192.168.0.120 -idrac_username root -idrac_password Test1234# -idrac_user_id 16 -idrac_user_privilege Operator -idrac_user_enable true

- PASS, statuscode 200 returned successfully for PATCH command to create iDRAC user
- PASS, iDRAC user ID '16' successfully created

3. Test iDRAC user account 16, confirm it works. 

PS C:\> Invoke-CreateIdracUserPasswordREDFISH -idrac_ip 192.168.0.120 -idrac_username tester -idrac_password Test789# -get_idrac_user_accounts -idrac_user_id 16

- INFO, executing GET command to get iDRAC user account 16 information


@odata.context         : /redfish/v1/$metadata#ManagerAccount.ManagerAccount
@odata.etag            : "865552"
@odata.id              : /redfish/v1/AccountService/Accounts/16
@odata.type            : #ManagerAccount.v1_10_0.ManagerAccount
AccountTypes           : {Redfish, SNMP, OEM, HostConsole...}
Description            : User Account
Enabled                : True
Id                     : 16
Keys                   : @{@odata.id=/redfish/v1/AccountService/Accounts/16/Keys}
Links                  : @{Role=}
Locked                 : False
Name                   : User Account
OEMAccountTypes        : {IPMI, SOL, WSMAN, UI...}
Oem                    : @{Dell=}
Password               :
PasswordChangeRequired : False
PasswordExpiration     :
RoleId                 : Operator
SNMP                   : @{AuthenticationKey=; AuthenticationKeySet=True; AuthenticationProtocol=HMAC_SHA96; EncryptionKey=; EncryptionKeySet=True; EncryptionProtocol=CFB128_AES128}
StrictAccountTypes     : False
UserName               : tester

If you still see issues please let me know.

Thanks
Tex

from idrac-redfish-scripting.

Related Issues (20)

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.