ADSM-L

Re: [ADSM-L] Tivoli Storage Manager Client Management Services feature

2014-10-23 07:56:19
Subject: Re: [ADSM-L] Tivoli Storage Manager Client Management Services feature
From: Erwann SIMON <erwann.simon AT FREE DOT FR>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 23 Oct 2014 13:54:21 +0200
Hi all,

I'm also trying to evaluate the feature on a test Linux system RHEL 6.4 
(including server, client, oc, and cms) but I can't get the 9028 port of the 
CMS server listenning event if the processes are started.

Here's a log of the installation I did and the configuration and logs files of 
CMS :

***** Installation
# ./install.sh -c
Preprocessing the input.

=====> IBM Installation Manager

Select:
     1. Install - Install software packages
     2. Update - Find and install updates and fixes to installed software 
packages
     3. Modify - Change installed software packages
     4. Roll Back - Revert to an earlier version of installed software packages
     5. Uninstall - Remove installed software packages

Other Options:
     L. View Logs
     S. View Installation History
     V. View Installed Packages
        ------------------------
     P. Preferences
        ------------------------
     A. About IBM Installation Manager
        ------------------------
     X. Exit Installation Manager

-----> 1
Checking repositories...
Loading repositories...
Checking availability of packages...
Validating package prerequisites...


=====> IBM Installation Manager> Install

Select packages to install:
     1. [ ] IBM Tivoli Storage Manager Client Management Services 
7.1.1.20140903_1110

     O. Check for Other Versions, Fixes, and Extensions

     C. Cancel
-----> [C] 1

=====> IBM Installation Manager> Install> Select

IBM Tivoli Storage Manager Client Management Services 7.1.1.20140903_1110

Options:
     1. Choose version 7.1.1.20140903_1110 for installation.
     2. Show all available versions of the package.

     C. Cancel
-----> [1] 1
Preparing and resolving the selected packages...


=====> IBM Installation Manager> Install

Select packages to install:
     1. [X] IBM Tivoli Storage Manager Client Management Services 
7.1.1.20140903_1110

     O. Check for Other Versions, Fixes, and Extensions

     N. Next,      C. Cancel
-----> [N] N
Loading fixes...
Validating package prerequisites...
Finding compatible package groups...


=====> IBM Installation Manager> Install> Location

New package group:
     1. [ ] IBM Tivoli Storage Manager_1

Existing package groups:
     2. [X] IBM Tivoli Storage Manager

Selected group id: "IBM Tivoli Storage Manager"
Selected location: "/opt/tivoli/tsm"
Selected architecture: 64-bit

     B. Back,      N. Next,      C. Cancel
-----> [N] N


=====> IBM Installation Manager> Install> Location> Features

IBM Tivoli Storage Manager Client Management Services
     1. [X] Client Management Services


     B. Back,      N. Next,      C. Cancel
-----> [N] N

=====> IBM Installation Manager> Install> Location> Features> Custom panels


---- Configuration for IBM Tivoli Storage Manager Client Management Services 
7.1.1.20140903_1110


Specify the secure port number - Secure (https) port
-----> [9028] 9028

Specify the secure port number - SP800-131a Compliance Mode:

   0. Off
   1. Transition
   2. Strict

-----> [0] 0


     B. Back,      N. Next,      C. Cancel
-----> [N] N


=====> IBM Installation Manager> Install> Location> Features> Custom panels>
  Summary

Target Location:
  Package Group Name         :  IBM Tivoli Storage Manager
  Installation Directory     :  /opt/tivoli/tsm
  Shared Resources Directory :  /opt/IBM/IBMIMShared

Packages to be installed:
        IBM Tivoli Storage Manager Client Management Services 
7.1.1.20140903_1110

Options:
     G. Generate an Installation Response File

     B. Back,      I. Install,      C. Cancel
-----> [I] G

=====> IBM Installation Manager> Install> Location> Features> Custom panels>
  Summary> Save response file

Enter a directory path and a file name to generate the response file. Use .xml 
as the file extension. If a file name is specified without a full directory 
path, the response file is saved to /tsm63code/cms. To skip the generation of a 
response file, press Enter.
-----> tsmlinuxcms711.xml

