This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Configure shares parameters for system traffic with distributed switchs and Network I/O control. | |
.DESCRIPTION | |
You can use Network I/O Control on a distributed switch to configure bandwidth allocation for the traffic that is related to the main system features in vSphere: | |
- Management | |
- Fault Tolerance | |
- iSCSI | |
- NFS | |
- Virtual SAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We cloned our project to C:\sc\PSStackExchange | |
$Path = 'C:\sc\PSStackExchange' | |
$ModuleName = 'PSStackExchange' | |
$Author = 'RamblingCookieMonster' | |
$Description = 'PowerShell module to query the StackExchange API' | |
# Create the module and private function directories | |
mkdir $Path\$ModuleName | |
mkdir $Path\$ModuleName\Private | |
mkdir $Path\$ModuleName\Public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Désactivation log | |
systemctl stop rsyslog.service | |
/sbin/service auditd stop | |
# Suppression anciens kernels | |
/bin/package-cleanup --oldkernels --count=1 -y | |
#Suppression traces YUM | |
/usr/bin/yum clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Désactivation logs le temps de la préparation du template | |
systemctl stop rsyslog.service | |
/sbin/service auditd stop | |
# Désactivation SELINUX | |
setenforce 0 | |
sed -i -e 's!^SELINUX=.*!SELINUX=disabled!' /etc/selinux/config | |
# Désactivation FIREWALLD | |
systemctl stop firewalld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Désactivation logs le temps de la préparation du template | |
/sbin/service rsyslog stop | |
/sbin/service auditd stop | |
# Suppression anciens kernels | |
/usr/bin/package-cleanup --oldkernels --count=1 -y | |
#Suppression traces YUM | |
/usr/bin/yum clean all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Désactivation logs le temps de la préparation du template | |
/sbin/service rsyslog stop | |
/sbin/service auditd stop | |
# Désactivation SELINUX (optionnel) | |
/usr/sbin/setenforce 0 | |
sed -i -e 's!^SELINUX=.*!SELINUX=disabled!' /etc/selinux/config | |
# Désactivation IPTABLES (optionnel) | |
/sbin/service iptables stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param ( | |
[Parameter(Mandatory=$true)] | |
[string]$VMHost, | |
[string]$Datastore="*", | |
[int]$asyncUnmapFilePourcentage=50 | |
) | |
# Récupere les informations sur le ou les datastore(s) | |
$Datastores = Get-Datastore -Name $Datastore | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Reclame l'espace libre sur les datastores en thin provisionning. | |
.DESCRIPTION | |
Reclame l'espace libre sur les datastores en thin provisionning. | |
.PARAMETER Datastore | |
Nom d'un datastore sur lequel sera reclame l'espace libre. le datastore peut etre passé en argument. |
NewerOlder