From 97eb5aad3858c9582fa043b44c387582591416f5 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 26 Mar 2015 18:11:05 +0000 Subject: [PATCH] Removed some older, redundant scripts. --- bin/reconfig-osx.sh | 60 ------------------------------------ bin/snmpstats.sh | 75 --------------------------------------------- 2 files changed, 135 deletions(-) delete mode 100755 bin/reconfig-osx.sh delete mode 100644 bin/snmpstats.sh diff --git a/bin/reconfig-osx.sh b/bin/reconfig-osx.sh deleted file mode 100755 index 1767d4f..0000000 --- a/bin/reconfig-osx.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -# Prompt for sudo password -sudo -v - -echo " Disabling Dashboard" -defaults write com.apple.dashboard mcx-disabled -boolean YES - -echo " Setting verbose boot mode" -sudo nvram boot-args="-v" - -echo " Disabling trackpad annoyances" -defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool false - -echo " Enable full keyboard control for UI components" -defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 - -echo " Enable password on wake" -defaults write com.apple.screensaver askForPassword -int 1 -defaults write com.apple.screensaver askForPasswordDelay -int 0 - -echo " Set screenshots to PNG" -defaults write com.apple.screencapture type -string "png" - -echo " Configure Finder options" -defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true -defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false -defaults write com.apple.finder ShowMountedServersOnDesktop -bool true -defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true -defaults write NSGlobalDomain AppleShowAllExtensions -bool true -defaults write com.apple.finder ShowStatusBar -bool true -defaults write com.apple.finder _FXShowPosixPathInTitle -bool true -defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" -defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false -defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true -defaults write com.apple.finder AppleShowAllFiles FALSE -defaults write com.apple.finder 'ShowPathbar' -bool true - -echo " Set Dock icon size" -defaults write com.apple.dock tilesize -int 36 -defaults write com.apple.dock no-glass -boolean YES - -echo " Disable Time Machine" -hash tmutil &> /dev/null && sudo tmutil disablelocal -defaults write com.apple.TimeMachine 'AutoBackup' -bool false - -echo " Disable volume change notification" -defaults write -g 'com.apple.sound.beep.feedback' -bool false - -echo " Auto-dimming display off" -sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Display Enabled" -bool false - -echo " Restarting apps" -killall Finder -killall Dock -killall SystemUIServer -killall rcd - -echo "Done" -sudo -k diff --git a/bin/snmpstats.sh b/bin/snmpstats.sh deleted file mode 100644 index 134f371..0000000 --- a/bin/snmpstats.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -DATE=$(date +%s) - -SATURN_CPU_USR=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.50.0 -Ov | cut -f2 -d' ') -SATURN_CPU_NIC=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.51.0 -Ov | cut -f2 -d' ') -SATURN_CPU_SYS=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.52.0 -Ov | cut -f2 -d' ') -SATURN_CPU_IDL=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.53.0 -Ov | cut -f2 -d' ') -SATURN_CPU_IOW=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.54.0 -Ov | cut -f2 -d' ') -SATURN_CPU_KRN=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.55.0 -Ov | cut -f2 -d' ') -SATURN_CPU_INT=$(snmpget saturn.local -v1 -cpublic .1.3.6.1.4.1.2021.11.56.0 -Ov | cut -f2 -d' ') - -SATURN_RAM=$(snmpget saturn.local -v1 -cpublic HOST-RESOURCES-MIB::hrStorageUsed.2 -Ov | cut -f2 -d' ') -SATURN_SWAP=$(snmpget saturn.local -v1 -cpublic HOST-RESOURCES-MIB::hrStorageUsed.3 -Ov | cut -f2 -d' ') - -NEPTUNE_CPU_USR=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.50.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_NIC=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.51.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_SYS=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.52.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_IDL=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.53.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_IOW=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.54.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_KRN=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.55.0 -Ov | cut -f2 -d' ') -NEPTUNE_CPU_INT=$(snmpget neptune.local -v1 -cpublic .1.3.6.1.4.1.2021.11.56.0 -Ov | cut -f2 -d' ') - -NEPTUNE_RAM=$(snmpget neptune.local -v1 -cpublic HOST-RESOURCES-MIB::hrStorageUsed.1 -Ov | cut -f2 -d' ') -NEPTUNE_SWAP=$(snmpget neptune.local -v1 -cpublic HOST-RESOURCES-MIB::hrStorageUsed.10 -Ov | cut -f2 -d' ') - -BYTES_IN=$(snmpget router -v1 -cpublic IF-MIB::ifInOctets.6 -Ov | cut -f2 -d' ') -BYTES_OUT=$(snmpget router -v1 -cpublic IF-MIB::ifOutOctets.6 -Ov | cut -f2 -d' ') - -XBMC_CPU_USR=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.50.0 -Ov | cut -f2 -d' ') -XBMC_CPU_NIC=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.51.0 -Ov | cut -f2 -d' ') -XBMC_CPU_SYS=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.52.0 -Ov | cut -f2 -d' ') -XBMC_CPU_IDL=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.53.0 -Ov | cut -f2 -d' ') -XBMC_CPU_IOW=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.54.0 -Ov | cut -f2 -d' ') -XBMC_CPU_KRN=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.55.0 -Ov | cut -f2 -d' ') -XBMC_CPU_INT=$(snmpget xbmc.local -v1 -cpublic .1.3.6.1.4.1.2021.11.56.0 -Ov | cut -f2 -d' ') - -XBMC_RAM=$(snmpget xbmc.local -v1 -cpublic HOST-RESOURCES-MIB::hrStorageUsed.1 -Ov | cut -f2 -d' ') - -( - echo "com.suborbit.home.saturn.CPU_user ${SATURN_CPU_USR} ${DATE}" - echo "com.suborbit.home.saturn.CPU_nice ${SATURN_CPU_NIC} ${DATE}" - echo "com.suborbit.home.saturn.CPU_system ${SATURN_CPU_SYS} ${DATE}" - echo "com.suborbit.home.saturn.CPU_idle ${SATURN_CPU_IDL} ${DATE}" - echo "com.suborbit.home.saturn.CPU_iowait ${SATURN_CPU_IOW} ${DATE}" - echo "com.suborbit.home.saturn.CPU_kernel ${SATURN_CPU_KRN} ${DATE}" - echo "com.suborbit.home.saturn.CPU_int ${SATURN_CPU_INT} ${DATE}" - - echo "com.suborbit.home.saturn.Used_Memory ${SATURN_RAM} ${DATE}" - echo "com.suborbit.home.saturn.Used_Swap ${SATURN_SWAP} ${DATE}" - - echo "com.suborbit.home.neptune.CPU_user ${NEPTUNE_CPU_USR} ${DATE}" - echo "com.suborbit.home.neptune.CPU_nice ${NEPTUNE_CPU_NIC} ${DATE}" - echo "com.suborbit.home.neptune.CPU_system ${NEPTUNE_CPU_SYS} ${DATE}" - echo "com.suborbit.home.neptune.CPU_idle ${NEPTUNE_CPU_IDL} ${DATE}" - echo "com.suborbit.home.neptune.CPU_iowait ${NEPTUNE_CPU_IOW} ${DATE}" - echo "com.suborbit.home.neptune.CPU_kernel ${NEPTUNE_CPU_KRN} ${DATE}" - echo "com.suborbit.home.neptune.CPU_int ${NEPTUNE_CPU_INT} ${DATE}" - - echo "com.suborbit.home.neptune.Used_Memory ${NEPTUNE_RAM} ${DATE}" - echo "com.suborbit.home.neptune.Used_Swap ${NEPTUNE_SWAP} ${DATE}" - - echo "com.suborbit.home.broadband.BYTES_down ${BYTES_IN} ${DATE}" - echo "com.suborbit.home.broadband.BYTES_up ${BYTES_OUT} ${DATE}" - - echo "com.suborbit.home.xbmc.CPU_user ${XBMC_CPU_USR} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_nice ${XBMC_CPU_NIC} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_system ${XBMC_CPU_SYS} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_idle ${XBMC_CPU_IDL} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_iowait ${XBMC_CPU_IOW} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_kernel ${XBMC_CPU_KRN} ${DATE}" - echo "com.suborbit.home.xbmc.CPU_int ${XBMC_CPU_INT} ${DATE}" - - echo "com.suborbit.home.xbmc.Used_Memory ${XBMC_RAM} ${DATE}" -) | nc neptune.local 2003