installing ipmitool on ubuntu 14.04 LTS / Debian wheezy
First you need to enable the ipmi kernel modules
modprobe ipmi_si
modprobe ipmi_devintf
echo ipmi_si >> /etc/modprobe
echo ipmi_devintf >> /etc/modprobe
apt-get install ipmitool
test
ipmitool -I open channel info
how to find out the gateway ip address
with ip
~$ ip route show
default via 192.168.2.1 dev eth0 proto static
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.6 metric 1
with netstat
~$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
with route
~$ route -n
Kernel IP routing table
Destination Gateway Genmas...
Disable printing of control characters in your terminal
To disable the printing of ^C
characters when you press CTRL+C
in your terminal, you can set the following terminal line setting.
stty -echoctl
~$ echo hello world
~$
If you want to have the control characters printed in your terminal again, type the same command without the minus sign
stty echoctl
~$ echo hello world^C
~$ ^C
Add it to your .bashrc, .bash_aliases, or .profile to make it persistent.