понедельник, 20 апреля 2015 г.

Бэкап на NFS шару под Oracle Linux.

Отсюда: http://oracle-base.com/articles/linux/linux-nfs-configuration.php#installation

Ставим.
#yum install nfs-utils

Включаем, проверяем автозапуск.
#service nfs start
#chkconfig nfs on

Правим /etc/exports.
Пример:
/mount-point-1 host1(ro)
/mount-point-2 192.168.0.190(rw)
/mount-point-3 *(ro)
/mount-point-4 192.168.0.0/24(ro)
/mount-point-5 host1(ro) host2(rw) 192.168.0.0/24(ro)

Перегружаем сервис.
#service nfs restart
или
#exportfs -ra

Для Oracle нужны особые параметры при монтировании.
#mount -t nfs -o hard,bg,rw,nointr,noac,rsize=32768,wsize=32768,suid,proto=tcp,vers=3    hostname:/dir    /dir

вторник, 14 апреля 2015 г.

Проблема с подключением к ESXi 5.1 клиентами 5.1 и 5.5 на Windows XP.

Подробно описана здесь http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2049143.
    •  For ESXi 5.1 and 5.5
    1. Connect to the host via SSH. For more information, see Using ESXi Shell in ESXi 5.0 and 5.1 (2004746).
    2. Navigate to the directory:

      /etc/vmware/rhttpproxy/
    3. Backup the config.xml file. Do not skip this step.
    4. Open config.xml file using vi editor. For more information, see Editing files on an ESX host using vi or nano (1020302).
    5. Add the <cipherList>ALL</cipherList> parameter between the <ssl>...</ssl> section of the configuration file. Use the model below as an example:

      <config>
      ...<vmacore>...<ssl><doVersionCheck> false </doVersionCheck><useCompression>true</useCompression><libraryPath>/lib/</libraryPath><handshakeTimeoutMs>120000</handshakeTimeoutMs><cipherList>ALL</cipherList></ssl>...</vmacore>...</config>
    6. Save and close the config.xml file
    7. Reset the rhttpproxy service for the change to take effect by running the command:

      /etc/init.d/rhttpproxy restart

четверг, 9 апреля 2015 г.

Настройка NTP на контроллере домена

Отсюда: http://it.nppiris.ru/windows/windows-2003-2008-domen-time/

Находим все DC и того, кто из них PDC эмулятор
netdom query fsmo
На PDC делаем следующее
w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly
которая произведет 5 сравнений с источником, а затем
w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update
которая непосредственно выполнит настройку.
Можно указать сразу несколько серверов, в этом случае необходимо раздели имена серверов пробелом и всех их заключит в кавычки: /manualpeerlist:"time.windows.com clock0.macomnet.ru".

среда, 15 октября 2014 г.

Настройка IPSI TN2312

1.Install IPSI board into Gateway/Cabinet if new install. See bottom of form if swap.
2.Configure your laptop’s Ethernet port to 192.11.13.5 and 255.255.255.252
3.Connect laptop via Cross-Over Cable to Services port on front of IPSI board.
4.On your laptop, select Start, Run, and then type cmd in the space and hit enter.
5.At DOS prompt, type telnet 192.11.13.6
6.When connected, you should see an [IPSI]: command prompt.
7.Type the word ipsilogin and hit enter.
8.Type the words craft (for the user) and serv1ces (for the password). Note: the letter i in services is replaced with the number 1. You should be at the [IPADMIN]: prompt.
9.Now type set control interface [ipsi ip address] [subnet] and hit enter. Use the IPSI IP address and Subnet from above without the brackets.
10.Type exit and hit enter.
11.Now log into the IPSI board again using step 4 through 8 then come back to step 12.
12.Now type set control gateway [gateway ip] and hit enter. Use the Gateway IP from above. The customer may not have a LAN Gateway in use for the IPSIs, so this step may not be necessary.
13.Type exit and hit enter.
14.Now log into the IPSI board again using step 4 through 8 then come back to step 15.
15.Type show control interface and check to make sure the IP addressing matches the above info.
16.Type reset and hit enter, then type y and hit enter to confirm IPSI board.
17.Now log into the IPSI board again using step 4 through 8 then come back to step 18.
18.Type show control interface to make sure the IPSI board reset was successful.
19.Type exit and hit enter to exit the IPSI command line interface.
20.Type exit and hit enter to close the DOS window.
If this is a replacement of an IPSI board in a IP-Connect configuration, you need to log into the IPSI (if possible) and retrieve the existing IP addresses if they are not available from the customer. You may also retrieve them from the S87XX/S8500. Write those addresses down on the form and use those to configure the new IPSI board.

среда, 8 октября 2014 г.

Настройка ClamAV для фильтрации zip-архивов с исполняемыми файлами в почтовых вложениях.

Cоздаём файл в /var/db/clamav/archive.zmd c содержимым:
Block.EXE-zip:0:\.exe$:*:*:*:*:*:*
Block.COM-zip:0:\.com$:*:*:*:*:*:*
Block.JS-zip:0:\.JS$:*:*:*:*:*:*

Перегружаем clamd.

Описание формата строки:
The (now obsolete) archive metadata signatures can be only applied to ZIP and RAR files and have the following format: 
virname:encrypted:filename:normal size:csize:crc32:cmethod:fileno:max depth
where the corresponding fields are:
• Virus name
• Encryption flag (1 – encrypted, 0 – not encrypted)
• File name (this is a regular expression - * to ignore)
• Normal (uncompressed) size (* to ignore)
• Compressed size (* to ignore)
• CRC32 (* to ignore)
• Compression method (* to ignore)
• File position in archive (* to ignore)
• Maximum number of nested archives (* to ignore)
The database file should have the extension of .zmd or .rmd for zip or rar metadata
respectively.

вторник, 30 сентября 2014 г.

Копирование по scp без запроса пароля

Убедиться что ssh сервер принимает авторизацию по ключу:
В /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile путь к ключам

Убедиться что ssh клиент знает где находится private key:
В /etc/ssh/ssh_config должно быть:
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_dsa

На клиенте создать пару — приватный, публичный ключ:
#ssh-keygen -t dsa
Будет создано два ключа в /root/.ssh/
id_dsa и id_dsa.pub

Установить публичный ключ на ssh сервер:
Копируем на сервер id_dsa.pub,  затем
#cat id_dsa.pub >> authorized_keys
(как правило authorized_keys находится /root/.ssh).

Проверяем
#ssh user@server
#scp file user@server:folder


Отсюда: http://my-hlam.livejournal.com/22067.html

пятница, 29 августа 2014 г.

Команды управления телефоном Avaya 1608

Mute LOGOFF #
Mute CLEAR #  - сбросить все настройки
Mute RESET # - сбросить всё, кроме номера

Чтобы перейти в режим ввода команды надо после загрузки прошивки зайти в настройки IP-адресов и ничего там не менять, т.е. нажимать # до предложения ввести команду.
Если установлен пароль, то вводить сначала его: Mute CRAFTCLEAR #.

Update:
with firmware update 1.3.3.x default PROCPSWD password is now "CRAFT" ...........reseting the 1608 phone to factory default are as follows: "Mute" , “C”, “R”, “A”, “F”, “T”,"# " you will then be prompted with the Reset Values? *=no or #=yes, then Restart phone? *=no or #=yes.