Hi Scott,
Thanks for your input. I tried with the above script and now getting below error with regards to portal.
2020-04-29 06:14:18.828 Fastdatamasker version: 4.8.100.0
2020-04-29 06:14:18.835 Fastdatamasker build date - July 22 2019
2020-04-29 06:14:18.838 PID:13650@test
2020-04-29 06:14:18.838 Java version 1.8.0_242
2020-04-29 06:14:18.839 OPERATING SYSTEM USER: zashish.jaiswal
2020-04-29 06:14:18.850 Skipping cloakware configuration
2020-04-29 06:14:18.856 The connection to Test Data Manager telemetry service is currently disabled.
You can reenable the connection to the service by ensuring that environment variable TDM_PORTAL_URL is set and points to the
hostname where TDM Portal is installed (e.g. 'https://hostname:8443' or 'http://hostname:8080').
For details, please refer to the Test Data Manager documentation at
https://docops.ca.com/display/TDM/.Configure+Telemetry+v4.82020-04-29 06:14:18.862 Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
at com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:975)
at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1056)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853)
at com.sun.crypto.provider.PBES1Core.doFinal(PBES1Core.java:432)
at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(PBEWithMD5AndDESCipher.java:316)
at javax.crypto.Cipher.doFinal(Cipher.java:2164)
at com.grid_tools.products.datamasker.DesEncrypter.decrypt(DesEncrypter.java:83)
at com.grid_tools.products.datamasker.Datamasker.main(Datamasker.java:2753)
2020-04-29 06:14:18.868 Error decrypting epassword
2020-04-29 06:14:18.870 exit value = 1
Original Message:
Sent: 04-28-2020 08:55 AM
From: Scott Schmitz
Subject: Unable to run .sh file on FDM
Ashish, here's a running version as a reference. Note that it is used for masking flat files so I'm referencing FastDatamasker_flat.
Two differences I see:
(1) I keep the reference to com.grid_tools.products.datamasker.Datamasker in place
(2) The jar paths after the -cp are separated by colons (:) rather than semi-colons (;) as you have
<x-row>java -Dfile.encoding=UTF-8 -Djava.util.logging.config.file="/home/scott_schmitz/fdm/logging.properties" -Xms1000M -</x-row><x-row>Xmx4000M -XX:+HeapDumpOnOutOfMemoryError -cp ".:/home/scott_schmitz/fdm/Fastdatamasker_flat.jar:/home/scott_schmit</x-row><x-row>z/fdm/lib/*:" com.grid_tools.products.datamasker.Datamasker "/home/scott_schmitz/fdm/ccc.txt" "/home/scott_schmitz/</x-row><x-row>fdm/custmask.csv"</x-row>
Original Message:
Sent: 04-28-2020 06:23 AM
From: Ashish Jaiswal
Subject: Unable to run .sh file on FDM
Hi Billy,
We installed only FDM in console mode and not whole CA TDM package.
Original Message:
Sent: 04-28-2020 05:40 AM
From: Billy Keefer
Subject: Unable to run .sh file on FDM
Ashish could you please explain how you installed FDM on Linux? Did you used the standalone FDM install image?
Original Message:
Sent: 04-27-2020 04:41 AM
From: Ashish Jaiswal
Subject: Unable to run .sh file on FDM
Hi,
We have installed only FDM console mode on Linux and not whole package of CA TDM. The contents of .bat file are copied to .sh file and other files such as connection file, .csv file and seedfile are copied as well on Linux. There are few extra contents in batch file which are not present in FDM Linux files and it is throwing error while executing the shell file.
Can you please assist here. Much appreciated.
Sharing below the contents of batch and shell file along with the installed FDM files screen.
.bat file:
java -Dfile.encoding=UTF-8 -Djava.util.logging.config.file="C:/Program Files/Grid-Tools/FastDataMasker/logging.properties" -Xms100M -Xmx1000M -XX:+HeapDumpOnOutOfMemoryError -Djava.library.path="%PATH%;C:/Program Files/Grid-Tools/FastDataMasker/SQLSERVER_DLLs/x64" -cp ".;C:/Program Files/Grid-Tools/FastDataMasker/Fastdatamasker.jar;C:/Program Files/Grid-Tools/FastDataMasker/lib/*;C:/Program Files/Grid-Tools/FastDataMasker/custom/*;" com.grid_tools.products.datamasker.Datamasker "C:/Users/zashish.jaiswal/Desktop/connect_test.txt" "C:\Users\zashish.jaiswal\Desktop\test.csv" "C:\Users\zashish.jaiswal\Desktop\test_options.txt"
.sh file:
java -Dfile.encoding=UTF-8 -Djava.util.logging.config.file="/opt/FDM/logging.properties" -Xms100M -Xmx1000M -XX:+HeapDumpOnOutOfMemoryError -Djava.library.path="%PATH%" -cp ".;/opt/FDM/Fastdatamasker.jar;/opt/FDM/lib/*;/opt/FDM/custom_config/*;" com.grid_tools.products.datamasker.Datamasker "/home/Premium/connect_test.txt" "/home/Premium/test.csv" "/home/Premium/test_options.txt"
Installed FDM files:
[zashish.jaiswal@tdc1app020 ~]$ cd /opt/FDM
[zashish.jaiswal@tdc1app020 FDM]$ ls -ltr
total 103628
drwxrwxr-x 5 1000 1000 121 Jun 18 2019 jre
-rwxrwxr-x 1 root root 603578 Jul 22 2019 FDM.jar
-rwxrwxr-x 1 root root 2462 Jul 22 2019 logging.properties
-rwxrwxr-x 1 root root 814 Jul 22 2019 JavaSupportedEncodeMapping.propert ies
-rwxrwxr-x 1 root root 548 Jul 22 2019 custom_config.xml
-rwxrwxr-x 1 root root 85769 Jul 22 2019 config.xml
-rwxrwxr-x 1 root root 78336 Jul 22 2019 BuildMap.xls
-rwxrwxr-x 1 root root 355 Jul 22 2019 bigfdm.sh
-rwxrwxr-x 1 root root 731486 Jul 22 2019 Fastdatamasker.jar
-rwxrwxr-x 1 root root 728071 Jul 22 2019 Fastdatamasker_flat.jar
-rwxrwxr-x 1 root root 728071 Jul 22 2019 Fastdatamasker_simulate.jar
-rw------- 1 root root 102971351 Mar 30 14:06 fast_data_masker.tar.gz
drwxr-xr-x 3 root root 44 Mar 30 14:19 FDM_Installer_Linux
drwxrwxr-x 2 root root 31 Mar 30 15:06 GTFiles
drwxrwxr-x 2 root root 4096 Mar 30 15:06 lib
drwxrwxr-x 2 root root 4096 Mar 30 15:06 seedtables
drwxrwxr-x 2 root root 45 Mar 30 15:06 training
-rw-rw-r-- 1 root root 54889 Mar 30 15:06 lax.jar
-rwxr-xr-x 1 root root 83377 Mar 30 15:06 FastDataMasker
-rwxrwxr-x 1 root root 3043 Mar 30 15:06 FastDataMasker.lax
-rw-rw-r-- 1 root root 124 Mar 30 15:06 FDM.config
drwxrwxr-x 3 root root 230 Mar 30 15:06 _FastDataMasker_installation
------------------------------
Thanks & Regards,
Ashish Jaiswal
------------------------------