{"id":440,"date":"2020-12-08T08:53:00","date_gmt":"2020-12-08T07:53:00","guid":{"rendered":"http:\/\/blog.xoupix.fr\/?p=440"},"modified":"2022-01-27T09:58:21","modified_gmt":"2022-01-27T08:58:21","slug":"documentum-usefull-command-lines","status":"publish","type":"post","link":"https:\/\/blog.xoupix.fr\/index.php\/2020\/12\/08\/documentum-usefull-command-lines\/","title":{"rendered":"Documentum usefull command lines"},"content":{"rendered":"\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"encrypt-password\">Encrypt password<\/h2>\n\n\n\n<p>Documentum allow encrypted password when connecting to Content Server. To encrypt password, use the following command line:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin> java -cp \/path\/to\/dfc.jar com.documentum.fc.tools.RegistryPasswordUtils &lt;password to encrypt><\/pre>\n\n\n\n<p>For example, encoding &#8220;myS3curedP@ssword&#8221; password:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin> java -cp \/logiciels\/dctm\/16.4\/dfc\/dfc.jar com.documentum.fc.tools.RegistryPasswordUtils myS3curedP@ssword\nAAAAEI6wFJ0Bp\/3Z8+wEuej+xjss+KHeyO7pCw0wy2K\/5L+aFtoqgZ6tKjzp92O9VRCeaQ== <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"testing-databse-connection-oracle\">Testing databse connection (Oracle)<\/h2>\n\n\n\n<p>For Oracle database, tnsnames.ora must be configured before executing this command.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin $ tnsping &lt;ORACLE_SID>\n\nTNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 06-DEC-2021 08:04:43\n\nCopyright (c) 1997, 2020, Oracle.  All rights reserved.\n\nUsed parameter files:\n\n\nUsed TNSNAMES adapter to resolve the alias\nAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = &lt;ORACLE_HOST>)(PORT = &lt;ORACLE_PORT>)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = &lt;ORACLE_SID>)))\nOK (10 msec) <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"testing-docbroker-docbase-connection\">Testing DocBroker \/ DocBase connection<\/h2>\n\n\n\n<p>Testing DocBrocker connection (assuming that you are currently connected to server running DocBroker)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin $ dmqdocbroker -t $(hostname -f) -p 1489 -c ping\ndmqdocbroker: A DocBroker Query Tool\ndmqdocbroker: Documentum Client Library Version: 20.4.0000.0199\nUsing specified port: 1489\nSuccessful reply from docbroker at host (zer33rk9) on port(1490) running software version (20.4.0000.0193  Linux64).<\/pre>\n\n\n\n<p>Testing DocBase connection (assuming that you are currently connected to server running DocBase) <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin $ java com.documentum.server.impl.utils.ContentServerStatus -docbase_name &lt;docbase_name>.&lt;docbase_name> -user_name &lt;user to use on connect>\nSession 0110c8eb8004b95e of user dmadmin is Active\nSession 0110c8eb8004b95d of user dm_bof_registry is Active\nServer is up running. \n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"displaying-keystore-entries\">Displaying keystore entries<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dmadmin $ keytool -list -keystore \/path\/to\/dfc.keystore -storepass &lt;KEYSTORE_PASSWD> -v\nKeystore type: PKCS12\nKeystore provider: SUN\n\nYour keystore contains 1 entry\n\nAlias name: dfcalias\nCreation date: Dec 5, 2021\nEntry type: PrivateKeyEntry\nCertificate chain length: 1\nCertificate[1]:\nOwner: CN=&lt;CLIENT_ID>, O=OpenText, OU=Documentum\nIssuer: CN=&lt;CLIENT_ID>, O=OpenText, OU=Documentum\nSerial number: &lt;SERIAL_NUMBER>\nValid from: Sun Dec 05 13:50:19 CET 2021 until: Wed Dec 03 13:55:19 CET 2031\nCertificate fingerprints:\n         SHA1: &lt;SHA1_FINGERPRINT>\n         SHA256: &lt;SHA256_FINGERPRINT>\nSignature algorithm name: SHA256withRSA\nSubject Public Key Algorithm: 2048-bit RSA key\nVersion: 3\n\n\n*******************************************\n******************************************* <\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-documentum"],"_links":{"self":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":5,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions\/499"}],"wp:attachment":[{"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xoupix.fr\/index.php\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}