Friday, February 10, 2017

Showing HP disk array health inside Linux


First you need to get the

hpssacli-1.50-4.0.x86_64.rpm

http://h20564.www2.hpe.com/hpsc/swd/public/detail?swItemId=MTX_b6a6acb9762443b182280db805

Then you can run things like this



[root@01 ~]# hpssacli controller slot=0 physicaldrive all show

Smart Array P410i in Slot 0 (Embedded)

   array A

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, Predictive Failure)
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 146 GB, OK)
      physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 146 GB, OK)
      physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SAS, 146 GB, Predictive Failure)
      physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SAS, 146 GB, Predictive Failure)


 [root@01 ~]# hpssacli ctrl slot=0 logicaldrive all show status

   logicaldrive 1 (546.8 GB, 1+0): OK


[root@01 ~]# hpssacli ctrl all show status

Smart Array P410i in Slot 0 (Embedded)
   Controller Status: OK

Wednesday, November 11, 2015

firefox 3.6 on fedora 23

I work on lots of legacy hardware that needs older browsers for ssl and plugins.

so I use a a old tarball of firefox 3.6 to get around most things.

#dnf install xulrunner-40.0-1.fc23.i686
#dnf install gtk2.i686

then

@WOPR1 firefox]$  su dracsucks
dracsucks@WOPR1 firefox]$ xhost +
dracsucks@WOPR1 firefox]$ cat /etc/redhat-release
Fedora release 23 (Twenty Three)
[dracsucks@WOPR1 firefox]$ LD_LIBRARY_PATH=/home/dracksucks/bin/firefox/ ./firefox-bin

(process:28971): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox-bin:28971): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(firefox-bin:28971): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(firefox-bin:28971): Gtk-WARNING **: Error loading theme icon 'gtk-go-back-ltr' for stock: Icon 'gtk-go-back-ltr' not present in theme

(firefox-bin:28971): Gtk-WARNING **: Error loading theme icon 'gtk-go-forward-ltr' for stock: Icon 'gtk-go-forward-ltr' not present in theme

And boom

Update IBM System x3650 -[7979AC1]-

yum install libXtst.i686 -y 

BMC update

~]# yum install OpenIPMI ipmitool -y

 ~]# ./ibm_fw_bmc_ggbt59a_linux_i386.sh -s
IBM Flash Update Utility v1.167
Licensed Materials - Property of IBM
(C) Copyright IBM Corp. 2008  All Rights Reserved.

Initiating OpenIPMI connection
FULLFW.MOT:._................................_................................_____.......00:01 elapsed, 00:28 estimated remaining
................................................................................00:02 elapsed, 00:35 estimated remaining
................................................................................
00:44 elapsed, 00:01 estimated remaining
................................................................................00:44 elapsed, 00:00 estimated remaining
..................................
Rebooting BMC...
OEMDEF.CFG:BMC firmware flashed successfully

Bios update

~]# ./ibm_fw_bios_gge149a-1.19_linux_i386.sh -s
IBM Flash Update Utility v1.167
Licensed Materials - Property of IBM
(C) Copyright IBM Corp. 2008  All Rights Reserved.

Flash chipset:   Macronix 29LV320B
0064000.FLS: 280000 [80000]
Erasing block 2f: 280000 - 28ffff
Erasing block 30: 290000 - 29ffff
Erasing block 31: 2a0000 - 2affff
Erasing block 32: 2b0000 - 2bffff
Erasing block 33: 2c0000 - 2cffff
Erasing block 34: 2d0000 - 2dffff
Erasing block 35: 2e0000 - 2effff
Erasing block 36: 2f0000 - 2fffff
Programming block 2f: 280000 - 28ffff
Programming block 30: 290000 - 29ffff
Programming block 31: 2a0000 - 2affff
Programming block 32: 2b0000 - 2bffff
Programming block 33: 2c0000 - 2cffff
Programming block 34: 2d0000 - 2dffff
Programming block 35: 2e0000 - 2effff
Programming block 36: 2f0000 - 2fffff
PXEROM.BIN: 260000 [14000]
Erasing block 2d: 260000 - 26ffff
Erasing block 2e: 270000 - 27ffff
Programming block 2d: 260000 - 26ffff
Programming block 2e: 270000 - 27ffff
CMOSDEF.BIN: 220000 [4000]
Erasing block 29: 220000 - 22ffff
Programming block 29: 220000 - 22ffff
Primary BIOS flashed successfully

Tuesday, June 10, 2014

apartment up time

[root@freeze ~]# cat /proc/cpuinfo
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1191.11
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Seagate FreeAgent DockStar
Revision        : 0000
Serial          : 0000000000000000
[root@freeze ~]# uptime
 20:27:20 up 533 days,  5:03,  1 user,  load average: 1.08, 1.10, 1.16

