" /> Braindump: août 2004 Archives

« juillet 2004 | Main | septembre 2004 »

août 18, 2004

Junk yard fix

2700 through 4900 IRD Contact points: sb39 and sb40, located to the right of the tsop, providing you are looking at it from the front. Meathod: short before applying power, apply power, 3 seconds later, unshort. DP301.005 and DP301.010 Contact points: looking at IRD from the front, r275 and r281, just below left tsop. Go here to see a picture. Meathod: short for LESS than one second, immediately AFTER applying power to IRD. DP301.013 Contact points: sb39 and sb40, located one on each side of the left tsop for dual flash models, or only tsop for single flash models, providing you are looking at it from the front of IRD. Meathod: short for LESS than one second, immediately AFTER applying power to IRD. DP501 Contact points: looking at the IRD from the front, your first contact point is just below the ANT IN/TV OUT box (left of HDD), at diode cr20. You want to connect to the right side of that diode. The second is just below the right tsop. It is a tiny silver dot, just above and between sb18 and sb19. This is the hardest contact point to solder to for all IRD's I have tested for the "Junk Yard Fix". Meathod: short for LESS than one second, immediately AFTER applying power to IRD. DP508 Ihave not had the pleasure of testing this IRD, yet, but I believe it would be the same as the DP501...maybe someone can confirm this. If anyone can think of one I might have missed, please post it here. Note: If this does not work for you, in the amount of time I have specified above, you need to fix your eeprom first. Use flashedit or satFTA's IRDr (both are great little proggies) to generate a clean virgin eeprom. Also, Dish Pro IRD's may have to be check switched prior This info was copied and pasted from a post on another website i did not write it use at own risk. PS my 3100 all have been wired and used the fix on them at one point or another no problems.

Force reset on TSOP - ECM IRD BEV

Your IRD has been ECMed. This is often refered to as "Location ID 00000001" - a hint of an ECMed receiver that shows on your TV when you hit the "Sys Info" button on your remote. To cure this ECM, you'll have to restore your Tsop and reprogram your platform with the latest fix if available. See the top of this thread or the Files section for the latest fixes for each platform. First, here's how to refresh your TSOP: (Set your IRD to "Download without permission") 1- Hook jTag and open jKeys. 2- Hit "Flash Programming" button. 3- In the drop down menu, right upper hand corner, change "FULL" to an SA address specific to your IRD: .......... 3100 = SA3 in flash 1 .......... 2700/2800/3700 = SA5 .......... 3800/3900/4700/4900 = SA30 .......... 5100/5800 = SA54 in flash 2 .......... 6000 = SA30 in flash 1 4- Click on Erase (erase 3 times to be sure). 6- Plug ird in the stream and let it update (Don't touch it until it's finished! Usually takes 5 to 15 minutes). 7- Might have to do the "Check switch": Menu>6>1>1>Check Switch>Check. 8- Watch tv. If you have problems using your jTag cable or don't have one, try the Junk Yard Fix - This is considered a last resort fix.

août 11, 2004

RRD Tool - System Load Stats

This is how I do it. I don't store the 1-min avg since I only do the update every 5 minutes and it wouldn't really make much sense to do so. Also, I'm not (currently) using SNMP to get the value, but it should be fairly easy to modify to use SNMP. *Create*
rrdtool create /var/db/rrd/loadavg.rrd \
  DS:5min:GAUGE:600:U:U   \
  DS:15min:GAUGE:600:U:U  \
  RRA:AVERAGE:0.5:1:576   \
  RRA:AVERAGE:0.5:6:672   \
  RRA:AVERAGE:0.5:24:744  \
  RRA:AVERAGE:0.5:288:732 \
  RRA:MAX:0.5:1:576       \
  RRA:MAX:0.5:6:672       \
  RRA:MAX:0.5:24:744      \
  RRA:MAX:0.5:288:732
*Update*
#!/usr/local/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin

echo $(uptime | sed -e 's/^.*load average.*: //' -e 's/ //g' | \
awk -F, "{ printf(\"update /var/db/rrd/loadavg.rrd N:%f:%f\", \$2, \$3)}")
| rrdtool -
*Graph*
#!/usr/local/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin

tstamp=`date`
rrdtool graph /var/www/localhost/stats/loadavg-day.png \
  --start now-1day \
  --vertical-label "Load averages" \
  --title "Load averages for the past day" \
  --width 600 \
  --height 200 \
  --alt-autoscale-max \
  --lower-limit 0 \
  DEF:5minavg=/var/db/rrd/loadavg.rrd:5min:AVERAGE \
  AREA:5minavg#0000dd:"5-min load avgs" \
  GPRINT:5minavg:AVERAGE:"Avg\:%3.2lf" \
  GPRINT:5minavg:MAX:"Max\:%3.2lf\n" \
  COMMENT:"$tstamp\r"
see also: http://martybugs.net/linux/rrdtool/traffic.cgi

août 05, 2004

Jail Chroot and Gentoo

Some good script to set up and chroot jail for users http://www.jmcresearch.com/projects/jail/

août 03, 2004

IP CIDR Notation

Reference on IP CIDR notation: ex: 100.100.100.100/24 http://itadmin.appfa.auckland.ac.nz/FAQ/Network/IP-CIDR.htm and a chart: http://bradthemad.ath.cx/tech/notes/cidr_subnets.php