Logport

Usuage (what you type):
                  
   /usr/local/sbin/logport [usr, pm, com] address port#
What Logport does:

The logport command allows you to disconnect a currently connected user. To do this, you need three pieces of information, all three of which are conveniently shown in both the tscheck and the f commands.

Let's use the following connection as an example:

jbowman:~$ tscheck jbowman

[usr1]
S1   jbowman          usrtc1-19.kiva.net   Netwrk   In   ESTABLISHED  7:54    0

[usr1] tells us two of the three thigs we need to know:

The last thing we need to know before we can disconnect this user is the port number of their connection. This is the first thing that is listed on the line. For our example, the port number is "S1".

So, in order to log this user off, you would do the following:

                        /usr/local/sbin/logport usr usr1 S1
This tells logport to disconnect the S1 port on the usr modem bank usr1.

There are serveral different types of modem banks in use at Kiva. There are USR modem banks, which always begin with 'usr' in their names, there are Portmaster modem banks, which all begin with 'pm', and Computone modem banks, which all being with 'com'.  That's why there are three different 'types' of modem banks listed for the logport command.

The Computone modem banks have a slightly different format to them when you use tscheck or f   with them. However, all of the information is still in the same place. Here's a sample:

[compton1.paoli.kiva.net]
0    0   000   01:31  jbowman         pppfsm    Incoming PPP,   ppp00,    206.97.77.195

All of the information you're looking for is in the same place, the rest of it just looks a little different. You'll also notice that there is no 'S' in front of the port number on the Computone modem banks. This is perfectly fine. Just simply use the port number without the 'S'.

The command to disconnect this user would be:

                /usr/local/sbin/logport com compton1.paoli.kiva.net 0

And that's all there is to it. One thing you will want to be careful with when using logport is that it does NOT work with the new Bloomington digital lines. The specific modem bank that this doesn't work with is usrpri2.


Go back to techsup inside page.
jbowman