#!/bin/bash # rui@deniable.org # miguel@miguelsarmiento.com (Added ability to write startup configuration. Using SNMP version 2c by default). # http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15217-copy-configs-snmp.html # http://tools.cisco.com/Support/SNMP/do/BrowseOID.do # ftp://ftp.cisco.com/pub/mibs/oid/CISCO-CONFIG-COPY-MIB.oid # hint: username privilege 15 password 0 check_tools() { SNMPSET=`which snmpset` SNMPGET=`which snmpget` if [ "$SNMPSET" == "" ] || [ "$SNMPGET" == "" ]; then echo "You need snmpwalk, snmpget, and snmpset from Net-SNMP (http://net-snmp.sourceforge.net/) installed." exit fi } print_usage() { echo "$0