Archive for the 'linux' Category

 

 

Feb 09 2010

Network Stats with Iptables

Published by dave under linux

As any other firewall, iptables is also able to do network statistics reporting. the -v (–verbose) option makes the list command (-L) show the packet and byte counters. Network stats are available on a per rule basis. Here’s an example on the INPUT chain:
 

[stats@network_server]$ sudo iptables -nvL INPUT
Chain INPUT (policy DROP 74941 packets, 7900K bytes)
[...]

No responses yet

Dec 31 2009

Access Linux from HP iLO Interface

Published by dave under SSH, linux

iLO is a management interface supporting SSH, available on HP Proliant servers. It provides interesting features such as remotely powering the server on and off.
But it is also possible to access the Linux console and reboot in single mode remotely. How handy is that!?
 
BIOS
While booting up, press F9 to go in the BIOS Setup
Go in [...]

No responses yet

Dec 29 2009

Bash Colored Root Prompt

Published by dave under linux

From Linux Suse /etc/bash.bashrc:

# Colored root prompt (see bugzilla #144620)
if test “$UID” -eq 0 -a -t && type -p tput > /dev/null 2>&1 ; then
_bred=”$(tput bold 2> /dev/null; tput setaf 1 2> /dev/null)”
_sgr0=”$(tput sgr0 2> /dev/null)”
PS1=”\[$_bred\]$PS1\[$_sgr0\]”
unset _bred _sgr0
fi

No responses yet

Next »