Configmgr 2012 Failed to get the Availability State on server for role SMS Distribution Point Error 6 sitestat.log

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.”

image

How to Fix this ?

Create a DWord Registry key with name ‘Availability State’ and value=0 on the problem DP servers.

 

image

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.

image

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
strcomputer=servers.readline
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
else
outputList.WriteLine "Registry not added onto" & vbTab & strcomputer
end if
loop
msgbox "Done"

10 Responses to "Configmgr 2012 Failed to get the Availability State on server for role SMS Distribution Point Error 6 sitestat.log"

  1. 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.

    Reply
  2. 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

    Reply
    1. 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.

      Reply
  3. 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 ...

    Reply
  4. 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?
    thanks!

    Reply
    1. 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.

      Reply

Leave a Reply to Prashanth Kumar Cancel reply