Giter Club home page Giter Club logo

Comments (15)

srcauley avatar srcauley commented on June 25, 2024

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.

image

from idrac-redfish-scripting.

texroemer avatar texroemer commented on June 25, 2024

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.

srcauley avatar srcauley commented on June 25, 2024

@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.

texroemer avatar texroemer commented on June 25, 2024

Ok can you share the special character(s) you're using in the password string.

from idrac-redfish-scripting.

srcauley avatar srcauley commented on June 25, 2024

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.

srcauley avatar srcauley commented on June 25, 2024

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.

texroemer avatar texroemer commented on June 25, 2024

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.

vincent-tang1 avatar vincent-tang1 commented on June 25, 2024

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.

srcauley avatar srcauley commented on June 25, 2024

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.

srcauley avatar srcauley commented on June 25, 2024

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.

srcauley avatar srcauley commented on June 25, 2024

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.

vincent-tang1 avatar vincent-tang1 commented on June 25, 2024

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.

texroemer avatar texroemer commented on June 25, 2024

Hi @vincent-tang1

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.

vincent-tang1 avatar vincent-tang1 commented on June 25, 2024

Hi @vincent-tang1

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.

texroemer avatar texroemer commented on June 25, 2024

@vincent-tang1

Thanks for pointing this out, I've updated the help text with this information.

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