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