Skip to content

Instantly share code, notes, and snippets.

View DaffyDuke's full-sized avatar

Olivier Duquesne DaffyDuke

View GitHub Profile
@DaffyDuke
DaffyDuke / check_systemd.sh
Created March 7, 2017 22:33
Nagios check for systemd failed units
#!/bin/bash
# Source http://lzone.de/blog/Nagios+Check+for+Systemd+Failed+Units
if [ -f /bin/systemctl ]; then
failed=$(/bin/systemctl --failed --no-legend)
failed=${failed/ */} # Strip everything after first space
failed=${failed/.service/} # Strip .service suffix if [ "$failed" != "" ]; then
echo "Failed units: $failed"
exit 1
else
echo "No failed units."
@DaffyDuke
DaffyDuke / freenas_iocage_tips.md
Created January 11, 2020 22:08
Freenas, iocage, vpn and more
@DaffyDuke
DaffyDuke / rancheros_on_freenas.md
Last active January 11, 2020 21:51 — forked from s1lvester/rancheros_on_freenas.md
Installing RancherOS on FreeNAS using iohyve

RancherOS on FreeNAS

Inspired by : 
Date: 2016-10-04 Version: 1.2
Author: s1lvester@bockhacker.me

This is my short documentation on how to install RancherOS on FreeNAS.

Versions used:
  • RancherOS v.0.6.1
@DaffyDuke
DaffyDuke / Notes_PTS19.md
Last active October 21, 2019 14:50
PassTheSalt2019

PassTheSalt 2019

Grace à Techsys j'ai eu la chance d'assister à l'édition 2019 de PassTheSalt. C'est une conférence orientée sécurité informatique en locution anglaise par son caractère international. C'est la deuxième édition, elle se tient cette année encore à Polytech Lille. Chaque demi journée est regroupée par thème technique.

Kill MD5 demystifying hash collisions

Résumé

@DaffyDuke
DaffyDuke / AIX.md
Last active May 21, 2019 16:53
Administration Systeme IBM AIX

Diagnostic Configuration LPAR

lparstat -i <= vue hyperviseur
bindprocessor -q <= vue OS, donc hyperthreading, SMT sous AIX

The available processors are: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Lister les erreurs réseau

errpt | grep LINK | head | while read a b c d e f g; do echo "$b $e"; done

Lister les WWN

for i in 0 1 2 3; do lscfg -vl fcs$i | grep -i net; done | awk -F'.' '{print $NF}'
@DaffyDuke
DaffyDuke / omreport.md
Created March 5, 2017 11:56
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
##################################
@DaffyDuke
DaffyDuke / netbackup.md
Created February 25, 2019 20:58
Netbackup tips

Commandes backup/restore :

/usr/openv/netbackup/bin/bplist -b -l "file"
sudo /usr/openv/netbackup/bin/bprestore -C mrc_sem_b -D mrc_sem_b -s 10/25/2014 -e 11/01/2014 –w  -L /TRACE/res.log /SBIMPR/sasdata/fs02/METIER/DEC/DEC_MOA/MARKETING/2-Service/2-Recurrents/1-Portail_des_Directeurs_de_groupe/Suivi_de_la_LCP/source/cumul_suivi_lcp.sas7bdat

pour avoir le contenu de la sauvegarde du 23/03 :

@DaffyDuke
DaffyDuke / CFGMGMTCamp 2018-02-05T09.44.58.md
Last active February 2, 2019 21:42
Notes prises pendant le cfgmgmtcamp 2018 (draft)

5 y of #cfgmgmtcamp

Kris Buystaert nous fait un résumé de ces 5 dernières années. On part d'une track du FOSDEM archi pleine à un évènement dédié le CFGMGMTCAMP. Ca a failli s'appeler infracode :-)

A brief history of configuration / @markburgess_osl

from vmsprawl to containersprawl concern business value => adapt particulare case, tweaking like apt database photo intéressante : bidonville vs la city => mutation improvement with chef : from configuration to timeplanning mais ce qui manque le plus => les forêts ! temps d'adoption d'un soft , pour l'enlever et se remettre => VM / Cloud / Containers / ...

@DaffyDuke
DaffyDuke / Tunnel SSH
Created October 27, 2018 17:13
Tunnel SSH
source : https://twitter.com/climagic/status/1051838861335293952?s=09 by @climagic
Whoops, I forgot to create my dynamic tunnel on this SSH session. No problem, just press [enter] in the ssh session, then literally ~C to open the SSH options prompt (ssh>). You can then specify your tunnel option of -D 8022 or whatever and it will create it.