Friday, July 31, 2009

IB Fabric: Manipulating HSM Autostart

# Stop all HSMs
cmdall "service qlogic_fm stop"

# Keep Them Off
cmdall "chkconfig qlogic_fm off"

# Turn an HSM on for a particular host. Keep it on for reboot.
# On the chkconfig command, the runlevels are specified in
# the init script itself. So, you don't have to specify
# "--level 235" for example.
cmdall -h st146 "service qlogic_fm start"
cmdall -h st146 "chkconfig qlogic_fm reset"

Online Git Book

Online git book here.
Another one:

Friday, June 19, 2009

Monday, February 23, 2009

Redirect Console Messages To RS-232 On RHEL 5.2

1) Add the following lines to /etc/inittab
s0:2345:respawn:/sbin/agetty -L -f /etc/issueserial 9600 ttyS0 vt100
s1:2345:respawn:/sbin/agetty -L -f /etc/issueserial 9600 ttyS1 vt100

2) Add the following lines to /etc/securetty
ttyS0
ttyS1

3) Add the following directive to the GRUB boot line for the kernel:
console=ttyS1,9600



Wednesday, February 04, 2009

Watching Ethernet Interface(s): mii-tool


# mii-tool -v eth0
eth0: negotiated 100baseTx-FD flow-control, link ok
product info: vendor 00:08:18, model 24 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

# mii-tool -w -v eth0
16:31:05 eth0: negotiated 100baseTx-FD flow-control, link ok