Quick post on the Distribution Point availability Error.Primary Site cannot check the availability of the Remote Distribution Point servers and Sitestat.log generating error messages continuously for DP servers
“omGetServerRoleAvailabilityState could not read from the registry on CMDP01.eskonr.com; error = 6:”
“Failed to get the Availability State on server CMDP01.eskonr.com for role SMS Distribution Point.”
How to Fix this ?
Create a DWord Registry key with name ‘Availability State’ and value=0 on the problem DP servers.
Path to create DW Registry name and value:
HKLM\SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Distribution Point
After sometime, site server polls the Remote DP servers,it will check the availability and update the information in the Database.
you see something like this.
if you are having this issue on multiple servers,use the below VB script.
ON ERROR RESUME NEXT
Const HKEY_LOCAL_MACHINE = &H80000002
Set objfso = CreateObject ("Scripting.FileSystemObject")
Set servers = objfso.OpenTextFile ("servers.txt", 1)
Set outputList = objfso.OpenTextFile ("outputList.txt", 2, True)
do While Not servers.AtEndOfStream
Set oReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Distribution Point"
oreg.setDWORDValue HKEY_LOCAL_MACHINE,strkeypath, "Availability State" , "0"
if err=0 then
outputList.WriteLine "Registry added onto" & vbTab & strcomputer
outputList.WriteLine "Registry not added onto" & vbTab & strcomputer
Please find the sitestat.log error for DB server
omGetServerRoleAvailabilityState could not read from the registry on XXXXXXDB1.domain.net; error = 5:
---->: Failed to get the Availability State on server XXXXXXDB1.domain.net for role SMS SQL Server.
the fix what is posted on the blog did not work on the DB server ?
thanks a lot it worked for our Dp's, but still the same issue for Data base server can you please help us
Site System Status Summarizer detected that the availability of the "Distribution point" role on server "" has changed to Online. This is ok . But state site status for this server component server is still critical
right click on the site status and see what the error says ? you can also check sitestat.log for any good findings.If you see the error about unable to find the valid drive or something related to drive info,you can ignore it.
Thank you for post . I look to the site status I have still status critical . In the log i found error and create reigistry key . But status is still critical ...
what does the error says ? can you post it pls ?
hi, do you know why it's not working in the beginning?
manually creating this key won't prevent the DP's to report an Availability state other that online if the need arise?
not sure what is the reason for reporting the DP state unavailable but creating the Reg value fixed the issue.
and there is no reason that it happens for everyone.if it arises,fix it by using the reg key.
It worked perfectly. Thank you.