=====> IBM Installation Manager> Install> Location> Features> Custom panels>
  Summary> Save response file> Status

OK STATUS: Response file was generated successfully: tsmlinuxcms711.xml

     O. OK

-----> [O] O


=====> IBM Installation Manager> Install> Location> Features> Custom panels>
  Summary

Target Location:
  Package Group Name         :  IBM Tivoli Storage Manager
  Installation Directory     :  /opt/tivoli/tsm
  Shared Resources Directory :  /opt/IBM/IBMIMShared

Packages to be installed:
        IBM Tivoli Storage Manager Client Management Services 
7.1.1.20140903_1110

Options:
     G. Generate an Installation Response File

     B. Back,      I. Install,      C. Cancel
-----> [I] I
                 25%                50%                75%                100%
------------------|------------------|------------------|------------------|
............................................................................

=====> IBM Installation Manager> Install> Location> Features> Custom panels>
  Summary> Completion

The install completed successfully.

INFORMATION: The Tivoli Storage Manager Client Management Services is now 
installed and configured.

Options:
     F. Finish
-----> [F] F

=====> IBM Installation Manager

Select:
     1. Install - Install software packages
     2. Update - Find and install updates and fixes to installed software 
packages
     3. Modify - Change installed software packages
     4. Roll Back - Revert to an earlier version of installed software packages
     5. Uninstall - Remove installed software packages

Other Options:
     L. View Logs
     S. View Installation History
     V. View Installed Packages
        ------------------------
     P. Preferences
        ------------------------
     A. About IBM Installation Manager
        ------------------------
     X. Exit Installation Manager

-----> X


Service CMS is started
# service cms.rc status
Server cmsServer is running with process ID 11682.

# netstat -atnp | grep 11682
tcp        0      0 :::53932                    :::*                        
LISTEN      11682/java
tcp        0      0 ::ffff:127.0.0.1:54433      :::*                        
LISTEN      11682/java

No output is returned if I grep on 9028 port !
# netstat -atnp | grep 9028


Everyting else seems fine

# ./CmsConfig.sh list
List:
localhost:1500 NO_SSL CLIENT1
    /var/tivoli/tsm/dsmerror.log
        en_US MM/dd/yyyy HH:mm:ss UTF-8

                
# dsmc q opt errorlogname
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 7, Release 1, Level 1.0
  Client date/time: 10/23/2014 10:38:12
(c) Copyright by IBM Corporation and other(s) 1990, 2014. All Rights Reserved.

Node Name: CLIENT1
Session established with server TSM_SERVER1: Linux/x86_64
  Server Version 7, Release 1, Level 1.0
  Server date/time: 10/23/2014 10:38:12  Last access: 10/22/2014 17:44:39

             ERRORLOGNAME: /var/tivoli/tsm/dsmerror.log

# cat ../Liberty/usr/servers/cmsServer/client-configuration.xml
<?xml version="1.0" encoding="UTF-8"?><configFile>
    <configRecord>
        <node>CLIENT1</node>
        <tsmServer>localhost</tsmServer>
        <tsmPort>1500</tsmPort>
        <tsmProtocol>NO_SSL</tsmProtocol>
        <logFile>
            <logPath>/var/tivoli/tsm/dsmerror.log</logPath>
            <dateTimeFormat>MM/dd/yyyy HH:mm:ss</dateTimeFormat>
            <encoding>UTF-8</encoding>
            <languageTag>en_US</languageTag>
        </logFile>
    </configRecord>

        
https://www-01.ibm.com/support/knowledgecenter/SSGSG7_7.1.1/com.ibm.itsm.srv.install.doc/r_oc_inst_cms_config.html?lang=en


# cat ../Liberty/usr/servers/cmsServer/server.xml
<server description="new server">
    <!-- Enable features -->
    <featureManager>
        <feature>jsp-2.2</feature>
        <feature>jmx-1.0</feature>
        <feature>servlet-3.0</feature>
        <feature>localConnector-1.0</feature>
        <feature>ssl-1.0</feature>
        <feature>jndi-1.0</feature>
        <feature>jaxrs-1.1</feature>
        <feature>jpa-2.0</feature>
        </featureManager>

    <httpEndpoint id="defaultHttpEndpoint"
                  host="*"
                  httpPort="-1"
                  httpsPort="${tsm.https.port}">
        <tcpOptions soReuseAddr="true" />
    </httpEndpoint>

    <applicationMonitor updateTrigger="mbean"/>

    <!--  NO HELP<application context-root="help" id="TSM_HELP" 
