Home > Blogs > VMware PowerCLI Blog > Tag Archives: Onyx

Tag Archives: Onyx

Introducing Code Capture

I am extremely excited to announce a new feature that’s been added to the vSphere HTML5 Web Client Fling. This new feature is called Code Capture. While the name might not sound familiar, hopefully you’re already acquainted with its predecessor – Onyx, which is currently the most requested feature on the PowerCLI Feature Requests site!

PowerCLI Feature Requests Site - Most Popular

Code Capture gives you the ability to take actions you’ve completed in the vSphere Client and outputs usable code. Once you have the vSphere HTML5 Web Client Fling installed, it’s just as simple as hitting the red ‘record’ button on the top menu, performing your activities, then hitting the red ‘stop’ button. At this point, you’ll be taken to the Code Capture section where you can browse your code and even copy or download the code as well!

Before jumping to download the fling, we should discuss what a VMware Fling really is. Flings are projects that are built by our engineers and made available for general consumption. These flings are distributed under the Technical Preview License and, therefore, are recommended to not be run on production environments. This also means there is no ability to open a VMware support request. However, you can open a bug against the fling itself using the ‘Bugs‘ tab. Also, I would like to point out the ‘Comments‘ tab where you can submit feedback. We would greatly appreciate any and all feedback you have!

Now, let’s checkout Code Capture!

Code Capture in Action

Code Capture In Action

Now let’s take a more in-depth look.

Code Capture Output

In the example above, we can see that we are shutting down a system by the name of ‘app01’. Once we click on the ‘stop’ button, it shows us the PowerCLI.NET code. This is important because, at first glance, the output may not be quite as you expect.

For example, you may have expected to see a command like Shutdown-VMGuest -Name app01 Instead, we saw low-level PowerCLI calls. Walking through the code, it created a VirtualMachine object, which referenced the app01 VM by MoRef, followed by the usage of a method named ‘ShutdownGuest’ that is called directly against the VM object. More information about this specific method: ShutdownGuest()

Code Output:

It’s worth noting, at this point in time, all of the returned code is going to be in this manner. There are on-going investigations to add the translation from this code into high-level PowerCLI cmdlets. If this type of conversion is important to you, please add a comment to the following PowerCLI Feature Request: Onyx support for HTML5 and REST APIs

Using the Output

If I were to power on the app01 VM, I could then use the code in a PowerShell session (where I’m already connected to the vCenter Server) to shutdown the app01 system. To make this easier, Code Capture includes a ‘Copy’ button which easily copies the entirety of the code to our clipboard. We can now paste this into our PowerShell session to accomplish the task!

Example:
Code Capture Copy Paste Output

Another option to extract the code from our browser is with the ‘Download’ button. Clicking ‘Download’ will, depending on your browser configuration, save a file named ‘power-cli-script.ps1’ to your Downloads folder. We can then call that file just like any script from our PowerShell session to accomplish the action.

Example:
Code Capture Using Downloaded Script

Summary

The next generation of Onyx is here and it’s called Code Capture, which is only available in the vSphere HTML5 Web Client Fling! Using the start and stop button on the main menu bar, Code Capture allows you to take your actions in the vSphere Client and output them to PowerCLI code. The code output can also easily be copied and/or downloaded from your browser session using the dedicated buttons in the Code Capture area.

Get started by heading over to the vSphere HTML5 Web Client Fling page and downloading the latest version today!

Onyx For The Web Client (vSphere 6.0 U1) – Now Available

Screenshot 2015-07-08 15.53.55

Everyone cheered when we released an updated Onyx fling that allowed users to finally record their actions in the vSphere Web Client. (you can read about what Onyx for the Web Client is, and how to install it here: https://blogs.vmware.com/PowerCLI/2015/07/new-fling-onyx-web-client.html).

Continue reading

New Fling: Onyx for the Web Client

FLINGS

I am pleased to announce that we have just released Onyx for the Web Client!  Continue reading

The PowerCLI Universe @ VMworld Tech Exchange

PowerCLI_logo

Monday August 30th 2010

Tech Exchange for Developers

vSphere PowerCLI Engineering will walk the audience through PowerCLI and reveal
some really cool things happening with PowerCLI and Onyx

Vladimir G.                                                            Yavor B.

Vladimir G. VMware vSphere R&D Manager                Yavor B. VMware
vSphere R&D Manager

Session IDL PPC-11

Session Title: Automating vSphere Management using PowerCLI and
Onyx

Tuesday and Thursday

VMworld

Alan R and Luc D blow the doors out of the event. Due to overwhelming
popularity this session has been repeated. Show up early seating is
limited, and dont miss out.

Session ID: TA6944

Session Title: PowerCLI is for Administrators !

Labs:

LAB26 – VMware vSphere™ PowerCLI

This lab will provide hands on training for scripting a VMware
environment. The goal is to provide all the tools needed to automate,
integrate, and extend VMware vCenter™ for your environment. Attendees
will use the Microsoft PowerShell based PowerCLI for scripting VMware
vCenter™ and ESX. They’ll walk away from the lab with a better
understanding of VMware Infrastructure, resources for using the toolkit,
and a variety of scripts for performing common administrative tasks.
Exercises will cover performing tasks based on VM attributes, performing
actions on many VMs at a time, and exporting performance data. This lab
does not require programming or scripting experience.

Lab Captain: Alton Yu

PowerCLI Booth

We will also have a booth dedicated to managing vSphere with PowerCLI
and the vSphere APIs. Come and meet our Booth Representatives
(Sorry folks not what you think) The booth will be staffed with most of
the engineering teams from the core SDK / API groups.

Lab

City wide disruptions (PowerCLI Party)

We are planning on getting together on Monday night. Its looking like
it will be the 21st Amendment. Stand by for more details.

Get-HeadsUp | Register-TechnologyExchange@VMword2010

Don’t miss the opportunity to meet part of the
genuine Vmware PowerCLI team live!

 

Two parts session focuses on PowerCLI and Onyx.

 

More than 230 PowerShell cmdlets, along with
documentation and samples in version 4.1.

Tips and tricks – the art of being efficient managing
vSphere.

 

Hands-on lab: VMware vSphere™ PowerCLI

 

Bright new Onyx version with tons of fresh, cool
features. For those who don’t know, Onyx is a standalone application that
serves as a proxy between the vSphere Client and the vCenter Server. It
monitors the network communication between them and translates it into an
executable PowerShell code. You will be the first to see it before even its
official release!

Register-TechnologyExchange@VMword2010