e2e_appmon probe - script is not resolving password from nimGetEnv()
search cancel

e2e_appmon probe - script is not resolving password from nimGetEnv()

book

Article ID: 115485

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

e2e_appmon probe - script is not resolving password from nimGetEnv()
How can we encrypt the password string in our script?

Environment

e2e_appmon 2.40
UIM 8.51

Cause

In at least one customer case, the script was being launched from the Nimsoft recorder.
The code used a method call:
varPass$ = nimGetEnv$("pswd","wrongPassword")
This code puts the value of the "pswd" environment variable specified on the e2e_appmon probe.

<Please see attached file for image>

e2e_appmon probe IM console configuration for encrypted password

The customer was launching the script from the "Nimrecorder".
Since it was not being launched from the probe, the environment variable was lost.
So, the call defaults to the second string passed to "nimGetEnv":
varPass$ = nimGetEnv$("pswd","wrongPassword")
 
The script must be run from the probe in order to resolve the environment variable using the "Start At Once".
For example:

<Please see attached file for image>

IM console config for e2e_appmon probe start at once


 

Resolution

There are two methods to put an encrypted password in the script.
Above shows a method on how to do this through the probe environment variable.

Another method is to use the method in Nimrecorder to encrypt a string.

<Please see attached file for image>

User-added image

<Please see attached file for image>

User-added image

and in your script:
varPass$ = "PTNjSKHbHj80viwRX4sdTigdk+270m3"
and passing it to the form:
WriteHTMLEncrypted("INPUT PASSWORD[NAME= '_58_password']", varPass$)

Attachments

1558695424355000115485_sktwi1f5rjvs16i5a.jpeg get_app
1558695422569000115485_sktwi1f5rjvs16i59.jpeg get_app
1558695420609000115485_sktwi1f5rjvs16i58.jpeg get_app
1558695417480000115485_sktwi1f5rjvs16i57.jpeg get_app