location="TSM_HELP.war" name="TSM_HELP" type="war"/> -->

    <application context-root="tsmcms" id="tsmcms" location="tsmcms.war" 
name="tsmcms" type="war"/>
    <jspEngine prepareJSPs="0"/>
    <webContainer deferServletLoad="false"/>

    <jndiEntry jndiName="com/ibm/tsmcms/clientConfiguration" 
value='"${server.config.dir}/client-configuration.xml"' />
    <keyStore id="defaultKeyStore" password="${tsm.truststore.pswd}" 
location="${server.output.dir}/cms-truststore.jks"/>
    <ssl id="SP800131astrict" keyStoreRef="defaultKeyStore" 
sslProtocol="TLSv1.2"/>
    <ssl id="SP800131atransition" keyStoreRef="defaultKeyStore" 
sslProtocol="TLS"/>
    <sslDefault sslRef="${tsm.https.sslRef}" />

# cat ../Liberty/usr/servers/cmsServer/bootstrap.properties
#Wed Oct 22 08:54:05 CEST 2014
tsm.https.sslRef=SP800131astrict
tsm.https.port=9028
tsm.truststore.pswd=
        

*****   Startup with set-x : no clue...
[root@tsl12 bin]# ./server start cmsServer
+ SERVER_UNKNOWN_STATUS=5
+ case $OSTYPE in
++ uname
+ uname=Linux
+ case $uname in
++ dirname ./server
+ dirname=.
++ cd ./..
++ pwd
+ WLP_INSTALL_DIR=/opt/tivoli/tsm/cms/Liberty
+ PS_P='ps -p'
+ UMASK_O='umask o='
+ os400lib=false
+ shareclassesCacheDirPerm=true
+ defaultFileEncoding=
+ newline='
'
+ nativeEBCDIC=false
+ case ${uname} in
+ eval '
    escapeForEval()
    {
      escapeForEvalResult=\'\''${1//\'\''/\'\''\"\'\''\"\'\''}\'\''
    }

    extractValueAndEscapeForEval()
    {
      escapeForEval "${1#*=}"
    }

    substitutePrefixVar()
    {
      case $1 in
      @$2@*) substitutePrefixVarResult=$3${1#@$2@};;
      *) substitutePrefixVarResult=$1
      esac
    }
  '
