Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

HP Procurve 3400 kill telnet session

Laura Louthan
Occasional Visitor

HP Procurve 3400 kill telnet session

I can only access the 3400 through the web ui as it states maximum telnet sessions in use though none are. How do I kill the "active" telnet sessions if I can't telnet in? Don't see anything about it in the Web ui.

Thanks.
4 REPLIES
Matt Hobbs
Honored Contributor

Re: HP Procurve 3400 kill telnet session

The easiest way is to reboot the switch and then set the 'console inactivity-timer' to prevent it happening again.

If you can't reboot it, you can kill the sessions via SNMP by walking tcpconnstate and setting the sessions to 12.

Laura Louthan
Occasional Visitor

Re: HP Procurve 3400 kill telnet session

Can you give me some more info on killing the sessions via SNMP? Unfortunately a reboot is not an option on this particular switch.
Evert Goor
Trusted Contributor

Re: HP Procurve 3400 kill telnet session

make serial connection to the switch and login and type in "kill .
this will kill al old telnet sessions."

Goodluck
scotteberg
Advisor

Re: HP Procurve 3400 kill telnet session

I just ran into this issue and I was disappointed that there was no good response. My issue was the switch was in an inaccessible closet unless with escort.

If you have a good snmp utility you should be able to perform this from windows, but I find it easier to use a linux box with net-snmp package installed.

First walk the tcpConnState the example below is for a community name "private", version 1 snmp " -v 1 ", ip address "1.1.1.1", and the OID of "tcpConnState" :

snmpwalk -c private -v 1 1.1.1.1 tcpConnState

this will return all the connections listening or active, the troublesome ones should be at the end in the form
tcpConnState.switchip.switchport.telnetclientip.telnetclientport

run the following command to kill each connection

snmpset -c private -v 1 1.1.1.1 tcpConnState.1.1.1.1.23.clientip.clientport i deleteTCB