UNSOLVED

DanielPeccini

updated

8 years ago

0

1273

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
  • DELL-Sirisha U

    1 Rookie

    30 Posts

    462

    0

    Posted 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