+ escapeForEval /opt/tivoli/tsm/cms/Liberty
+ escapeForEvalResult=''\''/opt/tivoli/tsm/cms/Liberty'\'''
+ WLP_INSTALL_DIR_QUOTED=''\''/opt/tivoli/tsm/cms/Liberty'\'''
+ '[' 2 -lt 1 ']'
+ ACTION=start
+ shift
+ '[' 1 -ge 1 ']'
+ case $1 in
+ SERVER_NAME=cmsServer
+ shift
+ '[' -z cmsServer ']'
+ 
JAVA_AGENT_QUOTED='-javaagent:'\''/opt/tivoli/tsm/cms/Liberty'\''/bin/tools/ws-javaagent.jar'
+ '[' -n '' ']'
+ JAVA_DEBUG=
+ JVM_OPTIONS_QUOTED=
+ INVOKED=./server
+ export INVOKED
+ serverUmask
+ '[' -z '' ']'
+ umask o=
+ case "$ACTION" in
+ serverEnvAndJVMOptions
+ serverEnv
+ readServerEnv /opt/tivoli/tsm/cms/Liberty/etc/server.env
+ '[' -f /opt/tivoli/tsm/cms/Liberty/etc/server.env ']'
+ installEnvDefaults
+ readServerEnv /opt/tivoli/tsm/cms/Liberty/java/java.env
+ '[' -f /opt/tivoli/tsm/cms/Liberty/java/java.env ']'
+ readServerEnv /opt/tivoli/tsm/cms/Liberty/etc/default.env
+ '[' -f /opt/tivoli/tsm/cms/Liberty/etc/default.env ']'
+ '[' -z '' ']'
+ '[' -z '' ']'
+ WLP_DEFAULT_USER_DIR=/opt/tivoli/tsm/cms/Liberty/usr
+ WLP_USER_DIR=/opt/tivoli/tsm/cms/Liberty/usr
+ '[' -z '' ']'
+ '[' -z '' ']'
+ WLP_DEFAULT_OUTPUT_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers
+ WLP_OUTPUT_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers
+ SERVER_CONFIG_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer
+ false
+ export WLP_USER_DIR
+ export WLP_OUTPUT_DIR
+ readServerEnv /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/server.env
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/server.env ']'
+ serverEnvDefaults
+ SERVER_OUTPUT_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer
+ '[' -z '' ']'
+ X_LOG_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs
+ export X_LOG_DIR
+ '[' -z '' ']'
+ X_LOG_FILE=console.log
+ '[' -z '' ']'
+ X_PID_DIR=/opt/tivoli/tsm/cms/Liberty/usr/servers/.pid
+ '[' -z '' ']'
+ X_PID_FILE=/opt/tivoli/tsm/cms/Liberty/usr/servers/.pid/cmsServer.pid
+ '[' -z '' ']'
+ '[' -z '' ']'
+ '[' -z '' ']'
+ JAVA_CMD=java
+ true
+ ibmVersionProperties=
+ '[' -z '' ']'
++ sed -e 's,[^/]*,,' -e 's,/java[^/]*$,,'
++ type java
+ javaBinDir=/usr/bin
+ '[' -n /usr/bin ']'
+ '[' -f /usr/bin/../lib/version.properties ']'
+ '[' -f /usr/bin/../jre/lib/version.properties ']'
+ SERVER_IBM_JAVA_OPTIONS=
+ '[' -n '' ']'
+ IBM_JAVA_OPTIONS='-Xquickstart -Xnoaot '
+ export IBM_JAVA_OPTIONS
+ '[' -n '' ']'
+ '[' -z '' ']'
+ JVM_OPTIONS_QUOTED=-XX:MaxPermSize=256m
+ for jvmOptions in '"${SERVER_CONFIG_DIR}/jvm.options"' 
'"${WLP_INSTALL_DIR}/etc/jvm.options"'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/jvm.options ']'
+ for jvmOptions in '"${SERVER_CONFIG_DIR}/jvm.options"' 
'"${WLP_INSTALL_DIR}/etc/jvm.options"'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/etc/jvm.options ']'
+ checkServer true
+ '[' -d /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer ']'
+ return 0
+ serverStatus false --status:starting
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sLock ']'
+ '[' '!' -f 
/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sCommand ']'
+ rmIfExist /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid/cmsServer.pid
+ for file in '"$@"'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid/cmsServer.pid ']'
+ return 1
+ rc=1
+ case $rc in
+ serverWorkingDirectory
+ mkdirs /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer
+ '[' '!' -d /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer ']'
+ cd /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer
+ mkdirs /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs
+ '[' '!' -d /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs ']'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log ']'
+ '[' '!' -w /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log 
']'
+ mkdirs /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid
+ '[' '!' -d /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid ']'
+ rmIfExist /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid/cmsServer.pid
+ for file in '"$@"'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/.pid/cmsServer.pid ']'
+ mkdirs /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea
+ '[' '!' -d /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea ']'
+ touchIfNotExist 
/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sLock
+ '[' '!' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sLock 
']'
+ rmIfExist /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sCommand
+ for file in '"$@"'
+ '[' -f /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/workarea/.sCommand 
']'
+ serverCmd /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log
+ 
SERVER_CMD_BACKGROUND_LOG=/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log
+ shift
+ SAVE_IBM_JAVA_OPTIONS='-Xquickstart -Xnoaot '
+ IBM_JAVA_OPTIONS=
+ false
+ X_CMD='java '
+ export X_CMD
+ javaCmd /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log 
cmsServer
+ 
JAVA_CMD_LOG=/opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log
+ shift
+ eval 'set -- -XX:MaxPermSize=256m   
-javaagent:'\''/opt/tivoli/tsm/cms/Liberty'\''/bin/tools/ws-javaagent.jar -jar 
'\''/opt/tivoli/tsm/cms/Liberty'\''/bin/tools/ws-server.jar "$@"'
++ set -- -XX:MaxPermSize=256m 
-javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar -jar 
/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer
+ ARGS='-XX:MaxPermSize=256m 
-javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar -jar 
/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer'
+ '[' -n /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log ']'
+ rc=0
+ JVM_OPTIONS_QUOTED=
+ IBM_JAVA_OPTIONS='-Xquickstart -Xnoaot '
+ PID=15833
+ '[' -n /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log ']'
+ javaCmd '' cmsServer --pid=15833 --status:start
+ JAVA_CMD_LOG=
+ shift
+ java -XX:MaxPermSize=256m 
-javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar -jar 
/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer
+ eval 'set --    
-javaagent:'\''/opt/tivoli/tsm/cms/Liberty'\''/bin/tools/ws-javaagent.jar -jar 
'\''/opt/tivoli/tsm/cms/Liberty'\''/bin/tools/ws-server.jar "$@"'
++ set -- -javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar 
-jar /opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer --pid=15833 
--status:start
+ ARGS='-javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar -jar 
/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer --pid=15833 
--status:start'
+ '[' -n '' ']'
+ java -javaagent:/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-javaagent.jar -jar 
/opt/tivoli/tsm/cms/Liberty/bin/tools/ws-server.jar cmsServer --pid=15833 
--status:start
Starting server cmsServer.
Server cmsServer started with process ID 15833.
+ rc=0
+ '[' 0 = 0 -o 0 = 5 ']'
+ safeEcho 15833
+ cat
+ return 0
+ rc=0
+ '[' 0 = 1 ']'
+ exit 0


