I was reading a few posts on ecmplace today and I saw that some persons are struggling with starting and stopping the FileNet platform after they got their CPIT installation done. So here are two scripts to start and stop all components. They start in order (and stop in reverse order) the following components:
- The DBMS DB2
- The LDAP Tivoli Directory Server (admin server then instance)
- The Application Server WebSphere Application Server (hosting the Platform Engine and possibly IBM Content Navigator or any client application)
To start the platform (I include the iptables config but if you saved it once for all you don’t need those lines):
#!/bin/bash iptables -I INPUT 4 -i eth0 -p tcp --dport 9080 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 4 -i eth0 -p tcp --dport 9043 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 4 -i eth0 -p tcp --dport 2809 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 4 -i eth0 -p tcp --dport 9100 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -I INPUT 4 -i eth0 -p tcp --dport 9403 -m state --state NEW,ESTABLISHED -j ACCEPT # DB2 su - dsrdbm01 -c db2start # TDS admin server /opt/ibm/ldap/V6.3/sbin/idsdiradm -I dsrdbm01 # TDS instance /opt/ibm/ldap/V6.3/sbin/ibmslapd -n -I dsrdbm01 # WAS /opt/ibm/WebSphere/AppServer/bin/startServer.sh server1
To stop the platform:
#!/bin/bash # WAS /opt/ibm/WebSphere/AppServer/bin/stopServer.sh server1 -username P8Admin -password PASSWORD # TDS instance /opt/ibm/ldap/V6.3/sbin/ibmslapd -I dsrdbm01 -k # TDS admin server /opt/ibm/ldap/V6.3/sbin/idsdiradm -I dsrdbm01 -k # DB2 su - dsrdbm01 -c db2stop
Hopefully it will help someone.