
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2016 06:34 AM
Hi Experts,
I have a SSHCommand probe that runs a shell script to launch SQLplus to connect to Oracle instances on the target server. It is working fine, but at the moment I have the Oracle user/password hard coded in the script.
Can I, and how, have the database credential stored in the custom credential table, and then call it from, or pass it to the shell script ?
Thanks in advance for any help,
john
Solved! Go to Solution.
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2016 08:08 AM
Hey John,
Yes, you can use gs.getProperty() or gs.getMessage() to access it.
Or as you said, you can store credentials on a custom table and access it using Glide Record too.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2016 06:07 AM
Hi David,
It is something I'll look into. As is a command line interface to CyberArk password vault.
For now this will suffice for the PoC work I am doing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2016 09:01 AM
An alternative is to have credentials added to a local file that can be parsed (included) into the bash script.
It's a bit of a kludge, but I've done this on some systems so that I could write scripts for people and just use placeholders for their values, safe that I wasn't exposed to any login details, e.g.:
sqlplus ${ORCL_USER}/{ORCL_PASS}@{ORCL_INSTANCE_NAME} < fetch-data.sql > results.txt 2> errors.log