26 namespace Ntp.Analyzer.Monitor.Cli
30 public static void Main(
string[] args)
32 if (args.Length >= 1 && args[0] ==
"help")
46 if (!IPAddress.TryParse(args[0], out address))
48 Console.WriteLine(
"IP address is not valid.");
55 if (!
int.TryParse(args[1], out port))
57 Console.WriteLine(
"Port number is not valid.");
62 string command = args[2];
65 string result = req.Send(command);
67 Console.WriteLine(result);
72 Console.WriteLine(
"NTP Analyzer command query tool.");
73 Console.WriteLine(
"Usage: ntpac host port command");
static void Main(string[] args)