[c-nsp] static route via snmp

Alexander Moskalenko alex at teleportsv.net
Fri Jun 17 04:59:35 EDT 2005


Yuri Selivanov wrote:
> 		Hi there!
> 
> 	Is there any way to install static route on a generic IOS-based router
> (let's say 72xx or 37xx) via SNMP? Also it would be great to replicate that
> statics to running-config if it's possible...
> 
> 	TIA!
> 

You can tell the router to load config file from tftp server.

/usr/local/bin/snmpset -t 60 -v 1 -c $community $router_IP 
.1.3.6.1.4.1.9.2.1.53.$TFTP_SERVER s "$TFTP_PATH/$config_file_name"

and then save config

/usr/local/bin/snmpset -t 60 -v 1 -c $community $router_IP 
.1.3.6.1.4.1.9.2.1.54.0 i 1


More information about the cisco-nsp mailing list