вторник, 15 апреля 2014 г.

Autoit и RDP - черный экран при создании screenshot

Если запускать скрипт Autoit на машине через RDP через планировщик и свернуть окно с сеансом, то при создании screenshot функцией Autoit получится картинка с черным квадратом.

Чтобы решить эту проблему, необходимо разрешить множественный вход на сервере под одной учетной записью (на примере windows server 2008)
Start - Administrative Tools - Remote Desktop Services - Remote Desktop Session Host Configuration.
Выбираем Restrict each user to a single session - Properties - убираем галочку напротив этого пункта. Разлогиниваемся

Затем заходим на машину через RDP, и в этом же сеансе вновь заходим на эту же машину по RDP. Сворачиваем, а скриншоты делаются в фоне.

вторник, 1 апреля 2014 г.

CA SPECTRUM change Disk Threshold Exceeded alarm

By default, after creating a Monitored File System, SPECTRUM will assert an alarm on the MonitoredDisk model.

To have the alarm asserted on the associated Host model for an individual Host model: 
1. Find and select the Host model
2. In the Component Details window select the Information tab
3. Find and expand the System Resources -> File Systems -> Monitored File Systems (RFC 2790) folder
4. Set the Generate Alarm On option to: Device Model

To change the default setting to assert the alarm for all Host models: 
1. Click on the Locater tab in the Navigation panel
2. Execute the Application Models -> All Application Models search
3. Filter for rfc2790app in the Results tab on the Contents panel
4. Highlight all of the rfc2790app models in the Results tab of the Contents panel. Right mouse click and select Utilities -> Attribute Editor from the menu
5. In the Attribute Editor window, click on the add link to the right of the User Defined entry under the Attributes folder
6. In the Attribute Selector window 
a. Filter for the DMon_SendAlarmsTo (0xc41135) attribute for the rfc2790app model 
b. Select the DMon_SendAlarmsTo (0xc41135) attribute for the rfc2790app model
c. Click on the OK button
7. In the Attribute Editor window 
a. Select the DMon_SendAlarmsTo (0xc41135) attribute
b. Click on the ">" button
c. Uncheck the No Change check box
d. Select Device for the value
e. Check the Set As Default check box
f. Click on the Apply button
12. In the confirmation window, click on the Yes button to confirm the default value change
13. In the Attribute Edit Results window, click on the Close button
14. In the Attribute Editor windows, click on the OK button to close the window

воскресенье, 30 марта 2014 г.

Sap logon 720 - Logon Balancing Error 88 ( RC=9 )

Возникла проблема, когда установил Sap GUI. При заходе в Sap logon 720 и выборе любой системы вылетает ошибка - error:Logon balancing error 88:Cannot connect to message server(rc=9).

Оказалось, необходимо зайти в WINNT\system32\drivers\etc\services
и добавить туда строчку вида:
sapmsXXX 3600/tcp
где XXX - имя вашей системы.

В моем случае я добавил
sapmsERP  3600/tcp
sapmsBWP  3603/tcp
И все заработало.

вторник, 4 февраля 2014 г.

Apache + mysql + php + CentOS

Install mysql.

<?php
$host = "127.0.0.1";
$name = "admin";
$pwd = "pwd";

$connect = @mysql_connect($host,$name,$pwd);
echo "ok";
?>
Clear screen.

yum install php-mysql php-gd php-imap php-ldap php-odbc 
service httpd restart


понедельник, 3 февраля 2014 г.

Centos apache + perl + python

1. vi /etc/httpd/conf/httpd.conf

Search
     # AddHandler cgi-script
Replace on
     AddHandler cgi-script .cgi .py .pl

Search
 <Directory "/var/www/html">
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Add
     Options +ExecCGI

Then 
service httpd restart

2. cd /var/www/html/
    vi helloperl.pl 
Add 
   #!/usr/bin/perl
   print "Content-type: text/html\n\n";
   print "Perl hello";

   vi hellopython.py
Add
  #!/usr/bin/env python
  # -*- coding: UTF-8 -*-

  # enable debugging
  import cgitb
  cgitb.enable()

  print "Content-Type: text/plain;charset=utf-8"
  print

  print "Hello World!"


  Then
   chmod +x helloperl.pl
   chmod +x hellopython.pl
Go to http://mysite/helloperl.pl
Go to http://mysite/hellopython.pl

понедельник, 23 декабря 2013 г.