static void Main(string[] args) { if (!_namedMutex.WaitOne()) return; Console.WriteLine("SIZING SERVERS LAB WINDOWS BEHOLDER AGENT"); Console.WriteLine(" Reporting system information every " + Config.GetInstance().reportEvery + " to " + Config.GetInstance().endpoint); Console.WriteLine(" Listening to TCP port " + Config.GetInstance().requestReportTcpPort + " for \"requestreport\\r\\n\""); Console.WriteLine(); RequestReportHandler.Start(Config.GetInstance().requestReportTcpPort); SystemInformationReporter.RegisterRetrieverAndStartReporting(SystemInformationRetriever.GetInstance()); Console.ReadLine(); RequestReportHandler.Stop(); }
static void Main(string[] args) { if (!_namedMutex.WaitOne()) { return; } Console.WriteLine("SIZING SERVERS LAB LINUX BEHOLDER AGENT"); Console.WriteLine(" Run this tool as root for dmidecode (fetches memory information). Make sure that ipmitool and gawk is installed."); Console.WriteLine(" Reporting every " + Config.GetInstance().reportEvery + " to " + Config.GetInstance().endpoint); Console.WriteLine(" Listening to TCP port " + Config.GetInstance().requestReportTcpPort + " for \"requestreport\\r\\n\""); Console.WriteLine(); RequestReportHandler.Start(Config.GetInstance().requestReportTcpPort); SystemInformationReporter.RegisterRetrieverAndStartReporting(SystemInformationRetriever.GetInstance()); Console.ReadLine(); RequestReportHandler.Stop(); }