### Configure INIT Record for Automatic Instance Startup (Shell Script) Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=aix-starting-instance-object-server This example demonstrates an INIT record configuration for automatically starting the 'archive' instance when the operating system initializes on an object server. Ensure the path to the arsobjd binary is correct for your installation. ```shell ars4:2:once:/opt/IBM/ondemand/V9.5/bin/arsobjd archive ``` -------------------------------- ### Record Installation Answers with Setup -r (Windows) Source: https://www.ibm.com/docs/en/cmofm/10.1_topic=files-creating-response-file This command records all user answers during the product installation process into a default response file named SETUP.ISS. This is useful for automating future installations by providing pre-defined answers. The command assumes a Windows environment and that the setup executable is located in the client\windows directory. ```shell \client\windows\setup -r ``` -------------------------------- ### Example Transform Setup: Line Data to PDF Source: https://www.ibm.com/docs/en/cmofm/10.1_topic=file-example-transform-setup Demonstrates an example transform setup for Content Manager OnDemand Distribution Facility (ODF) to convert line data into a PDF file. It includes the command-line usage and options for the line2pdf utility. ```shell /opt/line2pdf>./line2pdf Converts line data into a PDF file. Usage: line2pdf [options] {input.txt} output-file < input-file Options: -r replace existing output file -n nnn set the lines per page to nnn -lm nnn set the maximum line length -x nnn choose the type of carriage control -l nnn choose a fixed line length -a nnn choose a code page -ag application group name -an application name -af full path to the configuration file ``` -------------------------------- ### Create Custom Response File with Setup -r -f1 Source: https://www.ibm.com/docs/en/cmofm/9.0_topic=files-creating-response-file This command runs the Setup program, records installation responses, and saves them to a user-specified response file (e.g., ARS32IN.ISS) in a designated directory (e.g., N:\client\windows\). This allows for customized installation configurations. ```command-line \client\windows\setup -r -f1n:\client\windows\ars32in.iss ``` -------------------------------- ### Silent Installation with Default Response File Source: https://www.ibm.com/docs/en/cmofm/9.0_topic=files-installing-software-using-response-file This command initiates a silent software installation using the default response file (SETUP.ISS) located in the same directory as the Setup program. No user interaction or dialog boxes are displayed during the installation process. ```shell \client\windows\setup -s ``` -------------------------------- ### Execute Content Manager OnDemand Installer on Solaris Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=servers-installing-content-manager-ondemand-software-solaris This command initiates the graphical installation of Content Manager OnDemand on a Solaris server. Ensure you are logged in as the root user and navigate to the directory containing the installation executable before running this command. The installer will then guide you through the setup process. ```shell ./odsun.bin ``` -------------------------------- ### PDOC Report Indexing with TYPE=GROUPRANGE2 (Example 2) Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=parameters-indexstyle Another example configuration for PDOC reports using TYPE=GROUPRANGE2 for INDEX2. This setup utilizes FIELD2 for both start and end range values, using TRIGGER3 to locate them based on specific criteria. ```INI CC=YES CCTYPE=A FILEFORMAT=RECORD,90 GROUPMAXPAGES=100 TRIGGER1=*,1,X'F1',(TYPE=GROUP) /* 1 */ TRIGGER2=*,2,X'C2C1D5D2',(TYPE=GROUP) /* BANK */ TRIGGER3=*,46,X'4B',(TYPE=FLOAT) /* . */ FIELD1=1,11,3,(TRIGGER=1,BASE=0) FIELD2=0,3,10,(TRIGGER=3,BASE=0) FIELD3=0,83,8,(TRIGGER=1,BASE=0) INDEX1=X'C2C1D5D26DC2D9C1D5C3C8',FIELD1,(TYPE=GROUP,BREAK=YES) /* BANK_BRANCH */ ``` -------------------------------- ### Update arsdb Command and Configure Automatic Db2 Startup Source: https://www.ibm.com/docs/en/cmofm/10.5_topic=linux-starting-database This snippet shows the command to update the arsdb for logging and an example of an INIT record for automatically starting the database on OS initialization. It requires the IBM OnDemand installation path and assumes Db2 is also installed. ```shell opt/ibm/ondemand/V10.5/bin/arsdb -gv >> /tmp/arsdb.log 2>&1 ``` ```shell ars2:2:wait:/opt/ibm/ondemand/V10.5/bin/arsdb -gv >> /tmp/arsdb.log 2>&1 ``` -------------------------------- ### Logon and Search Setup using IBM Content Manager OnDemand Java API Source: https://www.ibm.com/docs/en/cmofm/10.1_topic=applications-searching-folder This Java code snippet handles the initial setup for interacting with IBM Content Manager OnDemand. It parses command-line arguments to configure server connection details, including server address, port, user credentials, and folder name. It then establishes a connection, logs on to the server, and opens the specified folder. The code also includes logic for setting up search criteria based on provided parameters like criterion name, operator, and search values. ```java System.out.println( "" ); //---------- // Logon to specified server //---------- use_default_values = argv.length == 6; server = argv[0]; port = Integer.parseInt(argv[1]); userid = argv[2]; password = argv[3]; folder = argv[4]; maxHits = Integer.parseInt(argv[5]); crit = argv[6]; operator = argv[7]; value1 = argv[8]; value2 = argv[9]; ODConfig odConfig = new ODConfig(); if(odConfig != null) { odServer = new ODServer(odConfig ); odServer.initialize( "TcSearch.java" ); odServer.setPort(port); System.out.println( "Logging on to " + server + " server with user " + userid + "..." ); odServer.logon( server, userid, password); //---------- // Open the specified folder //---------- System.out.println( "Opening " + folder + " folder..." ); odFolder = odServer.openFolder( folder ); System.out.println( "Name='" + odFolder.getName( ) + "' Desc='" + odFolder.getDescription( ) + "'" ); //---------- // If we are not using the default search values: //---------- if ( !use_default_values ) { //---------- // Find the requested criteria //---------- System.out.println( "Getting " + crit + " criteria..." ); odCrit = odFolder.getCriteria( crit ); if ( odCrit == null ) System.out.println( " *** " + crit + " criteria does not exist - " ); System.out.println( " NullPointerException will be reported" ); //---------- // Convert the operator parameter to the internal operator value and set // the criteria operator //---------- System.out.println( "Setting operator to " + operator + "..." ); if ( operator.equals( "eq" ) ) opr = ODConstant.OPEqual; else if ( operator.equals( "ne" ) ) opr = ODConstant.OPNotEqual; else if ( operator.equals( "lt" ) ) opr = ODConstant.OPLessThan; else if ( operator.equals( "le" ) ) opr = ODConstant.OPLessThanEqual; else if ( operator.equals( "gt" ) ) opr = ODConstant.OPGreaterThan; else if ( operator.equals( "ge" ) ) opr = ODConstant.OPGreaterThanEqual; else if ( operator.equals( "in" ) ) opr = ODConstant.OPIn; else if ( operator.equals( "ni" ) ) opr = ODConstant.OPNotIn; else if ( operator.equals( "li" ) ) opr = ODConstant.OPLike; else if ( operator.equals( "nl" ) ) opr = ODConstant.OPNotLike; else if ( operator.equals( "be" ) ) opr = ODConstant.OPBetween; else if ( operator.equals( "nb" ) ) opr = ODConstant.OPNotBetween; else opr = -1; System.out.println( "Setting operand(s)..." ); odCrit.setOperator( opr ); //---------- // Set the search values //---------- if ( opr == ODConstant.OPBetween || opr == ODConstant.OPNotBetween ) { odCrit.setSearchValues( value1, value2 ); System.out.println( " " + odCrit.getName( ) + " " + getOperatorName( opr ) + " " + value1); System.out.println( " and " + value2 ); } else { odCrit.setSearchValue( value1 ); System.out.println( " " + odCrit.getName( ) + " " + getOperatorName( opr ) + " " + value1 ); } } //---------- // Set Max Hits limit if specified //---------- if (maxHits != -1) { System.out.println("Setting MaxHITS to " + maxHits + "."); odFolder.setMaxHits(maxHits); } else System.out.println("No MaxHits passed in. Will use the MaxHits in arswww.props/ODConfig, "); ``` -------------------------------- ### Example Device Formats for Database Backup Source: https://www.ibm.com/docs/en/cmofm/9.0_topic=arsdb-parameters Provides examples of how to specify different types of devices for database backup. This includes tape devices for Unix/Linux and Windows, as well as local file paths. ```bash /dev/rmt0,/dev/rmt1,/dev/rmt2 ``` ```bash "\\.\\Tape0","\\.\\Tape1","\\.\\Tape2" ``` ```bash /arsdb/backup1,/arsdb/backup2,/arsdb/backup3 ``` -------------------------------- ### Example: Specifying Line2PDF Installation Path Source: https://www.ibm.com/docs/en/cmofm/9.0_topic=ltc-parameters This example shows how to specify the installation path for the Line2PDF Transform program. On a Windows system, if Line2PDF is installed in 'c:\l2p', this parameter helps the utility locate its necessary files. ```bash line2pdf -ip c:\l2p ... ``` -------------------------------- ### Retrieve Public Annotations with ARSDOC GET Source: https://www.ibm.com/docs/en/cmofm/10.1_topic=arsdoc-examples This example demonstrates using the ARSDOC GET function with the '-A' parameter to retrieve public text annotations for documents matching specific criteria. ```bash arsdoc get -h ARCHIVE -u sysadmin -f "Credit Card Statements" -q named_query -o loaddata -a -g -c -N -A 0 -v ``` -------------------------------- ### Install Enhanced Retention Management - Windows Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=system-installing-enhanced-retention-management Command to start the Enhanced Retention Management installation program on Windows systems. Requires the installation media path. ```batch x:\windows\odermwin.exe ``` -------------------------------- ### Start ARSLOAD with INIT Record (Shell) Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=program-automating-arsload This example demonstrates an INIT record configuration for automatically launching the ARSLOAD program. It specifies the path to the executable, several data directories, and the instance name. Users must verify and replace the directory paths with valid ones on their server. The ARSLOAD program, by default, deletes input files after processing and writes output/error messages to standard output, standard error, and the system log. ```shell ars6:2:once:/opt/IBM/ondemand/V9.5/bin/arsload -v -c /arsacif/acif4 -d /arsacif/acif1 -d /arsacif/acif2 -d /arsacif/acif3 -I archive ``` -------------------------------- ### INIT Record Example: Starting ARSJESD Program Source: https://www.ibm.com/docs/en/cmofm/9.5_topic=programs-arsjesd-data-load-program This example demonstrates an INIT record used to automatically start the ARSJESD program during operating system initialization. It specifies the program path, TCP/IP port to monitor, and directories for storing data. Ensure the port number and directory names are valid for your server configuration. ```shell ars5:2:once:/opt/IBM/ondemand/V9.5/bin/arsjesd -p 6001 -d /arsacif/acif1 -d /arsacif/acif2 -d /arsacif/acif3 >> /tmp/arsjesd.log 2>&1 ``` -------------------------------- ### Start ODF Processing with Unified Logon Source: https://www.ibm.com/docs/en/cmofm/10.1_topic=arsodf-examples This example demonstrates how to initiate ODF processing using a unified logon. It requires the instance name and takes user credentials for authentication. The command 'arsodf -I instancename -S' starts the ODF service. ```bash arsodf -I instancename -S ```