Hi,
I have created scenario SCOM(MS) and SCOM Gateway Server for monitoring non-trust domains. All agents in non-trust domains are reporting to Gateway server in the same domain. Gateway server reporting to scom(MS) in different domain.
link: http://scompanion.wordpress.com/2012/10/18/gateway-server-install-for-another-untrusted-domain/
scom 2012 r2 (MS) - domain1
scom 2012 r2 gateway server - domain2 - reporting to above MS in domain 1
scom 2012 r2 agent - domain2 - reporting to above gateway server. (trying below code from here)
This above things are working fine and show as healthy in MS.
http://msdn.microsoft.com/en-us/library/hh328992.aspx
Here I'm trying to run the below code from scom agent system(domain2) to access sdk service from MS in domain1.
try
{
string serverIP = "XXXXXXx";
string userName = "xxxxxxxx";
string password = "xxxxxx";
string ServerName = "xxxxxxxx";
string Domain = "xxxxxxx";
ManagementGroupConnectionSettings mgSettings = new ManagementGroupConnectionSettings(serverIP);
mgSettings.UserName = userName;
mgSettings.ServerName = ServerName;
mgSettings.Domain = Domain;
var secure = new SecureString();
foreach (var c in password.ToCharArray()) secure.AppendChar(c);
mgSettings.Password = secure;
Console.WriteLine("Going to connect...");
ManagementGroup managementGroup = ManagementGroup.Connect(mgSettings);
if (managementGroup != null && managementGroup.IsConnected)
{
Console.WriteLine("connected..");
}
}
catch (Exception e)
{
Console.WriteLine("failed" + e.ToString());
}
but showing failed timeoutexception. So i can not connect to scom sdk service.
But if run the code from same MS server domain (domain1), it working fine and connected to sdk service.
so here It possible to access scom sdk service from different domains or not?
if possible can help me to provide steps to achieve this.
Help me to solve this issue..
Thanks,
satheesh