Portret użytkownika woo

Simple network monitoring script using ping

I have always problems with capture rare problems with networks because simple programs such as ping or mtr doesn't logs problem in time scale.

I know that I could use SNMP and MRTG or similar tools but those are to big for small scale problems especially for particular server at client's network.

That's why I create simple script which logs timestamp when ICMP packets are dropped. Moreover it use standard tools such as ping and sh.

As usually use it on your own risk :)


#!/bin/sh
#
# Simple script for parallel ping

Portret użytkownika woo

FreeBSD on HP DL380 G3

It's good to install some additional tools for hardware inspection from http://people.freebsd.org/~jcagle/. But as usuall there are some caveats. If you want use Server Health Monitoring and Management (hpasm) use only 7.22 version and FreeBSD 5 compatibilty mode.

After successful installation you will need still patch for use hpasmcli. To do this:

Portret użytkownika woo

DOS 2 Unix conversion

Well I had enough of looking for EOL conversion solution every time when I realy need, so I decided to solve this problem once and for all. Below is my one-liner maybe it will help you also :)

find ./ -type f -exec perl -i -p -e 's/\r$//' {} \;

Portret użytkownika woo

IIS6 FTP Server

When you want to use fully this FTP server you face problem of passive connections, especially in case of using firewall.
Solution is to setup passive port range for FTP server and then setup your firewall properly using this range.
To do this, use some VBS help using cmd window:

cd c:\Inetpub\AdminScripts
adsutil.vbs set /MSFTPSVC/PassivePortRange "5100-5120"

It is important to use range between 5001 and 65535, if you use lower ports FTP server won't startup.

Portret użytkownika woo

E: Internal Error, Could not perform immediate configuration (2) on libc6

Argh... more sophisticated tool you use more problems you can face. This time apt-get give me some headache. The solution was to do the man's job using low level tool (as usual ;)) called dpkg:
cd /var/cache/apt/archives/
dpkg -i --force-depends libc6*

Portret użytkownika woo

Problems with failsafe mode in Openwrt

Today on the topic is forgotten root password to Linksys with Whiterussian on board.
Unfortunately howtos on www.openwrt.org doesn't work in 100%, so as usual in such case I need to find complete answer step by step using: google, "basic" linux knowledge and pinch of luck ;).

Portret użytkownika woo

Inawooguracja

I tak oto powstała strona WWW po dwoogiej niebytności, opatrzona we wszelakie narzędzia do kreowania opinii publicznej :)

Portret użytkownika woo

Czy galeria powinna być zamknięta ?

Tak, dostęp do niej dopiero po wpisaniu hasła
0% (0 głosów)
Nie, niech służby specjalne zbierają na mnie kompromitujące materiały
0% (0 głosów)
Razem głosów: 0
Subskrybuje zawartość