[nsp] need to change a config line in snmp

Oliver Boehmer (oboehmer) oboehmer at cisco.com
Mon Dec 22 05:25:32 EST 2003


> I have to recover a silly mistake on an unmanned pop...
> Specifically, I need to change
> 
> line vty 0 4
>  exec-timeout 0 0
> 
> to become a more sane "30 0"
> 
> or alternatively to kick out the hanged sessions
> 
> How can I do this in snmp ?

To clear a connection, you could use tsClrTtyLine within
OLD-CISCO-TS-MIB (1.3.6.1.4.1.9.2.9.10). Walk tsLineType (oid
.1.3.6.1.4.1.9.2.9.2.1.2) to find out which line are your vty's, but
usually 0/1 is aux and 2-6 is vty.

There is also a way to clear a tcp connection via snmp, but don't have
the details handy..

If you want to change the config, you need to do it via tftp, check out
http://www.cisco.com/warp/public/477/SNMP/11_7910.shtml

	oli



More information about the cisco-nsp mailing list