shell loop
declare -i x=0 while (( x < 11 )) ; do echo $x; x=x+1 ; done for ((i=0 ; i<5 ; i++)); do echo $i; done
declare -i x=0 while (( x < 11 )) ; do echo $x; x=x+1 ; done for ((i=0 ; i<5 ; i++)); do echo $i; done
find . -type f -name "*.meta" -exec grep -Ho "modtime = 1619743" {} \;
sudo du -a /opt/splunk/etc/ | sort -n -r | head -n 20
ps -ex | grep --color SPLUNK_DB
…or create a new repository on the command line echo "# auto_ldap" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/appletreecy/auto_ldap.git git push -u origin main …or push an existing repository from the command line git remote add origin https://github.com/appletreecy/auto_ldap.git git branch -M main git push -u origin main
Certificate is the public key.
find -name '*.conf' -exec grep 'server.pem' {} + grep ERROR splunkd.log | awk '{count[$5]++} END {for (ERROR in count) print ERROR, count[ERROR]}' | sort -k2 -nr dd if=/dev/zero of=/opt/splunk/var/lib/splunk/tmptestfile bs=8k count=$((4*1024*1024/8)) conv=fdatasync,fsync oflag=direct
openssl s_client -showcerts -connect 10.10.10.10:9997 openssl x509 -noout -in server.pem -text
distsearch.conf -- SH side maxBundleSize server.conf - IDX side max_content_length Knowledge bundles locations: SH -- var/run/*.bundle or *.delta IDX-- var/run/searchpeer *.bundle or *.delta
ls -lhtr |sort -nr find / -type f -size +100M du -skh * | sort -nr du -a /dir/ | sort -n -r | head -n 20. tar -tvf sh-i-0cfa1f8cb51e69c62.unimelb.splunkcloud.com-1583003015.bundle | sort -nr -k3 | head -n 20
You can put any information here you'd like.