login vsi company logo login vsi company logo 250x40
header-05.jpg

Warning

JUser: :_load: Unable to load user with ID: 22027

Creating Your Own Action Items for Login AM

Creating Your Own Action Items for Login AM

A lot of standardized Action Items are already included in Login AM. But we cannot think about everything. The good news is that you can easily extend the functionality on your own. Everything in Login AM is registered via a GUID. So the first thing you need is a GUID, but how do you get one?

You can create a GUID via the following Powershell Command; [guid]::NewGuid() – and create a new folder with the name of this GUID (or rename the GUID from the Action Item CheckForPort). Do not close the PowerShell, because you will need more GUIDS. Now open the template.xml and enter the GUID you just created in the ID field. Also change the Name and Description. Leave the usablePlugins section as is. By doing that you active this Action Item for Deployment and Image Management.

Now change the section <InvocationFunction> and put a name in that will match to the actions that will be done by the Action Item – for example “Invoke-AMActionItemDOWHATYOUWANT”. This is the name of the function you will create later in the PowerShell script. With the Section field you can enter new variables, for each field you also need a new GUID, that you can create with the above mentioned PowerShell command:

     <Field>
         <Id>86b5cc9a-4552-41cf-9d95-b68aedf71d77</Id>
         <Name>Port</Name>
         <IsRequired>True</IsRequired>
         <Type>System.String</Type>

For each value you need to copy past one field section and enter the appropriate values. Save the XML file then. Now you need to change the Powershell Script Invoke-ActionItems.ps1 to your needs. In the Powershell Script there needs to be a function defined. In our example it has the name Invoke-AMActionItemDOWHATYOUWANT. In this function do now the stuff in PowerShell that you want to achieve, using the variables you defined in the template.xml. You can get the variables you defined by the command:

$Port = $($Variables | ? {$_.name -eq "Port"}).Value

In this case I get the value of the variable Port I defined in the XML. Do this for every variable. Then the future Powershell Script can use these variables.

The last thing you will need to do is download a nice icon file – use Google or Iconfinder and search for an icon that symbolizes your action item. Make sure that the size is exactly 16x16 pixels and save this image as Icon.png. This folder you created with all of the stuff you copy into your Login AM file share into the subfolder Config\Actionitems – restart your Login AM and voila you have a new Action Item.

About the author

Tags: How-to, Login AM, Image Management

What our customers are saying

Bill Kleyman - MTM Technologies

"From the engineering perspective and from the architecture perspective, we absolutely love the technology behind Login VSI. We actually use Login VSI as a pro-active tool to help our customers understand the dynamic nature of a datacenter and the business."

Bill Kleyman, VP of Strategy and Innovation at MTM Technologies


Tony Reynolds - 23Technology

"As a cloud and virtualisation consultancy, 23Technology use Login VSI to prove the scalability of our paper designs for our customers. It has become an important part of our assurance process. In one instance, it helped us to successfully complete a project by showing that, with correctly configured anti-virus, the designed solution scaled to meet our client’s needs."

Tony Reynolds, Technical Director at 23Technology


Keith Hageman - Micron

"When I joined Micron in June 2014, the first thing I did is find out if we have a copy of Login VSI and if we could run a 1000 user test case instance (which we could). We use Login VSI to run tests for customers and for case studies and I really have loved Login VSI for the last 3 or 4 years.”

Keith Hageman, Senior Solutions Architect at Micron Technology

Login VSI, Inc.

300 Tradecenter

Suite 3460
Woburn, MA 01801

Phone: +1 844 828 3693

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200