Wednesday 25 April 2012

Sun Microsystems hardware Environmental figures

List of legacy Sun Microsystems hardware and it's Rack Unit Size, Weight British Thermal Units and Watt power consumption usage.


Model

Rack U's
Weight KG
BTU's
Watts
Sun Fire E25K
43
1143
81352
23927
Sun Fire E20K
43
996
44081
12965
Sun Fire E6900
43
544.3
31113
9120
Sun Fire E4900
17
131
14260
4180
Sun Fire E2900
12
141
12683
3300
Sun Fire V1280
12 114 11300 3300
Sun Fire V890
16
131 10912 3200
Sun Fire V490
5 44 5459 1600
Sun Fire V480
5 44 3754 1100
Sun Fire V440
4 37 2218 650
Sun Fire V240
2 26.5 1228 375
Sun Fire V210
1 21.5 996 322
Sun Fire V120
1 9 550 98
Sun Fire V100
1 6 280 54
Sun Fire T2000
2 17 1365 400
Sun Fire V40z
3 34 2133 625
Sun Fire V20z
1 15.88 1586 325
Sun Fire X4200
2 23.7 1536 550
Sun Fire X4100
1 18.6 1536 550
Sun Fire X2100
1 13 785 230
Sun Fire 15K
43 1159 81116 24000
Sun Fire 12K
43 1159 44081 24000
Sun Fire 6800
43 454.5 22030 6460
Sun Fire 4810
21 131.8 10625 3120
Sun Fire 4800
17 125 10370 3040
Sun Fire 3800
9 132 7775 2280
Sun Fire V880
16 131 7216 2115
Sun Fire V250
11 31 2150 460
Sun Fire 280R
4 38 3140 890
Sun Fire B1600
3 16 3415 1000
Sun Fire V60X
1 - 1171 350
Sun Fire V65X
2 - 1706 500
Enterprise 10000
40 818 52000 13456
Enterprise 6500
39 450 12000 3500
Enterprise 5500
39 450 12000 3500
Enterprise 4500
8 68 4680 1370
Enterprise 3500
15 72.5 3000 875
Enterprise 450
13 94 5680 1664
Enterprise 250
10 53 1980 610
Enterprise 250 w/casters
12 53 1980 610
Enterprise 420R
4 29.5 2080 610
Enterprise 220R
4 29.5 2080 610
StorEdge 6920
43 659 28000 -
StorEdge 6910
14 550 14000 4200
StorEdge 6960
27 1316 26000 8400
StorEdge 3910
14 667 12320 4200
StorEdge 3960
27 1300 26000 8400
StorEdge 6320
14 771 15000 4200
StorEdge 6120
3 41 - 500
StorEdge 6130
3 43 1228 360
StorEdge T3 Workgroup
3 30.4 1540 450
StorEdge T3 Enterprise
6 60.3 1540 450
StorEdge A5x00 (Tabletop)
5 54 2200 650
StorEdge A5x00 (Full rack)
42 394 13320 3900
StorEdge A3500 (Full rack)
42
8447 2475
StorEdge A3500 Controller
4
18 731 214
StorEdge 3120 (AC)
1
13.6 - -
StorEdge 3120 (DC)
1
13.6 - -
StorEdge 3310 (AC)
2 27 785 -
StorEdge 3310 (DC)
2 27 785 -
StorEdge 3510 (AC)
2 25.8 785 -
StorEdge 3511 (AC)
2 28.7 785 -
StorEdge 3510 (DC)
2 28.7 785 -
StorEdge 3511 (DC)
2 28.7 785 -
StorEdge A/D1000
4 28.4 1092 260
StorEdge D2
4
28.6
1092
260
StorEdge S1
1
8.16
512
150
D240 (Rackmount)
2
22.8
341
100
D240 (Tabletop)
2
27.2
341
100
StorEdge Flexipack
13
6.7
125
36.5
StorEdge Multipack
5
12.8
900
265
StorEdge FC Multipack
5
12.7
900
185
Storage Unipack
2
3.6
125
36.5

Friday 30 December 2011

Simple command line email on Mac using gmail account

Here's a simple 3 step process for configuring you mac to send email from the command line using a gmail account.  You will need to:
  1. Install macports if you haven't already
  2. Install ssmtp from macports
  3. Update the ssmtp configuration files
Step 1, Install macports

If you haven't already installed macports go here: macports and get it, and install it.


Step 2, Install ssmtp from macports

Open a terminal window and use the following to install the ssmtp software
$ sudo port install ssmtp

Step 3, Update the ssmtp configuration files

Using your fav editor, make the following changes to the non-existent ssmtp.conf file:

