• About me…
  • VMware
  • Powershell
  • DIY

ConfigMgr.nl

VMware, PowerShell, Automation, and more…

  • About me…
  • VMware
  • Powershell
  • DIY

Testing Script Runtime Service for vSphere – part 1

7 januari 2021 PowerCli Powershell VMware No Comments

Last year I tweeted about the introduction of the Script Runtime Service and now I decided to give it a try. The reason for this is that I think this is something we all waited for: a central script host.

At first, I thought this was an evolution of the Script Execution Service that can be found in the vSphere HTML5 Web Client Fling. This fling had several features, and one of them was called PowerActions: integrating PowerCLI and the vSphere Client. The vSphere Client now provides the ability to execute PowerCLI commands and scripts, and store scripts in a library. Custom actions backed by PowerCLI scripts can be defined and executed on inventory objects.

To use it you would roll out a vSphere HTML5 Web Client Fling appliance and enable the Script Execution Service from the management interface.

Then you would be able to run scripts from a central repository. So SES and SRS seem to offer similar functionality. But to be honest, I don’t know how these two services compare.

The new Script Runtime Service also uses a separate machine. This would either be a K8S cluster or a VM. In this post, I will be using a VM.

First, download the bits from GitHub. I saved the files in D:\SRS. Then import the OVF to your environment. Because the disk is split into three parts importing it using the vSphere Web Client doesn’t work. So you can use PowerCLI for this. Create a connection to your environment and run these two commands:

$vmhost = Get-VMHost -Name esx01.local.lab
Import-VApp -Source D:\SRS\SRSHostVM.ovf -VMHost $vmhost

It takes some time to import the VM but in the end, you should see a VM named SRSHostVM. Power on the VM and wait for it to boot. Log on with root (default password is changeme), change the password, and install the SRS. Detailed instructions on how to do the installation can be found on the GitHub page. My first attempt failed because DNS was not configured for the VM. The reason was that I forgot to configure the DNS Server option in the DHCP scope. So make sure that DNS is working. To be sure I also created an A record for the VM (srs.local.lab).

When the installation is finished you should see something like this:

Now you can check the installation by opening the swagger page of the service. Use the name you used in the installation command. In my case it’s https://srs.local.lab/swagger. If all goes well you should see something like this:

Using SRS

Now that the SRS is installed successfully, it is time to use it! Luc Dekens wrote an excellent article about building your own SRS and how to use it: https://www.lucd.info/2020/12/23/a-hitchhikers-guide-to-srs-1-0-0/

In the next post I will try to give you some examples on how to use the Script Runtime Service.

powercliscriptsrsvCentervcsavSphere

Using ADFS with vCenter 7

Reporting on your Windows Server backup

Geef een antwoord Reactie annuleren

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

Recente berichten

  • Handy one-liners
  • The system has insufficient locker space for the image profile
  • Testing Script Runtime Service for vSphere – part 2
  • Reporting on your Windows Server backup
  • Testing Script Runtime Service for vSphere – part 1

Jeroen BurenFollow

Jeroen Buren
jeroen_burenJeroen Buren@jeroen_buren·
1 mei

Fijn weer een seintje gekregen van @VattenfallNL : Uw termijnbedrag is op dit moment niet meer helemaal in lijn met uw verbruik. Ze bedoelen natuurlijk niet meer in lijn met hun tarieven…

Reply on Twitter 1520835622042222595Retweet on Twitter 1520835622042222595Like on Twitter 15208356220422225952Twitter 1520835622042222595
jeroen_burenJeroen Buren@jeroen_buren·
13 dec

Baas!! Was geweldig om te zien

Ziggo Sport Racing@ZS_Racing

De legendarische @SChecoPerez aan het woord! 🙌

'Ik was aan het einde van mijn leven, ik was aan het doodgaan. Maar Lewis Hamilton verloor een aantal seconden', aldus Sergio Pérez tegenover @JackOnTracks 📽️

#ZiggoSport #F1 #AbuDhabiGP 🇦🇪

Reply on Twitter 1470285708338335747Retweet on Twitter 1470285708338335747Like on Twitter 1470285708338335747Twitter 1470285708338335747
jeroen_burenJeroen Buren@jeroen_buren·
13 dec

Do you want to be busy during the holidays? Or take some time to patch?

VMware Sec Response@VMwareSRC

On 10/12/2021 we released a new Critical Severity VMware Security Advisory. Check out https://www.vmware.com/security/advisories/VMSA-2021-0028.html. #VMware #log4j

Reply on Twitter 1470283508551761923Retweet on Twitter 1470283508551761923Like on Twitter 1470283508551761923Twitter 1470283508551761923
jeroen_burenJeroen Buren@jeroen_buren·
11 dec

Wat een spanning!!! Nu al!! #MaxVerstappen #F1Finale

Reply on Twitter 1469669386059460613Retweet on Twitter 1469669386059460613Like on Twitter 14696693860594606131Twitter 1469669386059460613
Retweet on TwitterJeroen Buren Retweeted
JDSchuitemakerʞɹıᗡ-uɐſ@JDSchuitemaker·
8 dec

Met code F1GAME25 nu het volledige F1 seizoen kijken voor Euro 49, ipv Euro 14,99 per maand bij #viaplay #beau

https://www.formula1.com/en/subscribe-to-f1-tv.html#nl-NL

Reply on Twitter 1468700389881098242Retweet on Twitter 14687003898810982422Like on Twitter 14687003898810982429Twitter 1468700389881098242
Load More...

Categorieën

Proudly powered by WordPress | Theme: Doo by ThemeVS.