Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
PowerCLI Essentials

You're reading from   PowerCLI Essentials Simplify and automate server administration tasks with PowerCLI

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781785881770
Length 194 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Chris Halverson Chris Halverson
Author Profile Icon Chris Halverson
Chris Halverson
Arrow right icon
View More author details
Toc

Running remote on a Linux guest

Attempting to cross platforms is always difficult and this type of crossing is also hard in PowerShell. Considering that PoSH does not run on Linux (for obvious reasons), there has to be a medium that pushes alternate programming languages to the VM.

This has to be done through one of two methods. The first method is Invoke-VMScript, in which a PowerCLI command talks to the VMTools of the VM and launches a script block that the VM can understand through the VMTools. It is much harder than it would appear on the surface. The second method is by launching an SSH connection and running the command as if the administrator is plunking away on the keyboard. It is a little easier to support and is more secure than the first method.

Basic BASH

A basic BASH script consists of components similar to a batch or PowerShell script, using a definition of the language and a list of commands in order to perform the function. Typical Linux BASH is used for navigating around the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime