LeVeilleur.net

Subscribe

SCOM2007R2 : not enough entropy when installed Linux Agent

décembre 03, 2009 By: Christopher Keyaert Category: Scom 2007

Here the error message :

1
2
3
4
5
6
7
8
9
10
Generating certificate with hostname="xxxxxxxx"
[/home/serviceb/TfsCoreWrkSpcLinux_REDHAT_5.0_x86_64/source/code/tools/scx_ssl_config/scxsslcert.cpp:198]
Failed to allocate resource of type random data: Failed to get random data - not enough entropy
error: %post(scx-1.0.4-248.x86_64) scriptlet failed, exit status 1


<DataItem type="Microsoft.SSH.SSHCommandData" time="2009-12-03T12:08:30.6908778+01:00" sourceHealthServiceId="91A3B596-F820-6A90-305C-6974DA25966D"><SSHCommandData><stdout>Generating certificate with hostname="xxxxxxx"
[/home/serviceb/TfsCoreWrkSpcLinux_REDHAT_5.0_x86_64/source/code/tools/scx_ssl_config/scxsslcert.cpp:198]
Failed to allocate resource of type random data: Failed to get random data - not enough entropy
error: %post(scx-1.0.4-248.x86_64) scriptlet failed, exit status 1

There are two ways to solve this problem, you can recreate the /dev/random file or do a manual agent install.

For both fixes, clean off the partially installed agent using the commands

  1. rpm -e scx
  2. rm -rf /etc/opt/microsoft/scx

Then if you want to make it so that discovery will work from the wizard use the commands

  1. rm /dev/random
  2. mknod -m 644 /dev/random c 1 9
  3. chown root:root /dev/random

A manual install requires copying the appropriate package from %Program Files%\System Center Operations Manager 2007\AgentManagement\UnixAgents to the Unix\Linux machine and installing it directly.

After fixing the install issue, switch the /dev/random file back to a signed random file using the commands:

  1. rm /dev/random
  2. mknod -m 644 /dev/random c 1 8
  3. chown root:root /dev/random

Source : http://blog.xplatxperts.com/xplat-xperts/2009/08/opsmgr-cross-platform-discovery-errors.html

Website is back online

décembre 01, 2009 By: Christopher Keyaert Category: Non classé

Hello guys,

After one month offline due to my moving, my Internet connexion is back now :0)

Enjoy
Christopher

Exchange 2007 : Activate Anti-Spam

octobre 14, 2009 By: Christopher Keyaert Category: Serveur@Home, Windows

Installing Exchange 2007 Anti-spam system

  • Close the EMC (Exchange Management Console).
  • Open the PowerShell and navigate using the following path: « Program Files\Microsoft\Exchange Server\Scripts ».
  • Run the « install-AntispamAgents.ps1″
  • Restart the « Microsoft Exchange Transport » service in order to apply configuration changes.
  • Open the Exchange Management Console, and on the Organization configuration list, select Hub Transport.
  • The « Anti-Spam » tab has been added to the Hub Transport properties.

http://www.petri.co.il/install-anti-spam-exchange-2007.htm

PowerShell : Upload file to WebDav Server

août 14, 2009 By: Christopher Keyaert Category: powershell

A new PowerShell for upload one file to a WebDav Server

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
########################################
#Webdav Access with PowerShell
########################################

#Put the complete path of your file
$file = "D:\test.txt"

#Put the url without the last "/"
$url  = "http://mywebSite/webdav"  

#Provide User and Pwd for Webdav Access
$user = "user"
$pass = "pwd"

########################################
#Script
#######################################

#Adding the name of the file at the end of the URL
$url += "/" + $file.split('\')[(($file.split("\")).count - 1)]

#Connecting to WebDav
Write-Host "File upload started"

# Set binary file type
Set-Variable -name adFileTypeBinary -value 1 -option Constant

$objADOStream = New-Object -ComObject ADODB.Stream
$objADOStream.Open()
$objADOStream.Type = $adFileTypeBinary
$objADOStream.LoadFromFile("$file")
$arrbuffer = $objADOStream.Read()

$objXMLHTTP = New-Object -ComObject MSXML2.ServerXMLHTTP
$objXMLHTTP.Open("PUT", $url, $False, $user, $pass)
$objXMLHTTP.send($arrbuffer)

Write-Host "File upload finished"

Honey Moon and Weeding Pictures

août 10, 2009 By: Christopher Keyaert Category: General

Les photos sont disponibles dans la partie Galerie Photos du site :

http://www.leveilleur.net/index.php/galerie-photos/