Linux: sort directory by size, easily 
[root@gw log]# du -k --max-depth=1 | sort -nr
988596 .
31264 ./httpd
3984 ./audit
60 ./cups
36 ./prelink
16 ./mail
12 ./pm
8 ./vbox
8 ./ppp
8 ./iptraf
8 ./conman



[root@gw log]# du -sk /home/* | sort -rn




[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Linux: grubby; useful command to manipulate kernel configuration from command line 
To get the inforamtion which is the default kernel use this command:

# grubby --default-kernel
/boot/vmlinuz-2.6.18-274.el5


To update the default kernel with a parameter you can do this:
grubby --update-kernel="$( grubby --default-kernel )" --args="crashkernel=512M@16M"



[ add comment ]   |  [ 0 trackbacks ]   |  permalink
http://www.despair.com/ 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Linux RHEL: reset HP server remotely with ilo (fence_ilo) 
To use the script below to remotely reset HP server vith ILO, you have to create the fence user in ILO and assign permission to remotely reset the server.

#!/bin/bash

# name: fence_server
# desc: the script resets the server remotely via iLO2 (HP servers)
# if the server is not pingable. the script tries to ping
# the server several times before issuing reset.
#
# req: package cman must be installed (includes /sbin/fence_ilo)

SCRIPT_NAME=`basename $0`
TMP_FILE=/tmp/$$.tmp

SYSLOG_FACILITY="user"
SYSLOG_SEVERITY="info"

# server to ping
#SERVERNAME="xxxx"
SERVERNAME="xx.xx.xx.xx"

# ilo to server
ILO_HOSTNAME="xxxx-console"
ILO_ACCOUNT="fence"
ILO_PASSWD="xxxx"

# retries before kill
WAIT_ROUNDS=3 # 3 retries
WAIT_TIME=600 # 10 minutes

# try to ping the server
for waits in $( seq 1 $WAIT_ROUNDS )
do
ping -q -c 3 $SERVERNAME > /dev/null
[ $? -eq 0 ] && exit
sleep $WAIT_TIME
done

# server is not reachable via ICMP, perform reset
> $TMP_FILE
echo "$SCRIPT_NAME is trying to reset the server $SERVERNAME via $ILO_HOSTNAME" >> $TMP_FILE

# do the fence
/sbin/fence_ilo -a $ILO_HOSTNAME -l $ILO_ACCOUNT -p $ILO_PASSWD -v >> $TMP_FILE

# log the output to syslog
while read line
do
logger -t "$SCRIPT_NAME[$$]" -p "$SYSLOG_FACILITY.$SYSLOG_SEVERITY" "$line"
done < $TMP_FILE

rm $TMP_FILE


[ 1 comment ]   |  [ 0 trackbacks ]   |  permalink
OpenVPN clietn setup and tun/tap OpenVPN routing explanation 
http://www.linuxexpres.cz/blog/openvpn-poprve

http://openvpn.net/index.php/access-ser ... ients.html

http://www.secure-computing.net/wiki/in ... PN/Routing

ccd/client file must contain:
iroute 10.10.3.0 255.255.255.0

where the 10.10.3.0 is the LAN beyond the client (ie.router)


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Welcome to the Church of the Flying Spaghetti Monster. 
http://www.venganza.org

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
VmWare: check virtualu a vseho dalsiho na esxi  
Nagios Plugin: check_esxi_hardware.py

This is a Nagios plugin to monitor the hardware of mainly ESXi servers. It can as well be used for ESX servers but there are better plugins in combination with OpenManage or InsightAgents available. The plugin is written in python, so you need to have python installed.

http://www.claudiokuenzler.com/nagios-p ... rdware.php
http://www.claudiokuenzler.com/nagios-p ... ardware.py


Procedures to install ASM-CIMProvider and RemoteArcconf for VMware ESXi 4.1

http://download.adaptec.com/pdfs/instal ... 3_2011.pdf

Hardware Health Monitoring via CIM, part 5
http://blogs.vmware.com/esxi/2010/07/ha ... art-5.html

Adaptec RAID Check by Anchor Systems
http://exchange.nagios.org/directory/Pl ... ms/details

[ 7 comments ]   |  [ 0 trackbacks ]   |  permalink
Staff Paper 
Staff Paper
http://cnx.org/content/m10856/latest/staffpaper1.pdf

Diminished Scale
http://www.creativekeyboard.com/backiss ... /minor.pdf

[ 6 comments ]   |  [ 0 trackbacks ]   |  permalink
Linux: create ramdisk 
To create ramdisk to process the data within

# mkdir /var/ramdisk
# mount -t tmpfs none /var/ramdisk -o size=12G

Wiki: http://en.wikipedia.org/wiki/Tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device. A similar construction is a RAM disk, which appears as a virtual disk drive and hosts a disk file system.

Everything stored in tmpfs is temporary in the sense that no files will be created on the hard drive; however, swap space is used as backing store in case of low memory situations. On reboot, everything in tmpfs will be lost.





[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Left-hand Comping on Autumn Leaves 
http://www.youtube.com/user/weeklypiano

How to Play an Andy Laverne Pedal Point
http://video.answers.com/how-to-play-an ... -306972909

How to Play Piano: Practicing C9's
http://video.answers.com/how-to-play-pi ... 9s-2459423

[ add comment ]   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | Next> Last>>