Deem For Mac Install

Create The App Inside WSO under the uninstall script. Please use

!/bin/bash

#Generate application uninstallers for macOS.

#Parameters
DATE=`date +%Y-%m-%d`
TIME=`date +%H:%M:%S`
LOG_PREFIX="[$DATE $TIME]"

#Functions
log_info() {
    echo "${LOG_PREFIX}[INFO]" $1
}

log_warn() {
    echo "${LOG_PREFIX}[WARN]" $1
}

log_error() {
    echo "${LOG_PREFIX}[ERROR]" $1
}

#Check running user
if (( $EUID != 0 )); then
    echo "Please run as root."
    exit
fi

echo "Welcome to Application Uninstaller"
echo "The following packages will be REMOVED:"
echo "  VMware.Deem-21.12.191"

#Need to replace these with install preparation script
VERSION=21.12.191
PRODUCT=VMware.Deem

echo "Stopping the daemon: deemd"
set -e
/bin/launchctl unload "/Library/LaunchDaemons/com.vmware.deemd.plist"
rm /Library/LaunchDaemons/com.vmware.deemd.plist || true

echo "Application uninstalling process started"
# remove link to shorcut file
find "/usr/local/bin/" -name "deemd" | xargs rm
if [ $? -eq 0 ]
then
  echo "[1/4] [DONE] Successfully deleted shortcut links"
else
  echo "[1/4] [ERROR] Could not delete shortcut links" >&2
fi

#forget from pkgutil
pkgutil --forget "com.vmware.$PRODUCT.$VERSION" > /dev/null 2>&1
if [ $? -eq 0 ]
then
  echo "[2/4] [DONE] Successfully deleted application informations"
else
  echo "[2/4] [ERROR] Could not delete application informations" >&2
fi

#remove application source distribution
[ -e "/Library/Application Support/VMware/${PRODUCT}" ] && rm -rf "/Library/Application Support/VMware/${PRODUCT}"
if [ $? -eq 0 ]
then
  echo "[3/4] [DONE] Successfully deleted application"
else
  echo "[3/4] [ERROR] Could not delete application" >&2
fi

#remove deem log file
[ -e "/Library/Logs/VMware/Deem" ] && rm -rf "/Library/Logs/VMware/Deem"
if [ $? -eq 0 ]
then
  echo "[4/4] [DONE] Successfully deleted logs"
else
  echo "[4/4] [ERROR] Could not delete logs" >&2
fi

echo "Application uninstall process finished"
exit 0

VMworld 2017

This years VMworld was a change of pace for me. This year was not a typical release with more focus on security and partnerships then core applications maybe some of that is saved for Europe. I had a rocky start with a bout of food posing not fun. So i lost a day of Talking with vendors and some sessions I wanted to check out. Relays will have to do.

Had some interesting conversations around Workspace One and Sailpoint and the guys from both teams came over to whiteboard this is a welcome conversation vmware has become more open to working with partners then just trying to pitch more of their solutions.

Kobo / PKS / Kubernetes a Partnership that needs more clarity. Maybe its the system admin in me but I feel like there was to many ways to do this right now. And some of the projects are really cool but now info on cost or will it be free open source.

VMware AppDefense / Goldilocks

I been asking VMware for this type of app to be built in for some time. The more we can learn how the app talks and update we can get a good baseline. Can’t wait to see partners take advantage of some of the API

 

The last but my Favorite Announcement. SKYLINE

There has been apps on the market that did some of what CloudPhysics has been doing for some time. Bigdata for support. I hope this helps VMware Find and alerts on major bugs faster. The one thing it wont do till the next update is driver support. Vendors and VMware have allways need a way to tell you what version you should be on. This will hope fully be the answer very soon.

Thanks for sticking around.

PowerCli on OSX

Step 1 – Download and Install .NET Core for Mac OS X from here

https://www.microsoft.com/net/core#macos

  1. brew update
  2. brew install openssl
  3. ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
  4. ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

Step 2 – Download and Install PowerShell for Mac OS X using the instructions and packages this will also include the install of homebrew

https://github.com/PowerShell/PowerShell

  1. Sudo installer -pkg powershell-6.0.0-alpha.10.pkg -target /

Step 3 – Perform the following steps to ensure you are using the latest OpenSSL and Curl:

  1. brew install openssl
  2. brew install curl –with-openssl
  3. sudo install_name_tool -change /usr/lib/libcurl.4.dylib /usr/local/opt/curl/lib/libcurl.4.dylib /usr/local/microsoft/powershell/6.0.0-alpha.10/System.Net.Http.Native.dylib
  4. sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib /usr/local/microsoft/powershell/6.0.0-alpha.10/System.Security.Cryptography.Native.dylib

Step 4 – Create the following directory if it does not exists by running the following command:

  1. mkdir -p ~/.local/share/powershell/Modules

Step 5 – Extract the PowerCLI modules into the directory you created above by running the following command:

  1. Copy the unzip files to ~/.local/share/powershell/Modules
  2. unzip PowerCLI.ViCore.4523941.zip -d ~/.local/share/powershell/Modules
  3. unzip PowerCLI.Vds.4523941.zip -d ~/.local/share/powershell/Modules

Launch PowerShell

Step 1 – Open terminal

Step 2 – Start Powershell in the terminal by running the following command: powershell

Step 3 – Import the PowerCLI Modules into your PowerShell Session: Get-Module -ListAvailable PowerCLI* | Import-Module

Step 4 – Connect to your vCenter Server using

Connect-VIServer PS> Connect-VIServer -Server 192.168.1.51 -User administrator@vSphere.local -Password VMware1! Name Port User —- —- —- 192.168.1.51 443 VSPHERE.LOCAL\Administrator