/// /// <summary> /// Method used to start the test connection status Thread. /// Makes a series of calls to test the connection on the server. /// </summary> /// <param name="_ts"> TargetInfo of an individual target </param> private void testAllTargets(object targetSettings) { ThreadObject tObj = (ThreadObject)targetSettings; string strProName = tObj.StrProName; TargetSettings ts = tObj.Ts; string strTarget = ts.TargetServer; CheckConnection cc = new CheckConnection(ts); if (cc.pingConnections() == true) { _tabInterface.updateStatus(strProName, strTarget, "Testing FTP Settings"); if (cc.checkFTP() == true) { _tabInterface.updateStatus(strProName, strTarget, "Retrieving Site Name"); if (cc.checkSiteName() == true) { _tabInterface.updateStatus(strProName, strTarget, "Ready"); } else { _tabInterface.updateStatus(strProName, strTarget, "Could not retrieve site name"); } } else { _tabInterface.updateStatus(strProName, strTarget, "FTP settings error"); } } else { _tabInterface.updateStatus(strProName, strTarget, "Could not contact server"); //Target IP is not reachable, set status to 'Connection Failed' } }
/// /// <summary> /// Launches the installation process on the SNMP agent /// </summary> /// <param name="strTarget">Target IP</param> private void launchInstallation(string strTarget) { TargetSettings ts = null; foreach (TargetSettings tSett in lstTargets) { if (tSett.TargetServer == strTarget) { ts = tSett; } } if (SNMPFunctions.setExecute(ts, pSettings.SourcePath) == true) { tabInt.updateStatus(pSettings.ProjectName, ts.TargetServer, "Done - Install In Progress"); } else { tabInt.updateStatus(pSettings.ProjectName, ts.TargetServer, "Installaion could not be started!"); } }