# cat ../usr/servers/cmsServer/bootstrap.properties
#Wed Oct 22 08:54:05 CEST 2014
tsm.https.sslRef=SP800131astrict
tsm.https.port=9028
tsm.truststore.pswd=




***** In the log
# cat /opt/tivoli/tsm/cms/Liberty/usr/servers/cmsServer/logs/console.log
Launching cmsServer (WebSphere Application Server 
8.5.5.2/wlp-1.0.5.cl50220140403-1858) on OpenJDK 64-Bit Server VM, version 
1.7.0_09-icedtea-mockbuild_2013_01_15_04_12-b00 (en_US)
[AUDIT   ] CWWKE0001I: The server cmsServer has been launched.
[ERROR   ] CWWKF0001E: A feature definition could not be found for jmx-1.0
[ERROR   ] CWPKI0808E: A password of at least 6 characters is required to 
create the default keystore. The default keystore is not created.
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT   ] CWWKZ0022W: Application tsmcms has not started in 30.002 seconds.
[AUDIT   ] CWWKF0011I: The server cmsServer is ready to run a smarter planet.



-- 
Best regards / Cordialement / مع تحياتي
Erwann SIMON

----- Mail original -----
De: "Robert Ouzen" <rouzen AT UNIV.HAIFA.AC DOT IL>
À: ADSM-L AT VM.MARIST DOT EDU
Envoyé: Vendredi 17 Octobre 2014 17:39:29
Objet: [ADSM-L] Tivoli Storage Manager Client Management Services  feature

Hello

I today installed on one of my client the “7.1.1.000-TIV-TSMCMS-Windows64.exe” 
, when the installation finished I saw in the services the new service name:

« Tivoli Storage Manager Client Management Services »  in status Started an 
Automatic.

When from my Operations Center version 7.1.1.0 I load  Diagnosis  under the 
section Clients I got always:

“There are no recommendations available. For more information, see the Tivoli 
Storage Manager Documentation.”

On the below part of the window, client Logs show nothing.

Don’t quite understand the purpose , I think I missed something . I though with 
this utility I can review logs without logging to the system as with TSMmanager.

Anybody test it and advise …

Best Regards

Robert Ouzen