Does anyone know how to clear a tty line via SNMP? I tried using the tsClrTtyLine Oid but I always get -1 as a response, which indicates no line has been cleared.
To be clear, I'm sending a SET request for 1.3.6.1.4.1.9.2.9.10.0 and the value is the tty line number (so 1 for line 1, etc).
Any ideas?
Didn't find your answer? Ask the community — no account required.
B
bod43
An snmpwalk of a router here does not return that branch at all.
I guess that they finally did away with the old (useful) mibs:-(
I use an ancient but free UCD set of snmp command line utilities for windows. UCD-snmp version: 4.2.3
There may be an equivalent in the new mibs? I will have a bit of a look, however I find it all a bit obscure.
B
bthetford
This is on an AS2511-RJ. Quite old but still insanely useful for what it does. Walking this device does show it there, and it does respond to the set (ie I do not get a null branch response). In fact, a 2821 I tried it on also responded with -1. According to Cisco's MIB locator the MIB this Oid is in is supported by both of these routers, with the IOS versions they have (12.3.26 for the 2511 and 12.4.24T1 for the 2821). The Oids above it are marked as not accessible in the MIB, so a walk probably wouldn't get there. Try a get aimed at that Oid. The number it returns to you indicates the last line that was cleared by the command or -1 if no line was cleared. I just can't make the thing work like the Cisco documentation says it should (ie issue a set command to that oid with the number of the line you want to clear).
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.