IBM Support

vmcli set_password command fails with Authentication failure error.

Troubleshooting


Problem

The vmcli set_password command is used to configure the Data Protection for VMware command-line interface. The command fails with the ANS1025E error.

Symptom

The following example shows the error.

echo Password_string > pwd.txt
vmcli -f set_password -I ./pwd.txt
...
ANS1025E (RC137) Session rejected: Authentication failure

In this example, the "Password_string" is a correct password string which had been verified via the Backup-Archive client.

Cause

Incorrect permission of the "/opt/tivoli/tsm/tdpvmware/tsmcli/bin64/tsmcli" directory.
The "/opt/tivoli/tsm/tdpvmware/tsmcli/bin64/tsmcli" directory is created during installation of Data Protection for VMware. The directory is created with 4755 permission. If by any chance the permission is changed or the sticky bit is removed, it can cause issues that the tdpvmware user is unable to write to the password file.

Environment

Tivoli Storage Manager client for Virtual Environments

Diagnosing The Problem

Use the following steps to diagnose this issue.

  1. Update the vmcli node's password on the Tivoli Storage Manager server. For example :

    Update Node vmcli AAAAA
  2. Login as tdpvmware from the client machine and set the vmcli password:

    echo Password_string > pwd.txt
    vmcli -f set_password -I ./pwd.txt

    The command fails with the following error :

    ANS1025E (RC137) Session rejected: Authentication failure
  3. Verify the permissions of the tsmcli directory. For example :

    ls -al /opt/tivoli/tsm/tdpvmware/tsmcli/bin64/tsmcli
    -rwr-xr--x1 root tdpvmware 390416 Jan 22 2013 tsmcli

    In this output, the directory is missing the sticky bit.

Resolving The Problem

Use the following steps to resolve this issue.

  1. Ensure that the "/opt/tivoli/tsm/tdpvmware/tsmcli" directory has the right permission. As root user, run the following command :
    chmod 4755 /opt/tivoli/tsm/tdpvmware/tsmcli/bin64/tsmcli
  2. Update the vmcli node password on the Tivoli Storage Manager server using the following administrative command :
    upd node vmcli_nodename password
  3. Login as tdpvmware and run the set_password command. For example :

    su - tdpvmware
    echo Password_string > pwd.txt
    tsmcli -f set_password -I ./pwd.txt
[{"Product":{"code":"SSGSG7","label":"Tivoli Storage Manager"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Server","Platform":[{"code":"PF016","label":"Linux"}],"Version":"6.4;7.1","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

More support for:
Tivoli Storage Manager

Software version:
6.4, 7.1

Operating system(s):
Linux

Document number:
242045

Modified date:
17 June 2018

UID

swg21667516