-
Linux: How to suppress permission denied messages with find command
When doing a find command, like the following, if you do not have sufficient permissions, you will get a lot of “permission denied” messages. This sometimes drowns out the few lines where you actually get a hit. One way to avoid that is to add the following to the command: find / -name filename.txt 2>/dev/null… Continue reading
-
Documentum D2: DM_STORAGE_E_BAD_TICKET Error
Users were getting the following error just after logging in to D2: The object id of the object appeared in the log file. Since that object was a dm_audit_trail object for a test object, I deleted the object using the following API command: destroy,c,<r_object_id> This resolved the error. Continue reading
-
Linux: Entropy fix
To check entropy: cat /proc/sys/kernel/random/entropy_avail To increase entropy: rngd -r /dev/urandom -o /dev/random -b -t 1 Continue reading
-
Documentum D2: Impossible to Decrypt Method Server Response
The impossible to decrypt method server error is almost always related to your lockbox. ERROR: com/emc/clb/clbBridge/clbBridgeJNI ON EACH CONTENT SERVER Perform the following actions on both Content Servers as <install_owner> cd <lockbox_file_location> rm D2.lockbox* java -Dclb.library.path=<lockbox_file_location>/linux_gcc34_ia32 com.emc.common.java.crypto.SetLockboxProperty <lockbox_file_location> D2Method.passphrase <lockbox_passphrase> Expected Output JVM : 1.7.0_72 (64bits) ‘<lockbox_file_location>/D2.lockbox’ file updated ‘D2Method.passphrase’ property updated Copy the newly… Continue reading
-
Documentum D2: XML Cache
D2 has cache files in the following location on the app server: /tmp The file names that can be safely deleted to clear the cache are ls /tmp/*cache* xml-cache.index xml-cache.data taxonomy_level-cache.data dictionary_dql-cache.data folder-cache.data skin-cache.data Sometimes if doing Tools –> Refresh Cache does not work, try deleting the above caches. This is definitely needed when doing… Continue reading
-
Documentum: Getting multiple folders / files in DQL result
If you are getting multiple results in your DQL results for single objects, modify the server.ini file on the Content Server to add the following line return_top_results_row_based=false in the [SERVER_STARTUP] section and restart the Content Server. Here are the complete steps: Stop the following in order JMS, All running Docbases and Docbroker Locate the server.ini… Continue reading
-
Documentum: DQL to List all groups a user belongs to
The DQL to query the list of groups that a user belongs to: select group_name from dm_group where any users_names = ‘<user id>’; To query all groups to which a user belongs whether directly or indirectly, use: select group_name from dm_group where any i_all_users_names = ‘<user id>’; To query for groups the logged in user… Continue reading
-
Documentum: 3 Ways to Create a User in Documentum
Here are the three ways to create a user in Documentum: DFC ———————————- IDfUser dfcUser = (IDfUser) getSession().newObject(“dm_user”); dfcUser.setUserName(“username”); dfcUser.setUserLoginName(“username”); dfcUser.setString(“user_source”,”inline password”); dfcUser.setString(“user_password”,”somepassword”); dfcUser.setString(“user_os_name”,”username”); dfcUser.setString(“description”,”new user description”); dfcUser.setDefaultFolder(“/Temp”, true); dfcUser.save(); DQL —————————- create “dm_user” object set client_capability=2, set default_folder=’’, set home_docbase=’’, set mailto:user_address=’a@abc.com’, set user_os_domain=’’, set user_name=’’, set user_os_name=’’, set user_privileges=0; API ——————————- create,c,dm_user set,c,l,user_name… Continue reading
-
Java: How to extract lines matching a pattern from text file
Here’s some code I wrote in java to extract filepaths from a log file: import java.io.*; /** * Created by amitabh on 12/14/15. */ import java.util.regex.Matcher; import java.util.regex.Pattern; public class ReadFile { public static void main(String[] args) throws Exception { //String folderPath = “U:\\Upgrade_DMFileReport_Compare\\dm_FileReport-EDMS-Prod_Orig”; //String folderPath = “U:\\Upgrade_DMFileReport_Compare\\dm_FileReport-Legacy-Prod_Orig”; String folderPath =… Continue reading
-
Linux: Comparing two files in Linux
If you need to compare two text files in Linux, try the following command: comm -23 <(sort OLDFILE) < (sort NEWFILE > OUTPUTFILE Options Explained: -1 suppress lines unique to OLDFILE -2 suppress lines unique to NEWFILE -3 suppress lines that appear in both files Continue reading
About Me
Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.
Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.
- Ability to learn new technologies and platforms quickly and apply them to the task at hand.
- Excellent analytical skills, and strong communication and collaboration abilities.
- Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
in both Linux and Windows based environments