• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

Issue: running dsmadmc (7.1.8.6 to Server 8.1.12) from OS cli using characters=$$ in password

Aldini

ADSM.ORG Member
Joined
Jul 5, 2016
Messages
19
Reaction score
0
Points
0
when I run a backup db command scripted using dsmadmc (not interactive shell) it accepts the $ character as a password but it does NOT display it in the activity log for backup db rather it substitutes other characters; for example if it were password=123456789$$ it would print in the actlog 123456789034567 now the set dbrecovery is enabled and the backup db completes without error but substitutes $ character for additonal random numbers; note the script runs the whole "backup db " command in double quotes but the password characters are NOT surrounded by any additional single characters within the backup db command - is that perhaps the problem? Thanks
 

smajl

ADSM.ORG Senior Member
Joined
Dec 10, 2009
Messages
176
Reaction score
21
Points
0
Location
Brno
double quotes allow variable substitution in shell/ksh/bash
$$ is a variable - it is the process ID (PID) of the script itself.

Use single quote:
❯ echo dsmadmc -password 1234567890$$
dsmadmc -password 12345678901100
❯ echo dsmadmc -password "1234567890$$"
dsmadmc -password 12345678901100
❯ echo dsmadmc -password '1234567890$$'
dsmadmc -password 1234567890$$

or put password in a variable
❯ PASS='1234567890$$'
❯ echo dsmadmc -password $PASS
dsmadmc -password 1234567890$$
 

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 22 19.8%
  • Keep using TSM for Spectrum Protect.

    Votes: 65 58.6%
  • Let's be formal and just say Spectrum Protect

    Votes: 15 13.5%
  • Other (please comement)

    Votes: 9 8.1%

Forum statistics

Threads
31,831
Messages
134,884
Members
21,793
Latest member
jonDoe2
Top