How to transfer a file to a router via SNMP, CISCO-FLASH-MIB
The examples below show how to copy a file from a tftp server to the flash via snmp, similar to
Router#copy tftp flash
Via SNMP the same operation can be performed from different sources:
"snmp set/get" commands run from the Router. When running snmp manager function,
"snmpset" commands applied from a Network Management Station running a snmp utility, or
"snmp_setany" commands applied from TCL shell in the router:
"snmp set/get" commands run from the Router
Those commands are hidden, with the advantage to configure&monitor via snmp from the router itself, without having to involve any NetworkManagement Station.
Here the configuration steps you need to execute:
Enable "snmp-server manager" in the Router
Run following commands from the enable mode in the router:
Router#snmp set v2c 10.1.0.2 private oid 188.8.131.52.184.108.40.206.10.1.2.1.1.11.666 integer 6
Router#snmp set v2c 10.1.0.2 private oid 220.127.116.11.18.104.22.168.10.1.2.1.1.11.666 integer 5
Router#snmp set v2c 10.1.0.2 private oid 22.214.171.124.126.96.36.199.10.1.2.1.1.2.666 integer 2
Router#snmp set v2c 10.1.0.2 private oid 188.8.131.52.184.108.40.206.10.1.2.1.1.3.666 integer 1
Router#snmp set v2c 10.1.0.2 private oid 220.127.116.11.18.104.22.168.10.1.2.1.1.4.666 ip-address 10.1.0.99
Router#snmp set v2c 10.1.0.2 private oid 22.214.171.124.126.96.36.199.10.1.2.1.1.5.666 string test
Router#snmp set v2c 10.1.0.2 private oid 188.8.131.52.184.108.40.206.10.1.2.1.1.6.666 string test
Router#snmp set v2c 10.1.0.2 private oid 220.127.116.11.18.104.22.168.10.1.2.1.1.11.666 integer 1
"private" is the rw community string10.1.0.2 is the ip address of the router10.1.0.99 is the tftp servertest is the file we want to move from tftp server to flash22.214.171.124.126.96.36.199.10.1.2.1.1.5 and 188.8.131.52.184.108.40.206.10.1.2.1.1.6 correspond ciscoFlashCopySourceName and ciscoFlashCopyDestinationName respectivaly
Working on a stack of new Catalyst 9200L-24P-4G switches. This is the first time with this model and am beyond frustrated at this point as none of the documentation seems to work. Currently, all 4: Switch Ports Model SW Version ...
Hi, I can't find SNMP OID for cisco 3850 stack status. To be honest I can't find any IOD's. Because SNMP WALK gives me range .1.0.8802.1.1.2.....But snmp navigator does not know this OID's. How can I determine what each oid means?
Dear , I am facing an issue with connectivity for ipsec vpn with fortigatesee below sh run crypto isakmp policy 10hash md5authentication pre-sharegroup 2crypto isakmp key xxxx address xxxxx!!crypto ipsec transform-set MYSET esp-des esp-md5-hmacm...
Hello CISCO Community. I have an idea but I am not sure if I am just limited in the IOS to make this work or if there are any other technologies / configurations to make it happen. Basically, I am connecting two switches together with 2 links a...