Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure a Remote Switch by using SNMP( plz helpppp)

Status
Not open for further replies.

watchers

IS-IT--Management
Oct 13, 2009
6
US
Guys plz help

We forgot to give the login command on vty lines of a remote switch.So obviously now I can't access it from a remote location.

Can anyone tell the procedure for configuring the remote switch by using SNMP RW strings.

Thanks in advance
 
In the past, I've used SNMP to download the config off the switch, edit the config, then load the edited config back up to it.
I used the Solarwinds SNMP tool.
 
thanks for the reply

can you tell the procedure to do that?
 
fynx...thanks for the help.

will that procedure even I lost the Telnet password.How can I ask the switch/router to boot from the new config in tftp server if I loose the Telnet password??
 
Yep. You can reset the whole config using this method including setting new passwords and login/passwd's on the vty's if you wish.

So get the config:
snmpset -c <write community string> <switchIP/name> .1.3.6.1.4.1.9.2.1.55.ipaddress.of.tftpserver octetstring <filename on server>"

then edit the config using your favourite editor. make sure you get the command syntax EXACTLY correct!!

then write the config back to the switch
snmpset -c <write community string> <switchIP/name> .1.3.6.1.4.1.9.2.1.50.ip.address.of.tftpserver octetstring <filename on server>

NOTE: view to see what this MIB does.

Your new config should then be running on the switch.

For your own piece of mind I suggest trying this method in test first. You don't wanna brick a remote switch.

Good luck,

If everything is coming your way then you're in the wrong lane.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top