$ sudo vi /opt/local/etc/ssmtp/ssmtp.conf

root=yourgmailaccount@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=yourgmailaccount@gmail.com
UseSTARTTLS=YES
AuthUser=gmail_username_here
AuthPass=gmail_password_here
FromLineOverride=YES

Now edit the rev aliases file

$ sudo vi /opt/local/etc/ssmtp/revaliases


root:yourgmailaccount@gmail.com:smtp.gmail.com:587
rob:yourgmailaccount@gmail.com:smtp.gmail.com:587

Step 4, Test

Test that it works, from the command line:
$ /opt/local/sbin/ssmtp rob@somewhere.com
Subject: some subject
this is some text
^d 

(Use ctrl d to after you've finished writing your message.)

Tuesday 30 August 2011

Drupal Error - PHP Warning: Unknown: POST Content-Length of 796 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0

The following error appears in your apache log and it's not possible to do a lot on your drupal site....

PHP Warning:  Unknown: POST Content-Length of 796 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0

This was caused by changing the values in the php.ini for the file upload max size.  Ensure that you encase all values in speech marks.

post_max_size = "1024M"
upload_max_filesize = "1024M"

Friday 1 April 2011

How to install the latest ImageMagick on AWS

Amazon is still a fair bit behind the latest versions of ImageMagick.  If you need a latter release then follow these instructions.

Get rid of the old version
# yum remove ImageMagick

Install the dependancies
# yum install wget tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel

Now get ImageMagick from http://www.imagemagick.org/script/download.php and download the latest source with wget or curl.

Extract it
# tar zxvf ImageMagick-x.x.x-x.tar.gz

Build it
# configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
# make clean
# make
# make install


Then you should be hot to trot. Type convert -version to see the upgraded version number.

Sunday 13 March 2011

Mirroring Root Disk with DiskSuite - mirror_root Shell Script

I wrote this script now almost decade ago, and actually had to use it the other day. Love it when that happens...

On Solaris 2.6 (With DiskSuite installed), 7, 8, 9 and 10 this will mirror your root disk to another using disksuite and then reboot the box to attach the mirror.



#!/usr/bin/ksh
#
# Purpose: Script to mirror root disk using Solstice Disksuite.
# Rob Brown 14/05/2001
#
ROOTDISK=$1
ROOTMIRROR=$2
METADBSLICE=$3
PATH=$PATH:/usr/opt/SUNWmd/sbin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/openwin/bin

#
# Sanity Chk. Ensure Binaries exist and
# determine Paths to them. Also ensure no
# disksuite metadb's have been configured.
# Check users has sufficent permissions and check
# they are frood enough to continue.
#

#
# Configure Paths
#
if [ -f /usr/opt/SUNWmd/sbin/metastat ]; then
METASTAT=/usr/opt/SUNWmd/sbin/metastat
METADB=/usr/opt/SUNWmd/sbin/metadb
METAINIT=/usr/opt/SUNWmd/sbin/metainit
METATTACH=/usr/opt/SUNWmd/sbin/metattach
METAROOT=/usr/opt/SUNWmd/sbin/metaroot
MDTAB=/etc/opt/SUNWmd/md.tab

elif [ -f /usr/sbin/metastat ]; then
METASTAT=/usr/sbin/metastat
METADB=/usr/sbin/metadb
METAINIT=/usr/sbin/metainit
METATTACH=/usr/sbin/metattach
METAROOT=/usr/sbin/metaroot
MDTAB=/etc/lvm/md.tab

else
echo No Disksuite binaries found. Please ensure it is installed.
exit 1
fi


#
# Do Any metadbs already exist?
#
${METADB} > /dev/null
if [ "$?" -ne "1" ]
then
echo "Metadb's may exist, or funny return code from metadb. Please clear down before rerunning ${0}."
exit 1
fi


#
# Is user root?
#
ID=`id`
USER=`expr "${ID}" : 'uid=\([^(]*\).*'`

if [ "${USER}" != "0" ]; then
echo "You must be root to run $0"
exit 1
fi


#
# Are Disk variables populated?
#
if [ "${ROOTDISK}" = "" ] || [ "${ROOTMIRROR}" = "" ] || [ "${METADBSLICE}" = "" ]; then
echo "Information missing: "
echo "Usage: $0 rootdisk rootmirror metadbslice"
echo "e.g. ${0} c1t0d0 c1t1d0 s7"
exit 1
fi



#
# Main
#
echo "Backing up old system/vfstab..."
cp /etc/vfstab /etc/vfstab.pre-`basename ${0}`
cp /etc/system /etc/system.pre-`basename ${0}`


#
# Write vtoc and check, bomb out on any errors.
#
echo "Writing ${ROOTDISK}'s vtoc ---> ${ROOTMIRROR}..."
prtvtoc /dev/rdsk/${ROOTDISK}s2 > /tmp/root-vtoc
fmthard -s /tmp/root-vtoc /dev/rdsk/${ROOTMIRROR}s2

FMTHARD_RTN=${?}
if [ "${FMTHARD_RTN}" -ne "0" ]; then
echo "Error Writing the vtoc from ${ROOTDISK} to ${ROOTMIRROR}, are they"
echo "the same type/size of disk?? Exiting."
exit
fi

echo "Creating MetaDatabases..."
${METADB} -a -c 3 -f ${ROOTDISK}${METADBSLICE}
${METADB} -a -c 3 -f ${ROOTMIRROR}${METADBSLICE}

echo "Meta DataBase: "
${METADB}

for SLICE in `cat /tmp/root-vtoc |grep -v '*' |awk '{print $1}'`
do
if [ ${SLICE} -eq "2" ] || [ ${SLICE} -eq `echo ${METADBSLICE} |cut -c2` ]
then
echo Not Touching slice ${SLICE} as it is either the MetaDB or the backup Slice.
else
echo Creating Sub Disks and Mirroring Slice ${SLICE}
MD_ROOT="d`expr ${SLICE} + 10`"
MD_MIRR="d`expr ${SLICE} + 20`"
MD_MIRROBJECT=d${SLICE}
${METAINIT} -f ${MD_ROOT} 1 1 ${ROOTDISK}s${SLICE}
${METAINIT} ${MD_MIRR} 1 1 ${ROOTMIRROR}s${SLICE}
${METAINIT} ${MD_MIRROBJECT} -m ${MD_ROOT}

echo "${METATTACH} ${MD_MIRROBJECT} ${MD_MIRR}" >> /etc/rc3.d/S98finish_mirror

cp /etc/vfstab /etc/vfstab.pre_rootmirror
cp /etc/vfstab /tmp/vfstab

if [ ${SLICE} -eq "0" ]
then
${METAROOT} ${MD_MIRROBJECT}
else
# Need to change entry in vfstab
echo "Altering the vfstab..."
cat /etc/vfstab |sed -e "s/\/dsk\/${ROOTDISK}s${SLICE}/\/md\/dsk\/${MD_MIRROBJECT}/" > /tmp/vfstab
cp /tmp/vfstab /etc/vfstab
cat /etc/vfstab |sed -e "s/\/rdsk\/${ROOTDISK}s${SLICE}/\/md\/rdsk\/${MD_MIRROBJECT}/" > /tmp/vfstab
cp /tmp/vfstab /etc/vfstab
fi
fi
done

# Create md.tab, and make the finish_mirror script runable at next boot.
echo "${METASTAT} -p >> ${MDTAB}" >> /etc/rc3.d/S98finish_mirror
echo "/usr/bin/rm /etc/rc3.d/S98finish_mirror" >> /etc/rc3.d/S98finish_mirror
chmod 755 /etc/rc3.d/S98finish_mirror

echo "This system must now be rebooted, to attach new mirrors."

Thursday 3 March 2011

Monitoring MacOS X host with SNMP and Cacti

I've been monitoring some hosts with cacti and needed to add a MacOS X host in.  This is how to configure SNMP on Snow Leopard and configure cacti.

Edit your /etc/snmp/snmpd.conf on the Mac and place the following into it:

rocommunity public
includeAllDisks 10%


Once saved, start the snmpd daemon with:

sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist

Thats it from the Mac side, now in cacti add it as a you would any other device, but also add a graph type of "[SNMP - Get Processor Information]" to get the processor information broken down by core.

Thats it.  You should start seeing some graphs like the following:

Sunday 13 February 2011

Goa Mix Cue Sheets

Tried everywhere to find some cue sheets for the two CD edition of the original 1994 Essential Mix - Goa Mix and finally had to create my own from different sources.

Here's the first CD:

PERFORMER "Paul Oakenfold"
TITLE "The Goa Mix - Silver"
FILE "cd1.mp3" mp3

TRACK 01 AUDIO 
 TITLE "Give Me Life" 
 PERFORMER "Mr V"
 INDEX 01 00:52:00
TRACK 02 AUDIO 
 TITLE "Skin On Skin (Orange Mix)" 
 PERFORMER "Grace"
 INDEX 01 1:53:11
TRACK 03 AUDIO 
 TITLE "Point Zero" 
 PERFORMER "Li Kwan"
 INDEX 01 8:07:21
TRACK 04 AUDIO 
 TITLE "De Niro (Spaceflight Mix)" 
 PERFORMER "Disco Evangelists"
 INDEX 01 13:29:95
TRACK 05 AUDIO 
 TITLE "Vaporise" 
 PERFORMER "Virtual Symmetry"
 INDEX 01 15:30:80
TRACK 06 AUDIO 
 TITLE "Tears In The Rain" 
 PERFORMER "Vangelis"
 INDEX 01 20:23:37
TRACK 07 AUDIO 
 TITLE "Eugina (Pacific Diva Mix)" 
 PERFORMER "Salt Tank"
 INDEX 01 22:17:35
TRACK 08 AUDIO 
 TITLE "LSD" 
 PERFORMER "Hallucinogen"
 INDEX 01 23:51:02
TRACK 09 AUDIO 
 TITLE "Only Love Can Break Your Heart" 
 PERFORMER "Saint Etienne"
 INDEX 01 29:43:62
TRACK 10 AUDIO 
 TITLE "Vampire Hunters" 
 PERFORMER "Wojciech Kilar"
 INDEX 01 29:59:84
TRACK 11 AUDIO 
 TITLE "Alcatraz" 
 PERFORMER "Electrotete"
 INDEX 01 30:59:61
TRACK 12 AUDIO 
 TITLE "Main Titles" 
 PERFORMER "Vangelis"
 INDEX 01 37:00:39 
TRACK 13 AUDIO 
 TITLE "Floor Essence" 
 PERFORMER "Man With No Name"
 INDEX 01 39:00:89
TRACK 14 AUDIO 
 TITLE "Bugcatcher" 
 PERFORMER "Scorpio Riding"
 INDEX 01 45:02:58
TRACK 15 AUDIO 
 TITLE "Evolution" 
 PERFORMER "Man With No Name"
 INDEX 01 48:01:97

and the second

PERFORMER "Paul Oakenfold"
TITLE "The Goa Mix - Gold"
FILE "cd2.mp3" mp3

TRACK 01 AUDIO
 TITLE "Inner City Life" 
 PERFORMER "Goldie"
 INDEX 01 00:00:00
TRACK 02 AUDIO
 TITLE "Love Remembered" 
 PERFORMER "Wojciech Kilar"
 INDEX 01 01:36:61
TRACK 03 AUDIO
 TITLE "Co-Incidence" 
 PERFORMER "Voodoo People"
 INDEX 01 03:09:17
TRACK 04 AUDIO
 TITLE "Stimuli" 
 PERFORMER "The Infinity Project"
 INDEX 01 06:23:62
TRACK 05 AUDIO
 TITLE "Wake Up! (Trance Mix)" 
 PERFORMER "Trance Team"
 INDEX 01 10:59:03
TRACK 06 AUDIO
 TITLE "Heretic Voices (Angeles Mix)" 
 PERFORMER "V-Tracks"
 INDEX 01 14:02:05
TRACK 07 AUDIO
 TITLE "Schöneberg (Marmion Remix)" 
 PERFORMER "Marmion"
 INDEX 01 16:11:63
TRACK 08 AUDIO
 TITLE "Hierophone" 
 PERFORMER "Karl Biscuit"
 INDEX 01 23:13:74
TRACK 09 AUDIO
 TITLE "Rachel's Song" 
 PERFORMER "Vangelis"
 INDEX 01 25:42:30
TRACK 10 AUDIO
 TITLE "Sun (Oakenfold & Osborne Mix)" 
 PERFORMER "Virus"
 INDEX 01 27:19:70
TRACK 11 AUDIO
 TITLE "Deliverance" 
 PERFORMER "Man With No Name"
 INDEX 01 35:27:66
TRACK 12 AUDIO
 TITLE "Reach Up! (Indian Summer Mix)- Remix - Man With No Name" 
 PERFORMER "Perfecto Allstarz"
 INDEX 01 42:40:72
TRACK 13 AUDIO
 TITLE "Song Of Liberation" 
 PERFORMER "Para-Dizer"
 INDEX 01 48:09:74
TRACK 14 AUDIO
 TITLE "Sanvean" 
 PERFORMER "Dead Can Dance"
 INDEX 01 53:35:54
TRACK 15 AUDIO
 TITLE "Eternal Spirit (Northern Mix)" 
 PERFORMER "4Voice"
 INDEX 01 57:08:23
TRACK 16 AUDIO
 TITLE "Sugar Rush" 
 PERFORMER "Man With No Name"
 INDEX 01 61:00:10