User contributions for Chubbard
Jump to navigation
Jump to search
22 October 2021
- 08:5908:59, 22 October 2021 diff hist +47 m Bash-compare-versions No edit summary
- 08:5808:58, 22 October 2021 diff hist +821 N Bash-compare-versions Created page with "This is a simplistic way to compare version numbers. This is useful for when commands change over time, and you do not know which or what kind of host will have which version..."
20 October 2021
- 12:2112:21, 20 October 2021 diff hist +374 N Bash-apt-hold Created page with "Basic examples of both kernel pinning as well as how to hold a package at a specific release * Do not allow kernel updates <pre> for i in $(dpkg -l "*$(uname -r)*" | grep ima..." current
- 12:1512:15, 20 October 2021 diff hist +746 N Bash-compile-fusionIO Created page with "This is a high level bash history of the last time I needed to create the FusioIO drivers to install on KVM01 There is a git repo that has updated these drivers that may be u..."
- 11:5711:57, 20 October 2021 diff hist +279 m Bash-common-checks No edit summary
- 11:5411:54, 20 October 2021 diff hist +1 m Bash-common-checks →=Generate HEX for string
- 11:5411:54, 20 October 2021 diff hist +156 m Bash-common-checks No edit summary
- 11:4711:47, 20 October 2021 diff hist +96 m Bash-common-checks →Create CRC32 from string
- 11:3011:30, 20 October 2021 diff hist +111 m Bash-common-checks No edit summary
19 October 2021
- 13:5313:53, 19 October 2021 diff hist +183 m Bash-common-checks No edit summary
- 13:4213:42, 19 October 2021 diff hist +630 m Bash-common-checks No edit summary
- 13:3713:37, 19 October 2021 diff hist 0 m Bash-common-checks →Make a banner
- 13:3613:36, 19 October 2021 diff hist +1,474 m Bash-common-checks →Common checks and validations that are a PITA to remember
- 13:3313:33, 19 October 2021 diff hist +143 m Bash-common-checks No edit summary
- 13:2713:27, 19 October 2021 diff hist +60 m Bash-common-checks →TCP port check
- 13:2513:25, 19 October 2021 diff hist +228 m Bash-common-checks No edit summary
- 13:2113:21, 19 October 2021 diff hist +20 m Bash-common-checks No edit summary
- 13:2013:20, 19 October 2021 diff hist +79 m Bash-common-checks No edit summary
- 09:2809:28, 19 October 2021 diff hist −4 m Bash-common-checks No edit summary
- 09:2709:27, 19 October 2021 diff hist +223 N Bash-common-checks Created page with "## Common checks and validations that are a PITA to remember ## * Check if a var is an integer <pre> VAR=123 if [[ ${VAR} =~ ^-?[0-9]+$ ]]; then echo "Is integer" else ech..."
15 October 2021
- 16:4916:49, 15 October 2021 diff hist +646 Main Page No edit summary
- 16:4216:42, 15 October 2021 diff hist +368 N Bash-password-genorator Created page with "==Bash version== <pre> #!/bin/bash if -z $1 ; then CHAR=10 else CHAR=$1 fi strings /dev/urandom | grep -o 'alnum:' | head -n ${CHAR} | tr -d '\n'; echo '!' </pre..."
- 16:3816:38, 15 October 2021 diff hist +360 N Iwillfearnoevil links Created page with "Random links so I do not have to hunt for them... Most will not be world accessible (unless you ask) # https://grafana.iwillfearnoevil.com/d/gSgl4u8Zk/power-utilization?orgI..."
- 16:3616:36, 15 October 2021 diff hist +1 Random links No edit summary
- 16:3616:36, 15 October 2021 diff hist +290 N Random links Created page with "# https://askubuntu.com/questions/466366/is-there-a-command-to-view-hard-drive-specs # https://talesfromthedatacenter.com/2019/08/how-to-create-a-linux-partition-larger-than-2..."
- 16:3216:32, 15 October 2021 diff hist +68 Nms-existing-tests No edit summary
- 16:3116:31, 15 October 2021 diff hist +10 Nms-existing-tests No edit summary
- 16:3116:31, 15 October 2021 diff hist +321 N Nms-existing-tests Created page with "Local LAN links to different monitoring tests http://192.168.15.249/event?sort=eventSeverity&direction=DESC http://backup01:85/windowDetail.php?id=5d1036d709297 http://backup..."
- 16:2616:26, 15 October 2021 diff hist +248 N Snmp-links Created page with "==Links to external sources of information== # https://oidref.com/ # http://oid-info.com/get/ # http://www.mibdepot.com # http://www.snmplink.org/cgi-bin/nd/m/Standards/RFC%20..." current
- 16:2216:22, 15 October 2021 diff hist +245 N Bash-set-options Created page with "# set -o nounset # Treat unset variables as an error # set -o pipefail # Any non-zero exits in pipes fail # set -e..." current
- 16:2016:20, 15 October 2021 diff hist +394 N Bash-check-redis-replication Created page with "Example of using expect within a bash script This will give you both the hosts as well as an exit code to check for failures. <pre> SLAVED_HOSTS=`exec expect <<EOD set timeou..."
- 16:1816:18, 15 October 2021 diff hist +206 N Bash-check-if-root-user Created page with "<pre> got_root() { if [ "$(id -u)" != "0" ]; then echo "Failure: This script must be run as root or sudo used"; exit 2 else echo "Confirmed: running as root, or sudo used..."
- 16:1716:17, 15 October 2021 diff hist +261 N Bash-check-if-host-pingable Created page with "<pre> check_remote() { local VALIDATE=`ping -c 3 ${IP} >/dev/null 2>&1; echo $?` if [ ${VALIDATE} -eq 0 ];then echo "Failure: IP address ${IP} is still pingable!"; exit 2 el..."
- 16:1616:16, 15 October 2021 diff hist +474 N Bash-check-if-ip-address Created page with "this is a VERY simple check to see if you have an IP address as your variable <pre> function valid_ip() { local ip=$1 local stat=1 if [[ $ip =~ ^[0-9]{1,3}\.[0-..."
- 16:1316:13, 15 October 2021 diff hist +46 Bash-email-with-attachments →Send simple inline email current
- 16:1116:11, 15 October 2021 diff hist +2,821 N Bash-email-with-attachments Created page with "====Mail with attachments==== # Install uuencode and sendmail binaries <pre> function fappend { echo "$2">>$1; } send_email2 () { local EMAIL="${2}" FILE2="/tmp/${RANDOM}..."
- 16:0416:04, 15 October 2021 diff hist +18 Bash-script-framework No edit summary current
- 16:0216:02, 15 October 2021 diff hist +25 Bash-script-framework No edit summary
- 16:0216:02, 15 October 2021 diff hist +77 Bash-script-framework No edit summary
- 15:5815:58, 15 October 2021 diff hist +6 Bash-script-framework No edit summary
- 15:5815:58, 15 October 2021 diff hist +2,142 Bash-script-framework No edit summary
- 15:4715:47, 15 October 2021 diff hist +1,488 N Bash-script-framework Created page with "<pre> #!/bin/bash #=============================================================================== # # FILE: FILENAME.sh # # USAGE: ./FILENAME.sh < options..."
- 15:3815:38, 15 October 2021 diff hist +97 N Snmp-examples Created page with "== SNMP Examples == Anything that is a useful example to reuse somewhere else Category:SNMP" current
- 15:3615:36, 15 October 2021 diff hist +817 Snmp-iwillfearnoevil No edit summary
- 15:2915:29, 15 October 2021 diff hist +109 N Category:SNMP Created page with "Anything pertaining to SNMP should have a category link to here. Your one-stop shop for all your snmp needs." current
- 15:2915:29, 15 October 2021 diff hist +838 N Snmp-iwillfearnoevil Created page with "== Specific to IANA SNMP oid 30911 == Everything dealing specifically with the IANA registered SNMP oid for iwillfearnoevil.com needs to go here. Default path: 1.3.6.1.4.1.30..."
- 15:0615:06, 15 October 2021 diff hist +581 Nms-trapReceiver No edit summary
- 15:0015:00, 15 October 2021 diff hist +516 N Nms-trapReceiver Created page with "This script: trapReceiver.php is not part of the API spec, and is however part of the overall system. This is what snmptrapd calls for all inbound SNMP events. Specifically..."
- 14:5614:56, 15 October 2021 diff hist +18 Nms-api-start-services No edit summary
- 14:5614:56, 15 October 2021 diff hist +263 N Nms-api-start-services Created page with "Currently there is no systemd, so all daemons are actually running via the PHP server command directly. <pre> cd /opt/nmsApi/ php -S 0.0.0.0:8002 -t public & </pre> Nothing..."