7 snmp="snmpget -v 2c -c $COMMUNITY -Cf -Ov -OQ $sw"
11 echo -n "$sw $PORT "`$snmp IF-MIB::ifName.$PORT IF-MIB::ifAlias.$PORT IF-MIB::ifType.$PORT IF-MIB::ifOperStatus.$PORT IF-MIB::ifHighSpeed.$PORT`
17 read -p "# Press ENTER to toggle port" wait_for_key
19 if [ "$status" = 'up' ] ; then
22 snmpset -v1 -c $COMMUNITY $sw IF-MIB::ifAdminStatus.$PORT i 2
25 snmpset -v1 -c $COMMUNITY $sw IF-MIB::ifAdminStatus.$PORT i 1