Linux

CDP / LLDP Fun

Problem: You want to know which switch and what port your Linux machine is connected to? Solution: If the switch does CDP (all Cisco switches do), it tells you a lot of information. Tcpdump can capture and show this information. # tcpdump -i eth0 -n -v -s 1500 -c 1 ‘ether[20:2] == 8192’ tcpdump: listening […]

CDP / LLDP Fun Read More »

ejabberd on debian with pam

Problem: After updating from debian lenny (5) to squeeze (6) ejabberd authentication (PAM) stopped working. Solution: ejabberd uses an external programm called epam to authenticate. But this programm had no permission to use pam. I had to type these commands: chown root.ejabberd /usr/lib/ejabberd/priv/bin/epam chmod 4750 /usr/lib/ejabberd/priv/bin/epam killall epam ejabberd 2.1.5-3+squeeze1

ejabberd on debian with pam Read More »

Restore data from a single disk of an HP/Compaq SmartArray raid1

If you look into a harddisk from an HP server with smart array configured for raid1, you will recognize that the partition table of this disk has only one partition: Device Boot      Start         End      Blocks   Id  System <device>p3               1           1        8001   12  Compaq diagnostics The real partitions are invisible? No. I found the start of

Restore data from a single disk of an HP/Compaq SmartArray raid1 Read More »