Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

claering a vty line through snmp

I tried to run the following command from opt/CSCOpx/bin

snmpset -c RWcommunity devicename .1.3.6.1.4.1.9.2.9.10.0 integer 6 and it failed with the following errror:

ld.so.1: snmpset: fatal: libnetsnmp.so.5: open failed: No such file or directory Killed.

I also tried to run snmpset from Device center and it failed with the following error:

tsClrTtyLine.0

Failed to do snmpset on the device. Please check your community string and starting OID, and try again.

I verified the community and it is correct but still failing. Any suggestions?

3 REPLIES
Cisco Employee

Re: claering a vty line through snmp

You need to do:

env LD_LIBRARY_PATH=/opt/CSCOpx/lib:/opt/CSCOpx/MDC/lib snmpset -v 1 -c COMMUNITY 1.3.6.1.4.1.9.2.9.10.0 i 6

New Member

Re: claering a vty line through snmp

Do I need to be in opt/CSCOpx/bin or i can run env LD_LIBRARY_PATH from any prompt? what if I'm using different community strings? Do I need to set env for all the community strings?

Thanks.

Cisco Employee

Re: claering a vty line through snmp

LD_LIBRARY_PATH is an environment variable that tells the linker where to look to find missing libraries. You can run this command from any directory provided /opt/CSCOpx/bin is in your PATH. The LD_LIBRARY_PATH does not change with different community strings.

1072
Views
5
Helpful
3
Replies
CreatePlease to create content