Rexxer

Some tips for me and other

ESXi update from CLI

esxcli network firewall ruleset set -e true -r httpClient esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.5.0-2020 esxcli software profile update -p ESXi-6.5.0-20170702001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml esxcli network firewall ruleset set -e false -r httpClient

Find the TimeZoneName for your SCCM/MDT Deployments

tzutil /g will show your current TZ.

Cisco getting DHCP slow issue

You can use the Interface range command: interface range fa0/1 – 24 spanning-tree portfast Be careful that no switches are connected to ports within the range.

System power report

powercfg /systempowerreport

PFSense + Installing packages

You can install packages from the command line: e.g.: pkg install -y pfsense-pkg-stunnel if something blocks it you will see: Updating pfSense-core repository catalogue…pfSense-core repository is up to date.Updating pfSense repository catalogue…pfSense repository is up to date.All repositories are up to date.process with pid 12837 still holds the lock Tnen you can kill it: kill […]

Extend LVM partition in CentOS 7/8 under VmWare

Add more space on the disk in VmWare console. Run cfdisk and check that you see free space after /dev/sda5. In my case there are /dev/sda4 as extended partition and /dev/sda5 as LVM2 partition in extended. Remember start sectors for /dev/sda4 and sda5. Delete /dev/sda5. Don’t worry – your data will be OK. Delete /dev/sda4. […]

IIS + get configuration

get-website | ForEach-Object -Process { $xSite=”IIS:\sites\”+$_.Name cd $xSite $xSite $myWebApp=get-webApplication $myWebApp | Format-Table -AutoSize Path , @{Label= “anonim:” ; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/anonymousAuthentication -Name Enabled -PSPath $xSite -location $_.Path).value }}, @{Label= “Basic:”; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/basicAuthentication -Name Enabled -PSPath $xSite -location $_.Path).value }}, @{Label= “ClientCert:”; Expression = {(Get-WebConfigurationProperty -Filter /system.webServer/security/authentication/clientCertificateMappingAuthentication -Name Enabled -PSPath […]

Centos + No more mirrors to try

yum clean all yum –disablerepo=\* –enablerepo=base,extras,updates update

Port forward with Windows 10

netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=9000 connectaddress=192.168.0.10 connectport=80 netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=9000

Zabbix + certificates monitoring

There is the fine script and template for certificates monitoring. Just create the script, import the template and link it to the host. Monitoring SSL Certificates with Zabbix #! /bin/sh SERVER=$1 TIMEOUT=25 RETVAL=0 TIMESTAMP=`echo | date` if [ -z “$2” ] then PORT=443; else PORT=$2; fi EXPIRE_DATE=`echo | openssl s_client -connect $SERVER:$PORT 2>/dev/null | openssl […]

Previous Posts Next posts