Collector Debug - TCP/Telnet command
I would like to see a !tcp <host> <port> OR a !telnet <host> <port> like command in the Collector Debug utility. It should return back the connection status and response time.
Joe_Tran
Posted 8 years ago·Last reply 8 years ago
8 comments
Antony Hawkins
·8 years agoNo worries - it's this forum being "clever" with internal links!
Mosh
·8 years ago@Antony Hawkins Thanks. LOL - I thought that was a screen cap, didn't realise it was a thread
Antony Hawkins
·8 years ago@Mosh it's not a core ConfigSource, just something I threw together on the side. Follow the link above to the thread and you'll find the locator ID which you can use to get the ConfigSource from the Exchange.
Mosh
·8 years agoHi @Antony Hawkins
I don't see the trace route ConfigSource in my LM Config sources, nor in the 108 repo?
Antony Hawkins
·8 years ago@Joe Williams there is a traceroute ConfigSource, if you have LM Config:
/topic/1508-traceroute-configsources/It's not a debug command (obviously!) but you can lift the groovy out of it and use it via the debug window and the !groovy command as a workaround in the meantime.
Joe_Tran
OP8 years agoSince we're posting !groovy workarounds---here is one I'm using for telnet:
Mosh
·8 years agoA workaround using the !groovy command:
def sout = new StringBuilder();
def serr = new StringBuilder();
// Shell command for your OS
def proc = 'cmd.exe /c tracert www.google.com'.execute();
proc.consumeProcessOutput(sout, serr);
// Adjust timeout as needed
proc.waitForOrKill(20 * 1000);
println "out> $sout err> $serr"
Joe Williams
·8 years agoTo tag on !traceroute or !tracert would be a nice addition as well.