[root@freeze ~]# uname -a
Linux freeze 3.4.2-3.fc17.armv5tel.kirkwood #1 Tue Jun 12 11:34:37 EDT 2012 armv5tel armv5tel armv5tel GNU/Linux

Sunday, February 23, 2014

imgODROID-U2 imgs

Just a listing of odroidu2 imgs

Android

From http://forum.odroid.com
http://forum.odroid.com/viewtopic.php?f=7&t=1322
http://oph.mdrjr.net/robroyhall/images/android/u2/

Couch potato img

Exynos-4412 BSP Android 4.0.4 Alpha-4.0 from http://com.odroid.com
http://com.odroid.com/sigong/nf_file_board/nfile_board_view.php?keyword=&tag=ODROID-U2&bid=144



Fedora

http://www.odroid.in/fedora-18/

Automation with odroidu2 and belkin WeMo



So I have been having trouble going to be because I have been staying up to late watching Netflix or watching stuff on xbmc. What I ended up doing was setting up a rule on my belkin WeMo switch to kill the power at 1




am.

Home theater setup

List of things in my setup



Living room
PANAMAX M4300-EX Home Theater Power Conditioner
LG Electronics NB3530A Sound Bar System
Xbox 360 4g with 1 32gb flash drive
Comcast DVR  DCX3400-M
WD live plus
FirmwareFW Base: 1.05.04Device: WDLXTV_PLUSLatest version: 0.5.1.1Current version: 0.5.1.1

Android remote  https://play.google.com/store/apps/details?id=com.osdmod.remote&hl=en
LG - 47" Class (44-9/10" Diag.) - LED - 1080p - 120Hz - HDTV Model: 47LS4500


Bed room



VIZIO 32" Class LED-LCD 720p 60Hz HDTV

Chromecast
Odroidu2 with android and xbmc
Android remote https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetfree&hl=en
 Comcast Digital Transport Adapter DCI105COM1

Wednesday, February 12, 2014

Random system info gathering with kickstarts

I started writing up little commands to get system info for when new hardware that comes in.


]# for i in $(cat /proc/net/dev | grep ':' | cut -d ':' -f 1); do echo "Interface : $i" "  $(ethtool $i | grep Link)"; done
Interface : lo          Link detected: yes
Interface : em1         Link detected: yes
Interface : em2         Link detected: no
Interface : em3         Link detected: no
Interface : em4         Link detected: no
Interface : p3p1        Link detected: no
Interface : p3p2        Link detected: no
Interface : p3p3        Link detected: no
Interface : p3p4        Link detected: no


01 ~]# for i in $(cat /proc/net/dev | grep ':' | cut -d ':' -f 1); do echo -e NIC  : $i $(cat /sys/class/net/"$i"/address); done 
NIC : lo 00:00:00:00:00:00
NIC : em1 00:00:00:00:00:00
NIC : em2 00:00:00:00:00:00
NIC : em3 00:00:00:00:00:00
NIC : em4 00:00:00:00:00:00
NIC : p3p1 00:00:00:00:00:00
NIC : p3p2 00:00:00:00:00:00
NIC : p3p3 00:00:00:00:00:00
NIC : p3p4 00:00:00:00:00:00


 ~]# service ipmi start
Starting ipmi drivers:                                     [  OK  ]
1 ~]# mac=$(ipmitool lan print | grep 'MAC Address' | cut -f 16 -d' ') && echo -e NIC : mgmt $mac
NIC : mgmt 00:00:00:00:00:00


01 ~]# dmidecode -t 1
# dmidecode 2.11
SMBIOS 2.7 present.

Handle 0x0100, DMI type 1, 27 bytes
System Information
        Manufacturer: Dell Inc.
        Product Name: PowerEdge pony
        Version: Not Specified
        Serial Number: xxxxxxxxxxxxx
        UUID: xxxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: Not Specified


What I ended up doing was putting this in the end my post section at the bottom of my kickstarts so I can capture all this info.

%post --interpreter=/bin/bash
(
# Turn on bash debugging for more meaningful output in logfile
set -x

service ipmi start
for i in $(cat /proc/net/dev | grep ':' | cut -d ':' -f 1); do echo "Interface : $i" "  $(ethtool $i | grep Link)"; done >> /root/host-info.log
for i in $(cat /proc/net/dev | grep ':' | cut -d ':' -f 1); do echo -e NIC  : $i $(cat /sys/class/net/"$i"/address); done  >> /root/host-info.log
mac=$(ipmitool lan print | grep 'MAC Address' | cut -f 16 -d' ') && echo -e NIC : mgmt $mac >> /root/host-info.log
dmidecode -t 1 >> /root/host-info.log

) &> /root/ks_output.log
%end