View Single Post
  #12  
Old 12-30-2014, 12:45 PM
jbd1300 jbd1300 is offline
Registered User
 
Join Date: Dec 2014
Posts: 18
bgagnon,

That's fine, I will wait for Todd to get back, so I can take a look at his example script. I am assuming he might be out for the holidays.

Casey,

I went that route initially, but here is the issue. Show line will show you what line is in use by an asterisk, however, then you would need to translate whatever line is in use translate into a TCP Port number. For example:

Tty Line Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
0 0 CTY - - - - - 0 0 0/0 -
1 1 AUX 9600/9600 - - - - - 0 0 0/0 -
1/0 66 TTY 115200/115200- inout - - - 59 0 0/0 -
1/1 67 TTY 115200/115200- inout - - - 26 0 0/0 -
1/2 68 TTY 115200/115200- inout - - - 70 0 0/0 -
1/3 69 TTY 115200/115200- inout - - - 0 0 0/0 -
* 1/4 70 TTY 115200/115200- inout - - - 71 0 0/0 -

The asterisk is showing line 70 is in use, but that actually translates to TCP Port 2070, and then if multiple lines are in use, you would have to track that. I didn't want to keep up with all the lines, asterisks, and TCP Ports, so that's why I am using the "show users" command. That will tell you which hosts are in use. Todd was working on an example script, which I believe and hope he will post soon since I am stuck.

Thank you

jbd1300