Add JAVA libraries in Cisco UCS Director 5.5
In the file “inframgr.env”, located in “/opt/infra/bin/”:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
[root@ucsd5.5 ~]# cat /opt/infra/bin/inframgr.env #!/bin/bash SVC=inframgr . /opt/infra/bin/svcmgr.env # Memory settings MEMORY_MIN=128m MEMORY_MAX=6144m # JMX settings JMX_PORT=11006 JMX_SERVICE_BINDING=local #buildJmxOpts SVC_JAR="$SVC.jar" MAIN_CLASS=com.cloupia.service.cIM.inframgr.InfraMgrMain # Jars to be overrided in CLASSPATH ORDERED_JARS="vijava60compat.jar:vijava55b20130927.jar:/opt/visualstation/jaxrs-ri/ext/org.osgi.core-4.2.0.jar:/opt/visualstation/jaxrs-ri/ext/javax.servlet-api-3.0.1.jar:/opt/visualstation/jaxrs-ri/ext/javassist-3.18.1-GA.jar:/opt/visualstation/jaxrs-ri/ext/hk2-locator-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/hk2-utils-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/aopalliance-repackaged-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/asm-debug-all-5.0.4.jar:/opt/visualstation/jaxrs-ri/ext/jersey-guava-2.22.2.jar:/opt/visualstation/jaxrs-ri/ext/javax.annotation-api-1.2.jar:/opt/visualstation/jaxrs-ri/ext/hk2-api-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/persistence-api-1.0.jar:/opt/visualstation/jaxrs-ri/ext/javax.inject-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/jaxb-api-2.2.7.jar:/opt/visualstation/jaxrs-ri/ext/osgi-resource-locator-1.0.1.jar:/opt/visualstation/jaxrs-ri/ext/validation-api-1.1.0.Final.jar:/opt/visualstation/jaxrs-ri/lib/jersey-media-jaxb.jar:/opt/visualstation/jaxrs-ri/lib/jersey-container-servlet.jar:/opt/visualstation/jaxrs-ri/lib/jersey-container-servlet-core.jar:/opt/visualstation/jaxrs-ri/lib/jersey-client.jar:/opt/visualstation/jaxrs-ri/lib/jersey-common.jar:/opt/visualstation/jaxrs-ri/lib/jersey-server.jar:/opt/visualstation/jaxrs-ri/api/javax.ws.rs-api-2.0.1.jar" buildClasspath # Remote debugging settings #REMOTE_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8006,server=y,suspend=n" JVM_ARGS="-DSVC=$SVC -Xms$MEMORY_MIN -Xmx$MEMORY_MAX $REMOTE_DEBUG_OPTS -Djava.security.manager -Djava.security.policy=security.policy -DpreInitSchema=true -verbose:gc -Dfile.encoding=UTF-8 $JMX_OPTS" # Other JVM args/options OTHER_JVM_ARGS="" SVC_CMD="java $JVM_ARGS $OTHER_JVM_ARGS $CLASSPATH $MAIN_CLASS" [root@ucsd5.5 ~]# |
Add in the variable ORDERED_JARS, the path of all your libraries. Example here, we added the Jersey Client Libraries:
1 |
/opt/visualstation/jaxrs-ri/ext/org.osgi.core-4.2.0.jar:/opt/visualstation/jaxrs-ri/ext/javax.servlet-api-3.0.1.jar:/opt/visualstation/jaxrs-ri/ext/javassist-3.18.1-GA.jar:/opt/visualstation/jaxrs-ri/ext/hk2-locator-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/hk2-utils-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/aopalliance-repackaged-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/asm-debug-all-5.0.4.jar:/opt/visualstation/jaxrs-ri/ext/jersey-guava-2.22.2.jar:/opt/visualstation/jaxrs-ri/ext/javax.annotation-api-1.2.jar:/opt/visualstation/jaxrs-ri/ext/hk2-api-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/persistence-api-1.0.jar:/opt/visualstation/jaxrs-ri/ext/javax.inject-2.4.0-b34.jar:/opt/visualstation/jaxrs-ri/ext/jaxb-api-2.2.7.jar:/opt/visualstation/jaxrs-ri/ext/osgi-resource-locator-1.0.1.jar:/opt/visualstation/jaxrs-ri/ext/validation-api-1.1.0.Final.jar:/opt/visualstation/jaxrs-ri/lib/jersey-media-jaxb.jar:/opt/visualstation/jaxrs-ri/lib/jersey-container-servlet.jar:/opt/visualstation/jaxrs-ri/lib/jersey-container-servlet-core.jar:/opt/visualstation/jaxrs-ri/lib/jersey-client.jar:/opt/visualstation/jaxrs-ri/lib/jersey-common.jar:/opt/visualstation/jaxrs-ri/lib/jersey-server.jar:/opt/visualstation/jaxrs-ri/api/javax.ws.rs-api-2.0.1.jar |
Save the file and then call /opt/shelladmin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
Node:Standalone | Version:5.5.0.0 | UpTime: 08:37:23 up 113 days, 23:11 1) Change ShellAdmin Password 2) Display Services Status 3) Stop Services 4) Start Services 5) Stop Database 6) Start Database 7) Backup Database 8) Restore Database 9) Time Sync 10) Ping Hostname/IP Address 11) Show Version 12) Generate Self-Signed Certificate and Certificate Signing Request 13) Import CA/Self-Signed Certificate 14) Configure Network Interface 15) Display Network Details 16) Enable Database for Cisco UCS Director Baremetal Agent 17) Add Cisco UCS Director Baremetal Agent Hostname/IP 18) Tail Inframgr Logs 19) Apply Patch 20) Shutdown Appliance 21) Reboot Appliance 22) Manage Root Access 23) Login as Root 24) Configure Multi Node Setup (Advanced Deployment) 25) Clean-up Patch Files 26) Collect logs from a Node 27) Collect Diagnostics 28) Quit SELECT> |
Stop Services and Start Services. Wait until the “cloud page” has disappeared.
Cisco Prime Service Catalog stop working after JAVA upgrade
Have a look at: /opt/CiscoPrimeServiceCatalog and in the directory bin , open the file setEnv.sh and you should have something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash #============================================================================== # Copyright (c) 1999, 2011, 2013 Cisco Systems, Inc. # All rights reserved worldwide. # # setEnv.sh - Sets up the environment for various command-line utilities. # #============================================================================== JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre export JAVA_HOME RC_HOME=/opt/CiscoPrimeServiceCatalog export RC_HOME JBOSS_HOME=/opt/CiscoPrimeServiceCatalog/wildfly-8.2.0.Final export JBOSS_HOME CONTROLLER_TYPE=$CONTROLLER_TYPE$ export CONTROLLER_TYPE |
and change the variable JAVA_HOME with the new path of your JAVA jre. Tips Use the command update-alternatives --display java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
java - status is auto. link currently points to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java - priority 1700101 slave keytool: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/keytool slave orbd: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/orbd slave pack200: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/pack200 slave rmid: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/rmid slave rmiregistry: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/rmiregistry slave servertool: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/servertool slave tnameserv: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/tnameserv slave unpack200: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/unpack200 slave jre_exports: /usr/lib/jvm-exports/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64 slave jre: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre slave java.1.gz: /usr/share/man/man1/java-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave keytool.1.gz: /usr/share/man/man1/keytool-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave orbd.1.gz: /usr/share/man/man1/orbd-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave pack200.1.gz: /usr/share/man/man1/pack200-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave rmid.1.gz: /usr/share/man/man1/rmid-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave rmiregistry.1.gz: /usr/share/man/man1/rmiregistry-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave servertool.1.gz: /usr/share/man/man1/servertool-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave tnameserv.1.gz: /usr/share/man/man1/tnameserv-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz slave unpack200.1.gz: /usr/share/man/man1/unpack200-java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64.1.gz Current `best' version is /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/bin/java. |
Take the value following the Current ‘best’ version /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre