Thanks for your hint.
To answer your questions, we created some new custom classes, but
not recently.
The smlets
has worked fine I think for a while on this environnement, or at least, they work on the production environnement which is all the same versions as this one. I can't say exactly when it start malfunctionning...
To be sure that it was not a version problem, I juste re-install the smlets this morning before posting this problem (with need to build as our SCSM has been patched). But I have the same error after that.
The $error[0].Exception show an error number (11004) that gave more information about the problem.
PS C:\ > $error[0].Exception|fl -force
ErrorCode : 11004
Message : The requested name is valid, but no data of the requested type was found
SocketErrorCode : NoData
NativeErrorCode : 11004
Data : {}
InnerException :
TargetSite : System.Net.IPHostEntry GetAddrInfo(System.String)
StackTrace : at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Microsoft.EnterpriseManagement.Common.Internal.ServerDefinition..ctor(EnterpriseManagementConnectionSettings connectionSettings, Type groupType, Type coreType)
at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.RetrieveEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCorecallbackDispatcherService)
at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Connect[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService)
at Microsoft.EnterpriseManagement.EnterpriseManagementGroup.InternalInitialize(EnterpriseManagementConnectionSettings connectionSettings, EnterpriseManagementGroupInternal internalsProxy)
at SMLets.ConnectionHelper.GetMG(String computerName, PSCredential credential)
at SMLets.SMCmdletBase.BeginProcessing()
HelpLink :
Source : System
I found this interesting link about Windows Sockets Error Codes :
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668%28v=vs.85%29.aspx
Including my error :
WSANO_DATA (11004)
Valid name, no data record of requested type.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. The usual example for this is a host name-to-address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server). An MX record is returned but no A record—indicating the host itself exists, but is not directly reachable.
--> Nevertheless, I still don't understand the problem I have as DNS server seems to be configured the same as previously, SCSM server is well registered (A record), and is indeed reachable.
Do you know which port does smlets try to use to connect SCSM service ?
I tried too to launch the Get-SCSMClass with -ComputerName argument :
PS C:\> Get-SCSMClass -ComputerName <hostname>
PS C:\> Get-SCSMClass -ComputerName <hostname.fqdn>
PS C:\> Get-SCSMClass -ComputerName localhost
They all have the same result (error 11004).
Any Idéa ?
Thanks