Skip to content

Instantly share code, notes, and snippets.

View Mario-NTT's full-sized avatar

m_ntt Mario-NTT

  • Ocenia
View GitHub Profile
@Mario-NTT
Mario-NTT / omreport.md
Last active May 7, 2019 04:18 — forked from DaffyDuke/omreport.md
Dell OMREPORT Admin RAID

Omconfig Replace Member Virtual Disk:

omconfig storage vdisk action=replacememberdisk controller=1 vdisk=4 source=0:3 destination=0:5

Omconfig Prepare To Remove Physical Disk:

omconfig storage pdisk action=remove controller=1 pdisk=0:2:3

Tips

Passage RAID 0 en RAID 1 OMSA CLI
##################################
@Mario-NTT
Mario-NTT / netwatch.sh
Created May 12, 2020 23:25 — forked from samwise4/netwatch.sh
Bash script to monitor internet outages
# return 1 if alive, 0 if dead
ping_success() {
! ping -c1 -W1 8.8.8.8 >/dev/null 2>&1
}
# Spinner taken from https://stackoverflow.com/a/12498395
spinnerindex=0
spinner='-\|/'
sleepy_spinner() {
for (( i=0; i<$(($1 * 2)); i++ ))