Exemple #1
0
 /// <summary>
 /// Gets the machines from the specified domain
 /// </summary>
 /// <param name="domainName">Domain from which machines needs to be discovered</param>
 public void GetMachinesByHostName(string machineName)
 {
     _logger.Info("Getting machines by hostname");
     CredentialDB _credDb = new CredentialDB();
     _netHelper.Credentials = _credDb.GetAllCredentials();
     _credDb.CloseConnection();
     _credDb = null;
     _netHelper.GetMachinesByName(machineName);
 }
Exemple #2
0
 /// <summary>
 /// Gets the machines from the specified domain
 /// </summary>
 /// <param name="domainName">Domain from which machines needs to be discovered</param>
 public void GetMachines(string domainName)
 {
     _logger.Info("Getting the list of machines from domain "+ domainName);
     CredentialDB _credDb = new CredentialDB();
     _netHelper.Credentials = _credDb.GetAllCredentials();
     _credDb.CloseConnection();
     _credDb = null;
     _netHelper.DiscoverMachines(SearchType.Machines, domainName);
 }
Exemple #3
0
        public void GetMachinesByFromFile(string fileName)
        {
            _logger.Info("Getting the list of machines from filename "+fileName);
            CredentialDB _credDb = new CredentialDB();
            _netHelper.Credentials = _credDb.GetAllCredentials();
            _credDb.CloseConnection();
            _credDb = null;

            _netHelper.DiscoverMachinesByFileName(fileName);
        }
Exemple #4
0
        public List<EntCredential> GetCredentials()
        {
            List<EntCredential> lstCred = null;
            CredentialDB _credDb = new CredentialDB();
            lstCred = _credDb.GetAllCredentials();
            _credDb.CloseConnection();
            _credDb = null;

            return lstCred;
        }