<p>Greg</p>
<p>These lists are different, which might be the problem.</p>
<p>Now just to help me be clear, it is the first list that I copy into /usr/sausalito/codb/codb.oids overwriting what is there.</p>
<p>Is that correct?</p>
<p>Regards</p>
<p>Jeffrey</p>
<p>On Mon, 21 Feb 2011 08:18:54 +1100, Greg Kuhnert wrote:</p>
<blockquote style="padding-left: 5px; border-left: 2px solid #1010ff; margin-left: 5px; width: 100%;">Hi Dudi.<br /> <br /> On 21/02/2011 7:51 AM, Dudi Goldenberg wrote:<br />
<blockquote cite="mid:9A4085B7A6E42849838BFCD1672A732A07BC2666F1@IE2RD2XVS101.red002.local">
<blockquote>
<pre>There is a thread about this somewhere. Greg Khunert wrote oidfixer.sh<br /></pre>
</blockquote>
<pre>Where can I get oidfixer.sh?<br /><br /></pre>
</blockquote>
<br /> I actually like Steve's solution too - but for the sake of completeness, here's the tool I wrote some time back. The actual name is oidlist.sh<br /> <br /> Instructions:<br /> <br /> 1. Create the script and make it executable<br /> 2. Stop cced<br /> service cced.init stop<br /> 3. Run the script<br /> ./oidlist.sh<br /> <br /> The script will print out a list of objects based on the actual object directories, and it will also print a copy of codb.oids which is what CCE thinks are the used OID's. Both lists of OID numbers should be identical.<br /> <br /> If they are not, then copy the reported OID's into /usr/sausalito/codb/codb.oids<br /> <br /> 4. Restart cced<br /> service cced.init start<br />
<pre>#!/bin/bash<br />LAST=-1<br />MIN=-1<br /><br />for X in `ls <em class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/sausalito/codb/objects<span class="moz-txt-tag">/</span></em> | sort -n`<br />do<br /> MYNEXT=$(( $LAST + 1 ))<br /> if [ $MYNEXT -eq $X ]<br /> then<br /> LAST=$X<br /> else<br /> if [ $LAST -ge 1 ]<br /> then<br /> if [ $MIN -eq $LAST ]<br /> then<br /> echo -n $LAST,<br /> else<br /> echo -n $MIN-$LAST,<br /> fi<br /> fi<br /> LAST=$X<br /> MIN=$X<br /> fi<br />done<br />if [ $MYNEXT -lt $X ]<br />then<br /> echo -n $LAST<br />else<br /> echo -n $MIN-$LAST<br />fi<br /><br />echo ""<br />echo "/usr/sausalito/codb/codb.oids reports:"<br />cat /usr/sausalito/codb/codb.oids<br />echo ""<br /><br /></pre>
<br /> <br /></blockquote>
<p> </p>