Comments (15)
Not sure if it is because of special characters in my password, but I had to enclose the CIFS username and and password in double quotes to get it to work. Issue resolved.
from idrac-redfish-scripting.
Hi @srcauley
Thanks for root causing the issue and yes if your network share password has special characters surround the string with quotes. I'll update the argument help text to state this info.
Thanks
Tex
from idrac-redfish-scripting.
@texroemer Ugh, sorry I got ahead of myself. I had started using RACADM to accomplish the ISO virtual media mount and initially had the same issue. I discovered that the quotes resolved the issue with RACADM, not InsertEjectVirtualMediaREDFISH.py I subsequently tried the same with the Python script and it still results in the same error. I have Re-opened the issue.
from idrac-redfish-scripting.
Ok can you share the special character(s) you're using in the password string.
from idrac-redfish-scripting.
Ok can you share the special character(s) you're using in the password string.
There is a ^ in my password.
from idrac-redfish-scripting.
I will get with my lab admin and see if there is another account I can use to rule out the special characters being the cause. I will let you know.
from idrac-redfish-scripting.
Tested CIFS user password with ^ and no issues with attach virtual media. Are you still seeing Redfish action fail?
C:\Python310>python InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^"
- PASS, POST command passed to successfully insert virtual media, status code 204 returned
from idrac-redfish-scripting.
python InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^"
sorry, may i have a extenstion question, above examples seems like no Donain Name required in sabma. If Donain Name is needed, what should the '--uripath' value in redfish script is like ? Thanks
from idrac-redfish-scripting.
InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^
Apologies for the slow reply. I ended up using BootToNetworkIsoOsdREDFISH.py instead to accomplish the task. I did however circle back to test again and I am no longer seeing the issue with the mount. I am not sure why it was failing during my last check. All appears well at this time. Thanks Tex!!
from idrac-redfish-scripting.
python InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^"
sorry, may i have a extenstion question, above examples seems like no Donain Name required in sabma. If Donain Name is needed, what should the '--uripath' value in redfish script is like ? Thanks
Perhaps try.... --username "DOMAIN_NAME/username" ###make sure to enclose in quotes. This is my best guess.
I'm no sure if that will work. I do not have to specify the domain name in my use case.
from idrac-redfish-scripting.
Tested CIFS user password with ^ and no issues with attach virtual media. Are you still seeing Redfish action fail?
C:\Python310>python InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^" - PASS, POST command passed to successfully insert virtual media, status code 204 returned
Closing this as issue is no longer reproducible. Using double quotes around passwords with special characters works as demonstrated in Tex's example.
from idrac-redfish-scripting.
python InsertEjectVirtualMediaREDFISH.py -ip 192.168.0.120 -u root -p calvin --action insert --index 1 --uripath //192.168.0.130/sambashare/boot.iso --username tester --password "Test123^"
sorry, may i have a extenstion question, above examples seems like no Donain Name required in sabma. If Donain Name is needed, what should the '--uripath' value in redfish script is like ? Thanks
Perhaps try.... --username "DOMAIN_NAME/username" ###make sure to enclose in quotes. This is my best guess.
I'm no sure if that will work. I do not have to specify the domain name in my use case.
Thanks @srcauley reply,
@texroemer because we have not the device to try in hand currently, but hope first understand related behavior.
could you help to clarify @srcauley reply ? many thanks
from idrac-redfish-scripting.
I currently don't have access to a samba share setup as a domain controller but if you do have to pass in the domain name to access the SMB share @srcauley response should work. Action VirtualMedia.InsertMedia DMTF does not support domain or workgroup properties to pass in for the body.
Thanks
Tex
from idrac-redfish-scripting.
I currently don't have access to a samba share setup as a domain controller but if you do have to pass in the domain name to access the SMB share @srcauley response should work. Action VirtualMedia.InsertMedia DMTF does not support domain or workgroup properties to pass in for the body.
Thanks Tex
@texroemer Not sure if you will consider to add statement about 'Donain Name' operation to this "InsertEjectVirtualMediaREDFISH.py" script help?
from idrac-redfish-scripting.
Thanks for pointing this out, I've updated the help text with this information.
-Tex
from idrac-redfish-scripting.
Related Issues (20)
- Switching the storage controller from PERC to HBA and vice-versa HOT 3
- 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 1
- Use redfish to mount local iso for OS install similar to how webUI works HOT 2
- iDRAC per FQDN via Redfish HOT 13
- 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
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.