1 Reply Latest reply on Jul 26, 2017 9:03 AM by yaquaholic

    Clock Drift windows Servers

    praveen v

      Hi All,


      Kindly help on the below error while configuring clock drift template.



      Output: ==============================================

      Message: Unable to Get-WmiObject Win32_UTCTime on remote client. Missing an argument for parameter 'Credential'. Specify a parameter of type 'System.Management.Automation.PSCredential' and try again.



      Errors: ==============================================

      Exception calling "Connect" with "2" argument(s): "No connection could be made because the target machine actively refused it"

      At line:5 char:2

      + $TcpClient.Connect($time_server, 13)

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      + CategoryInfo : NotSpecified: (:) [], MethodInvocationException

      + FullyQualifiedErrorId : SocketException



      Exception calling "GetStream" with "0" argument(s): "The operation is not allowed on non-connected sockets."

      At line:6 char:2

      + $TcpStream = $TcpClient.GetStream()

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      + CategoryInfo : NotSpecified: (:) [], MethodInvocationException

      + FullyQualifiedErrorId : InvalidOperationException



      You cannot call a method on a null-valued expression.

      At line:7 char:2

      + $length = $TcpStream.Read($buffer, 0, $buffer.Length);

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      + CategoryInfo : InvalidOperation: (:) [], RuntimeException

      + FullyQualifiedErrorId : InvokeMethodOnNull



      Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."

      At line:10 char:2

      + [DateTime]::ParseExact($raw.SubString(7,17), 'yy-MM-dd HH:mm:ss', $null)

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      + CategoryInfo : NotSpecified: (:) [], MethodInvocationException

      + FullyQualifiedErrorId : FormatException

        • Re: Clock Drift windows Servers

          Hi Praveen,


          The first error indicates that you aren't passing the correct credentials, if you look at the powershell monitor and the 'Credential for Monitoring:', you'll see that it defaults to <None>.

          If you set it to <Inherit credentail from node> or any other valid credential, does it work?


          If it;s still failing the actual commnad that it is running is: Get-WmiObject Win32_UTCTime -ComputerName ${IP} -Credential ${CREDENTIAL};

          If you open a Powershell prompt on your Orion server, you can test it further.


          $cred = Get-Credential                #This will open a logon prompt enter the user name and password

          $ip = ''                   #Replace this with the IP of the remoter computer


          Get-WmiObject Win32_UTCTime -ComputerName $ip -Credential $cred


          Did that return any results?