Small BASH script to push commands from a file to a Cisco device supporting the CISCO-CONFIG-COPY-MIB
bash$ SNMP_Command_Push
Please enter a Hostname or IP address and read/write community string: x.x.x.x private
Ping Successful
.1.3.6.1.4.1.9.9.96.1.1.1.1.2.1 : INTEGER: 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.1 : INTEGER: 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.1 : INTEGER: 4
.1.3.6.1.4.1.9.9.96.1.1.1.1.5.1 : IpAddress: x.x.x.x
.1.3.6.1.4.1.9.9.96.1.1.1.1.6.1 : OCTET STRING- (ascii): commands
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.1 : INTEGER: 4
Please enter an snmp read only community string: private
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Checking config update...
Update Successful!
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.1 : INTEGER: 6
SNMP row has been deleted