<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JessWatts.com &#187; IT</title>
	<atom:link href="http://www.jesswatts.com/category/it/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jesswatts.com</link>
	<description>If Want() Then Do()</description>
	<lastBuildDate>Tue, 31 Jan 2012 16:35:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Schedule APEX Network Backups</title>
		<link>http://www.jesswatts.com/it/schedule-apex-network-backups</link>
		<comments>http://www.jesswatts.com/it/schedule-apex-network-backups#comments</comments>
		<pubDate>Mon, 30 Jan 2012 23:13:38 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apex]]></category>
		<category><![CDATA[apex 4.1]]></category>
		<category><![CDATA[apex listener]]></category>
		<category><![CDATA[apexexport]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[CLASSPATH]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[if then else]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ORACLE_HOME]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1187</guid>
		<description><![CDATA[For reference - APEX setup guide APEXExport Overview This walk-through assumes you have APEX 4.1 Listener and Oracle 10G XE or greater installed. If not, reference the links above. We will break this walk-through up into 4 sections: Mounting a network share for the backup directory and configuring fstab Configuring APEXExport to correctly talk to [...]]]></description>
			<content:encoded><![CDATA[<p>For reference -</p>
<ul>
<li><a href=" http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2000" target="_blank">APEX setup guide</a></li>
<li><a href="http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:1015800346188192" target="_blank">APEXExport Overview</a></li>
</ul>
<p>This walk-through assumes you have APEX 4.1 Listener and Oracle 10G XE or greater installed. If not, reference the links above.</p>
<p>We will break this walk-through up into 4 sections:</p>
<ul>
<li>Mounting a network share for the backup directory and configuring fstab</li>
<li>Configuring APEXExport to correctly talk to your database</li>
<li>Write a script to make sure your backup directories exist and export all of your applications</li>
<li>Configure a cron job to run the script twice a day 7 days a week</li>
</ul>
<p><strong>Mounting a network share for the backup directory and configuring fstab</strong><br />
Create local mount point<br />
<code>mkdir /mnt/backup</code></p>
<p>Create connection file<br />
<code>nano /etc/cifspw<br />
username<br />
password<br />
</code></p>
<p>Edit fstab<br />
<code>nano /etc/fstab<br />
//server.domain.com/share  /mnt/backup  cifs  exec,credentials=/etc/cifspw,uid=root  0  0<br />
</code></p>
<p>Mount the directory<br />
<code>mount /mnt/backup</code></p>
<p><strong>Configuring APEXExport to correctly talk to your database</strong></p>
<p>You must run APEXExport from the utilities folder where you installed APEX<br />
<code>cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities</code></p>
<p>Export the CLASSPATH<br />
<code>export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</code></p>
<p>APEXExport is run in the following syntax:<br />
<code>java oracle/apex/APEXExport -db localhost:port:SID -user schemaOwner -password yourPass -workspaceid workspaceID</code><br />
port = 1521<br />
SID = XE</p>
<p>schemaOwner can be found based on your version of APEX. If you are running 3.5 user = APEX_030500. If you are running 4.1 user = APEX_040100<br />
Unlock user and set password through SQL*Plus as SYSTEM<br />
<code>SQL> ALTER USER APEX_040100 ACCOUNT UNLOCK;<br />
SQL> ALTER USER APEX_040100 identified by yourPass;</code></p>
<p>workspace ID can be found from the SQL workshop utility<br />
<code>select workspace, schemas, workspace_id<br />
from apex_workspaces;</code></p>
<p>Your APEXExport command should now run successfully by itself and look similar to<br />
<code>java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password yourPass -workspaceid 13541863513546</code></p>
<p><strong>Write a script to make sure your backup directories exist and export all of your applications</strong><br />
Create a new script<br />
<code>touch apex_backup.sh<br />
chmod a+x apex_backup.sh</code></p>
<p>The script I wrote creates a folder for the day of the week (Mon) and a folder in that folder for the time of day (AM/PM) since I want to backup 2 times a day 7 days a week. It then rolls over each week. The script performs the following steps.<br />
1. Create variables for the backup directories<br />
<code>#/bin/bash</p>
<p>adir=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities<br />
ddir=/mnt/backup/config/apex/backups/$(date +%A)<br />
tdir="$ddir/$(date +%p)"</code></p>
<p>2. Make sure the working directory and path are correct<br />
<code>cd $adir<br />
export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</code></p>
<p>3. Start the backup log and execute the APEXExport command<br />
<code>echo APEX Backup Started $(date) >> $adir/backup_log<br />
java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password yourPass -workspaceid 13541863513546 >> $adir/backup_log</code></p>
<p>At this point the each application is exported in the form f101.sql f102.sql and so on (101 = application id).</p>
<p>4. Make sure backup directory is mounted<br />
<code>#Check if mount does NOT exist<br />
if ! grep -qs '/mnt/backup' /proc/mounts; then<br />
	mount /mnt/backup<br />
fi</code></p>
<p>5. Create backup directories<br />
<code>#Create backup directories<br />
	if [ ! -d "$ddir" ]; then<br />
		mkdir $ddir<br />
	fi<br />
	if [ ! -d "$tdir" ]; then<br />
		mkdir $tdir<br />
	fi</code></p>
<p>6. Move backups and copy logs to backup directory<br />
<code>#Copy backups and logs to backup directories<br />
cp -f f*.sql $tdir<br />
echo APEX Backup Completed $(date) >> $adir/backup_log<br />
cp -f backup_log $tdir</code></p>
<p>So now that we know what each section of the code is doing here is the entire script:<br />
<code>#/bin/bash</p>
<p>adir=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities<br />
ddir=/mnt/backup/config/apex/backups/$(date +%A)<br />
tdir="$ddir/$(date +%p)"</p>
<p>cd $adir<br />
export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</p>
<p>echo APEX Backup Started $(date) >> $adir/backup_log<br />
java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password HDlsdkjHs -workspaceid 1316703665945575 >> $adir/backup_log</p>
<p>#Check if mount does NOT exist<br />
if ! grep -qs '/mnt/backup' /proc/mounts; then<br />
	mount /mnt/backup<br />
fi</p>
<p>#Create backup directories<br />
	if [ ! -d "$ddir" ]; then<br />
		mkdir $ddir<br />
	fi<br />
	if [ ! -d "$tdir" ]; then<br />
		mkdir $tdir<br />
	fi</p>
<p>#Copy backups and logs to backup directories<br />
cp -f f*.sql $tdir<br />
echo APEX Backup Completed $(date) >> $adir/backup_log<br />
cp -f backup_log $tdir</code></p>
<p><strong>Configure a cron job to run the script twice a day 7 days a week</strong><br />
Edit crontab as root<br />
<code>su<br />
crontab -e</code></p>
<p>Add one job to run the script at 11:55am and another to run the script at 5:00pm<br />
<code>#APEXExport AM<br />
55 11 * * * /root/apex_backup.sh >/dev/null 2>&#038;1<br />
#APEXExport PM<br />
0 17 * * * /root/apex_backup.sh >/dev/null 2>&#038;1</code></p>
<p>After a week you will have AM and PM backups for Mon &#8211; Sun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/schedule-apex-network-backups/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple devices can&#8217;t access internet via SonicPoint</title>
		<link>http://www.jesswatts.com/it/apple-devices-cant-access-internet-via-sonicpoint</link>
		<comments>http://www.jesswatts.com/it/apple-devices-cant-access-internet-via-sonicpoint#comments</comments>
		<pubDate>Fri, 05 Aug 2011 18:04:13 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[can't access internet]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[sonicpoint]]></category>
		<category><![CDATA[sonicpointndr]]></category>
		<category><![CDATA[sonicwall]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1141</guid>
		<description><![CDATA[If you have an iPhone or an iPad that cannot access the internet through a SonicPointNDR you came to the right place. I had a SonicPointN and everything worked fine for all of our devices. I then upgraded to a SonicPointNDR and only the iPhone couldn&#8217;t access the internet. No matter what DNS settings or [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an iPhone or an iPad that cannot access the internet through a SonicPointNDR you came to the right place. I had a SonicPointN and everything worked fine for all of our devices. I then upgraded to a SonicPointNDR and only the iPhone couldn&#8217;t access the internet. No matter what DNS settings or firewall rules I tried.</p>
<p>The trick is to disable Aggregation on the Radio settings. As soon as I did this and pushed the changes to my SonicPoints the iPhone was able to get online.</p>
<p>Here are the details from SonicWall on the known issue: <a href="https://www.fuzeqna.com/sonicwallkb/consumer/kbdetail.asp?kbid=8091">https://www.fuzeqna.com/sonicwallkb/consumer/kbdetail.asp?kbid=8091</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/apple-devices-cant-access-internet-via-sonicpoint/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FTP ls command hangs from Amazon EC2 host</title>
		<link>http://www.jesswatts.com/it/ftp-ls-command-hangs-from-amazon-ec2-host</link>
		<comments>http://www.jesswatts.com/it/ftp-ls-command-hangs-from-amazon-ec2-host#comments</comments>
		<pubDate>Tue, 07 Jun 2011 19:01:47 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[amazon ec2]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[hangs on directory content]]></category>
		<category><![CDATA[hangs on listing]]></category>
		<category><![CDATA[hangs on ls]]></category>
		<category><![CDATA[passive]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1113</guid>
		<description><![CDATA[Problem: When trying to list the contents of a directory on a public FTP server from a host in the Amazon EC2 cloud the FTP client hangs. This can be from using ls in command line or simply logging in with an FTP client like WinSCP and getting the error: &#8220;Timeout detected. Could not retrieve [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong>When trying to list the contents of a directory on a public FTP server from a host in the Amazon EC2 cloud the FTP client hangs. This can be from using ls in command line or simply logging in with an FTP client like WinSCP and getting the error:</p>
<p>&#8220;Timeout detected.<br />
Could not retrieve directory listing<br />
Opening ASCII mode data connection for file list.<br />
Error listing directory &#8216;/&#8217;.&#8221;</p>
<p><strong>Solution: </strong>Amazon EC2 host are behind a firewall which requires passive FTP. Check a box in your FTP client to force passive mode or if using command line or scripts enter the command &#8220;literal pasv&#8221; before listing the directory contents as shown below:</p>
<p>C:\Windows\System32>ftp </p>
<p>ftp> open ftp.publicftpserver.com</p>
<p>Connected to ftp.publicftpserver.com<br />
220 EFT Server 6.2.7 Build 05.03.2010.3 </p>
<p>User (ftp.publicftpserver.com:(none)): youruser </p>
<p>331 Password required for youruser.<br />
Password:<br />
230 Login OK. Proceed. </p>
<p><strong>ftp> literal pasv<br />
227 Entering Passive Mode (10,201,1,53,18,114). </strong></p>
<p>ftp> ls<br />
200 Command okay.<br />
150 Opening ASCII mode data connection for file list.<br />
file1<br />
file2<br />
file3<br />
226 Transfer complete. 62 bytes transferred. 62 bps.<br />
ftp: 62 bytes received in 0.00Seconds 62.00Kbytes/sec.<br />
ftp></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/ftp-ls-command-hangs-from-amazon-ec2-host/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ILO2 Integrated Remote Console : &#8220;unavailable already in use by a different client&#8221;</title>
		<link>http://www.jesswatts.com/it/ilo2-integrated-remote-console-unavailable-already-in-use-by-a-different-client</link>
		<comments>http://www.jesswatts.com/it/ilo2-integrated-remote-console-unavailable-already-in-use-by-a-different-client#comments</comments>
		<pubDate>Mon, 09 May 2011 16:15:57 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[activation key]]></category>
		<category><![CDATA[ilo]]></category>
		<category><![CDATA[ilo2]]></category>
		<category><![CDATA[integrated remote console]]></category>
		<category><![CDATA[transfer ilo license]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1104</guid>
		<description><![CDATA[To transfer an iLO2 advanced license from one server to another you simply get the license key from the old server: - Administration (tab) > Licensing > Copy : License Key Enter the key on the new server: - Administration (tab) > Licensing > Enter: Activation Key Now you need to remove the key from [...]]]></description>
			<content:encoded><![CDATA[<p>To transfer an iLO2 advanced license from one server to another you simply get the license key from the old server:<br />
- Administration (tab) > Licensing > Copy : License Key</p>
<p>Enter the key on the new server:<br />
- Administration (tab) > Licensing > Enter: Activation Key</p>
<p>Now you need to remove the key from the old server. The easiest way I found is to SSH to the iLO address of the old server:<br />
- SSH to old server iLO IP address<br />
- Log in as Administrator : iLO password<br />
- run the command: delete map1 license</p>
<p>You should get the reply:<br />
</>hpiLO-> delete map1 license<br />
status=0<br />
status_tag=COMMAND COMPLETED<br />
iLO license removed.</p>
<p>- exit</p>
<p>Test the Remote Console on the new server. If you get the error &#8220;unavailable already in use by a different client&#8221; you will need to enable Acquire.<br />
- Remote Console (tab) > Settings > check the box: Remote Console Acquire &#8211; Enabled<br />
- Apply<br />
- Test integrated Remote Console<br />
- If the error pops up click the button that says Acquire.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/ilo2-integrated-remote-console-unavailable-already-in-use-by-a-different-client/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test drive IE 10</title>
		<link>http://www.jesswatts.com/it/test-drive-ie-10</link>
		<comments>http://www.jesswatts.com/it/test-drive-ie-10#comments</comments>
		<pubDate>Mon, 25 Apr 2011 22:49:12 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ie10]]></category>
		<category><![CDATA[ie9]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1099</guid>
		<description><![CDATA[Just one of those post that spawned because I was impressed with something I stumbled across and wanted to share it. Download the IE 10 Developer Platform and check out some of the really cool demos: http://ie.microsoft.com/testdrive/Default.html]]></description>
			<content:encoded><![CDATA[<p>Just one of those post that spawned because I was impressed with something I stumbled across and wanted to share it.</p>
<p>Download the IE 10 Developer Platform and check out some of the really cool demos: <a href="http://ie.microsoft.com/testdrive/Default.html">http://ie.microsoft.com/testdrive/Default.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/test-drive-ie-10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

