Comments (1)
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)
- Importing CA certificate to iDRAC via Redfish HOT 6
- Traceback error running ExportSystemConfigurationLocalREDFISH.py HOT 2
- Delete portion of CreateDeleteIdracUsersREDFISH.py only disables the account; it doesn't delete it. HOT 2
- Redfish Resource not found - Export Configuration HOT 1
- Can't insert CD and RemovableMedia virtual media simultaneously HOT 5
- iDRAC Version 7.00.00.171 Traceback Errors HOT 14
- Export/import certificates HOT 1
- Account Services Question HOT 6
- Set-IdracLcSystemAttributesREDFISH does not work on iDRAC8 HOT 3
- Invoke-ChangeIdracUserPasswordREDFISH - New-Object : Exception calling ".ctor" with .... HOT 5
- GetFirmwareInventoryREDFISH.py - Enhancement request: Add or create new version to save to network share HOT 2
- LLDP is not providing the Device ID and the Port ID information. HOT 2
- Use redfish to mount local iso for OS install similar to how webUI works HOT 2
- iDRAC per FQDN via Redfish HOT 14
- Exported ServerConfigurationProfile has commented out properties HOT 2
- Where is the script GetBiosBootOrderBootSourceStateREDFISH.py? HOT 2
- Attribute HttpDev1Interface Vs PxeDev1Interface HOT 7
- Redfish Query HOT 6
- Unable to programmatically clear the Bios Setup Password on a Dell PowerEdge R750 HOT 5
- Broken link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idrac-redfish-scripting.