Skip to content

Instantly share code, notes, and snippets.

View DaffyDuke's full-sized avatar

Olivier Duquesne DaffyDuke

View GitHub Profile
@DaffyDuke
DaffyDuke / VxVM mini Howto.md
Created March 4, 2017 14:08
VxVM mini Howto

Binaires VCS (Veritas Cluster Server) : dans /opt/VRTS* (notamment /opt/VRTSvcs/bin)

Log: dans /var/VRTSvcs/log (surtout engine*.log)

Conf: dans /etc/VRTSvcs/conf/config

Commandes de base

  • hastart : demarre un noeud (a faire sur les N noeuds si le cluster est arrete)
@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 / Oracle.md
Created March 4, 2017 15:01
Administration Base de Données

Lister les objets dans un schéma

select object_name,object_type from user_objects;

Trouver le propriétaire d'une table

select owner,table_name from dba_tables where table_name = '$TABLE';

Voir les tablespaces et leurs index

@DaffyDuke
DaffyDuke / Ressources_debat_donnes_personnelles_20140522.md
Last active February 28, 2018 22:32
Débat Données Personnelles
@DaffyDuke
DaffyDuke / puppet_list_changed.md
Last active March 4, 2017 15:17
Puppet: List Changed Files

Source : http://lzone.de/blog/Puppet:%20List%20Changed%20Files

If you want to know which files where changed by puppet in the last days:

cd /var/lib/puppet
for i in $(find clientbucket/ -name paths); do
	echo "$(stat -c %y $i | sed 's/\..*//')       $(cat $i)";
done | sort -n

will give you an output like

@DaffyDuke
DaffyDuke / check_dmesg.sh
Created March 4, 2017 17:04
Nagios Plugin for dmesg Monitoring
#!/bin/bash
# Source : http://lzone.de/blog/Nagios%20Plugin%20for%20dmesg%20Monitoring
SEVERITIES="err,alert,emerg,crit"
WHITELIST="microcode: |\
Firmware Bug|\
i8042: No controller|\
Odd, counter constraints enabled but no core perfctrs detected|\
Failed to access perfctr msr|\
echo 0 > /proc/sys"
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
 
# Licensed under the Python License (see http://www.python.org/psf/license/)
# Copyright (C) 2008 Pierre Duquesne <stackp@online.fr>
#
# Changelog:
# 20080722 * disable spinning when output is redirected to a file
# 20080718 * Use BODY.PEEK[] in the fetch command as specified in RFC 3501
# (fix by Stefan)
@DaffyDuke
DaffyDuke / susecon2015.md
Created March 5, 2017 11:45
Notes Susecon 2015 - Amsterdam

Keynote Ouverture

Video Control, Optimlize,Innovate

Nils Brauckman open spource the way to innovate openstack success story agile, complet, sous control cost 2 marker distibuted storageceph May the open source be with you

@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
##################################