Monthly Archives: February 2010

When rendering a JSP component with the JSR286 rendering portlet

When rendering JSP components through the JSR286 local rendering portlet you need to check the Workspace.WCM_RENDERINGCONTEXT_KEY attribute on the original PortletRequest. There are 2 ways to achieve that: 1. Import the JSR Portlet JSP Tag lib and get the RenderingContext … Continue reading

Posted in WCM, WebSphere Portal | Leave a comment

Web Site Monitor script

Please! follow the link to download the script: http://www.rayslinks.com/Web%20Site%20Monitor.html

Posted in Linux, Scripts | Leave a comment

Backup WP DB2 databases

curDate=`date +%d%m%y_DBs_WP615` cd /opt/Backups/databases/temp echo “Backing-up fdbkdb into /opt/Backups/databases/temp directory…” su – db2inst1 -c “db2 backup db fdbkdb” echo “Backing-up lmdb into /opt/Backups/databases/temp directory…” su – db2inst1 -c “db2 backup db lmdb” echo “Backing-up cusdb into /opt/Backups/databases/temp directory…” su – … Continue reading

Posted in DB2, Linux, Scripts, WebSphere Portal | Leave a comment

Auto start VNCServer in SLES v9 during system bootup

1. Set VNC Server Password: vncpasswd 2. Comment out the following two lines in xstartup file located in .vnc/ directory: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 3. Replace the highlighted letters in the xstartup file: xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” … Continue reading

Posted in Linux | Leave a comment

Auto start VNCServer in RHEL V5 during system bootup

1. Set VNC password: vncpasswd 2. Start the vncserver with root user by using the command vncserver :1 3. Add following lines in xstartup file located in /root/.vnc directory: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc 4. Replace the highlighted letters in the … Continue reading

Posted in Linux | Leave a comment

Archive a directory using tar with current date

1. Backup “WebSphere” directory: tar -C /opt/IBM -zpcvf /tmp/WebSphere.tar.gz ¬†WebSphere tar -tvf /tmp/WebSphere.tar.gz 2. Restore “WebSphere” directory: mv /opt/IBM/WebSphere /opt/IBM/WebSphere_org (Note: Before restoring rename existing WebSphere directory) tar -C /opt/IBM -pxvf /tmp/WebSphere.tar.gz diff -r /opt/IBM/WebSphere /opt/IBM/WebSphere_org (Compare files between restored … Continue reading

Posted in Linux, Scripts, WAS, WebSphere Portal | Leave a comment

Restart WP and archive logs

echo “Stoping WebSphere_Portal server…” /opt/IBM/WebSphere/AppServer/bin/stopServer.sh WebSphere_Portal echo “Archiving WebSphere_Portal logs…” mv -f /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/*.* /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/archive echo “Starting WebSphere_Portal server…” /opt/IBM/WebSphere/AppServer/bin/startServer.sh WebSphere_Portal

Posted in Linux, Scripts, WebSphere Portal | Leave a comment