Start a Conversation

Unsolved

D

3 Posts

1249

January 2nd, 2019 05:00

Integrating iDRAC in Password Vaulting - Regex issues

Hello Does anybody here integrated the iDRAC systems with any type of Password Vaulting? My goal is enable Password vaulting to take in charge the administrative credentials. I'm in trouble with regex filter. When I run: "racadm get idrac.users.4.username" iDRAC return this: " [Key=idrac.Embedded.#Users.4] UserName=testuser " I'm trying filter this with regex but it fails. I suspect there is some special non visible character that I'm missing. Anyone with expeienced with this could help me? Thank you Daniel

November 6th, 2019 01:00

Hi,

Executing this command

 "racadm get idrac.users.4.username" -> output is 

[Key=idrac.Embedded.#Users.4] UserName=testuser

using regex whatever the data here you can extract.

import re
>>> re.findall(".*UserName=(.*)",st)
['testuser ']

>>>re.findall(".*Key=(.*)UserName",st)
['idrac.Embedded.#Users.4] ']

is it you are asking for the command of idrac to return password and to extract.

but with the output we can extract value.

Thanks

DELL-SirishaU

#Iwork4Dell

 

 

No Events found!

Top