štvrtok 12. mája 2022

How to factory reset Brocade FC Switch

login as root with password fibranne

switchdisable

configremoveall

yes to all

after reboot login again as root

passwddefault

login as admin

userconfig --change root -e yes

pondelok 9. mája 2022

3PAR Port port:0:0:2 Port listed as host path but is State:ready, Mode:initiator and Type:rcfc

 Assuming, that RCFC is properly configured and Zoning is correct (Only the 2 RCFC Ports in the Zone).

To check this use: showportdev ns 0:2:2

You should see only the two RCFC WWN, so where are the Hosts come from?


The Issue is, that the Array holding a List of all Hosts ever seen on the Ports.

The message says, that on these ports Hosts are seen (also in the past), but it is an RCFC port that should not see Hosts.


Check the Host list with: servicehost list

Cleanup all old Hosts with: servicehost remove [-f 0:2:2]


Source

pondelok 22. marca 2021

streda 16. januára 2013

FATAL: Could not load /lib/modules/*-openvz-*/modules.dep: No such file or directory

Hi all, if you have problems with openvz and iptables fatal message, there is solution:

run command

depmod


it will return something like this


WARNING: Couldn't open directory /lib/modules/2.6.32-5-openvz-amd64: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-5-openvz-amd64/modules.dep.temp for writing: No such file or directory


so create directory

mkdir /lib/modules/2.6.32-5-openvz-amd64


and run command again

depmod




ls -la /lib/modules/2.6.32-5-openvz-amd64/
total 36
drwxr-xr-x 2 root root 4096 Jan 16 14:48 .
drwxr-xr-x 3 root root 4096 Jan 16 14:48 ..
-rw-r--r-- 1 root root   45 Jan 16 14:48 modules.alias
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.alias.bin
-rw-r--r-- 1 root root    0 Jan 16 14:48 modules.dep
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.dep.bin
-rw-r--r-- 1 root root   52 Jan 16 14:48 modules.devname
-rw-r--r-- 1 root root  131 Jan 16 14:48 modules.softdep
-rw-r--r-- 1 root root   49 Jan 16 14:48 modules.symbols
-rw-r--r-- 1 root root   12 Jan 16 14:48 modules.symbols.bin




thats all :)

utorok 7. februára 2012

How to unbind port

From time to time apache after restart doesn't close used ports and You have to restart server. This we don't want. Solution is pretty simple:

find process IDs

$ lsof -i TCP:80


output:


apache2 16442 www-data 3u IPv4 1158908 0t0 TCP s0.domain.tld:80 (CLOSE_WAIT)

...



then we kill process(es)

$ kill -9 16442

piatok 10. septembra 2010

MEC TM1701M or JP108-A

Hi all, I have this mini usb to ethernet adapter. It operates in linux without problems, but I get from it only about 7mbps. I noticed, that many people do not have windows driver and they do not know for which they have to search :) If you have usb to ethernet adapter MEC TM1701M or JP108-A You have to search for Davicom DM9601 and then You will certainly successfull.

piatok 18. decembra 2009

dropbear make pub key

4 Steps:
a) Generate private rsa key in a file: dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
b) Generate public rsa key in a file: dropbearkey -y -f /etc/dropbear/dropbear_rsa_host_key | grep ssh-rsa > /tmp/dropbear_rsa_host_key.pub
c) Copy the public key to the server: scp /tmp/dropbear_rsa_host_key.pub haritz@192.168.111.253:/home/haritz/.ssh/authorized_keys
d) scp or ssh indicating the path of the 'identity_file': ssh -i /etc/dropbear/dropbear_rsa_host_key haritz@192.168.111.253
The identity_file is needed (at least in my case).