Quantcast
Viewing all 10285 articles
Browse latest View live

VRO 7.2 and Powershell 5 Secure String Issues Installing Horizon Agent

Trying to install horizon agent on non-domain joined parent image

 

 

param(

$username,

$password

)

 

$userPassword = ConvertTo-SecureString -String $password -AsPlainText -Force

$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList ($username, $userPassword)

Connect-VIServer -Server xx.xx.xx.xxx

Start-VM -VM vmvdi1

sleep 120

Invoke-Command -ComputerName 10.48.200.87 -Credential $cred -ScriptBlock { & 'C:\Users\Admin\Desktop\VMware-viewagent-x86_64-6.2.4-5327555.exe' /s /v"/qn" }

 

 

Get the error:

item: 'Invoke an external script/item0', state: 'failed', business state: 'null', exception: 'PowerShellInvocationError: Errors found while executing script

System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'String' because it is null.

 

 

 

If I don't use secure string and just punch my password into the VRO workflow prompt in plain text, why doesn't this work?

 

I tried it without the convertto-securestring and the parameter password it also fails with a different error about

 

System.Management.Automation.MethodInvocationException: Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument "password" is null. Change the value of argument "password" to a non-null value."


Can what is the scsiBusNumber when you run the add disk workflow?

I am trying to understand the add disk workflow.  I get the index but I am not sure where the scsibusnumber comes from and then how the controllerKey is generated.  When you add a disk in vcenter to a vm through the GUI you do not have to specify this option.  What does it default to?

Image may be NSFW.
Clik here to view.

vRO 7.2 Log Insight Agent - how to configure vRO server to syslog?

I currently have in production vCO 5.5, and I've got the vCO server configured to syslog both the app and system using log4j. The vco-server log4j.xml is setup so that it sends scripting logs to my remote syslog server:

 

<appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">

     <param name="Threshold" value="INFO"/>

     <param name="Facility" value="LOCAL3"/>

     <param name="SyslogHost" value="syslog-server.local:5143"/>

     <param name="FacilityPrinting" value="true"/>

     <layout class="org.apache.log4j.PatternLayout">

          <param name="ConversionPattern" value="prio:%-5p thread:%t token:%X{token} wf:%X{workflowName} wfid:%X{workflow} user: %X{username} cat:%c{1} msg:%m%n"/>

     </layout>

</appender>

 

<category additivity="false" name="SCRIPTING_LOG">

    <priority value="INFO" />

    <appender-ref ref="CONSOLE" />

    <appender-ref ref="FILE" />

    <appender-ref ref="SCRIPT_LOGS" />

    <appender-ref ref="SYSLOG" />

</category>

 

Now I'm working with vRO 7.2, and in Control Center, I've set the logging integration to Use Log Insight Agent, which I'm guessing is a replacement for log4j. Are there any docs on how to fiddle with the /etc/liagent.ini file so that I can get the same or similar results as above?

Cannot find function

Hi Guys,

 

I'm having issues using the Active Directory plugin in vRO. I'm trying to get the .getComputer method to work but it always fails saying "Cannot find function". Any ideas? Below is snippet of what im doing.

 

Attribute created called AD (type: AD:ActiveDirectory) and mapped to my domain.

Attribute created called result (type: AD_Computer)

Attribute created called adh (type: AD_Host)

 

 

Next i have a scriptable task with the following basic code.

 

result = AD.getAllDomainControllerComputers(adh)

 

System.log(result);

 

Image may be NSFW.
Clik here to view.
vRO.jpg

 

Any ideas? I also noticed when i try to use the auto dot notation completion on the AD object it does not work. It works fine with other object types e.g. virtual machine, Ad user.

 

I'm using the Active Directory plugin (Version 3.0.3) on vRealize Orchestrator 7.2.0.4629841.

 

Thanks

 

Mr G

Where to download vRO 7.latest?

I can't find a link to download a vRO version greater then 7.0.1. As I understand it the vRO version has to be greater than 7.0.1 to be compatible with vCenter 6.5. Can someone post a link here? Thanks.

Image may be NSFW.
Clik here to view.

Add and remove element in XML

Hi all,

 

I have a problems about vCO XML plugin; I think the plugin is not enough for some operations.

 

Image may be NSFW.
Clik here to view.
xml.png

 

My code is here ;

 

 

var document = XMLManager.fromString(xml) ;
var nodeList = document.getElementsByTagName("IPs");


for (var i = 0 ; i < nodeList.length ; i++) {

  newElement = document.createElement("Range");
  nodeList.item(i).appendChild(newElement);
  XMLManager.saveDocument(document,path+"/test.xml") ;


}

 

you can see result of my code at below ;

Image may be NSFW.
Clik here to view.
xml2.png

Is vRO 7.3 supposed to work with vSphere 6.5?

I've installed the vRP 7.3 applicance (VMware-vRO-Appliance-7.3.0.21553-5521409_OVF10.ova) but it is unable to accept the certificate from my vSphere 6.5 instance:

 

Error! An error occurred while retrieving the Single Sign-On token from: https://10.2.53.90/lookupservice/sdk

 

Any ideas? Is 7.3 knowsn to work with vSphere authentication?

Use of Configuration Items within Workflow

This post mentions the idea of using Configuration Items that can be called in a Workflow in which I am obtaining the bearer token from vRA.

Do I set it up as 'vRACredentials' configured with attributes of 'username', 'password', tenant'?  In my attempt, it did not work for me.

I'm looking for any insight into how to accomplish this.

 

 

" Create inputs for username, password and tenant – for future use outside of this example, you might want to think about storing these as vRO Configuration Items instead." 

 

http://www.jonathanmedd.net/2015/05/working-with-the-vrealize-automation-rest-api-via-vrealize-orchestrator.html

Image may be NSFW.
Clik here to view.

How to install Plug-in other than using Control Center?

I want to install plugin in vRO via Postman. Since in vRO 7.3 Basic Auth is disabled, I'm looking for alternatives to install plugins. I know we can use Swagger UI to install plugin. Is there any other way to do it.

 

I had read that we can do it via vRO CLI. How do install using CLI? I have not been able to find any documentation for this? Following is the right command for this right?

/var/lib/vco/tools/configuration-cli/bin/vro-configure.sh

Move Datastore to a Folder

Hi there,

 

I am searching for a workflow which moves a datastore to a datastore folder. Couldn´t find it in the library, even google didn´t find any.

 

Appreciate any help

Christian

How to start a vRO workflow in the background?

When I run a workflow in the vRO Workflow Designer app for MacOS, the workflow starts in the foreground. It there any way to get it to run in the background?

 

Thanks

w

Image may be NSFW.
Clik here to view.

Multiple PowerShell Hosts in different forests

Hi,

 

vCo 5.5

Powershell plugin 1.0.6.2442318

 

I'm trying to run some PowerShells cripts from vRO, all working OK for the main.

However, I'm trying to add a 2nd powershell host exactly the same way I've added the first so i can run MS AD cmdlet scripts against our external forest, but have run into issues which I'm guessing are due to the way I've got my krb5.conf file set up?

 

the error i get is:

 

"No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7))) (Dynamic Script Module name : addPowerShellHost#16)"

 

I've triple checked the credentials and know they are correct. I've also swapped out the krb5.conf file so each forest is the only entity included and I can add each PowerShell host separately without issue. Here's my krb5.con file with the 2 forests added.

 

[libdefaults]

   default_realm = INTERNAL.NET

   udp_preference_limit = 1

   forwardable = true

[realms]

    INTERNAL.NET = {

        kdc = dc-01.internal.net

        default_domain = internal.net

       admin_server = dc-01.internal.net

    }

  EXTERNAL.NET = {

        kdc = dc-01.external.net

       default_domain = external.net

       admin_server = dc-01.external.net

    }

 

[domain_realm]

  .internal.net=INTERNAL.NET

    internal.net=INTERNAL.NET

  .external.net=EXTERNAL.NET

    external.net=EXTERNAL.NET

 

[logging]

    kdc = FILE:/var/log/krb5/krb5kdc.log

    admin_server = FILE:/var/log/krb5/kadmind.log

    default = SYSLOG:NOTICE:DAEMON

 

can anyone advise?

Image may be NSFW.
Clik here to view.

What is the best way to clone a VM with customizations but not set any NIC settings?

I am trying to figure out what is the best way to clone a VM that could have any number of nics attached to it.  I also don't want to set any of the NIC settings for the Network Adapters.  I would like it to use the same settings as the original vm.  I have a process to disable the nics before it is powered on to account for any ip issues.  I want to beable to run a sysprep on the system and set some of the customizations just not the NIC ones.  Thanks

Image may be NSFW.
Clik here to view.

Men & Mice - SetIPAMRecord

Hello all,

 

I've done a lot of testing and research, and I've been able to connect to Men & Mice with SOAP. I've been able to do a couple of queries, including registering a new DNS record with its PTR Record. So the record was free originally.

 

Not I'm trying to de-register a currently registered DNS Record with its PTR Record, when using VRO, it doesn't work. The SOAP Interface complains:

[2016-01-14 11:47:05.208] [I] Can't save the object because it was modified by another user.

<faultcode>soapenv:Client</faultcode>

<faultstring>Can't save the object because it was modified by another user.</faultstring>

<detail><mmfaultdetails><message>Can't save the object because it was modified by another user.</message><errorcode>16552</errorcode></mmfaultdetails></detail>

(Dynamic Script Module name : invokeSOAPOperation#26)

 

When I'm doing the same SetIPAMRecord on the same record with SOAPUI, it works fine. I've looked at the query that VRO sends to M&M its seems fine.

 

I have no clue why its saying that all the time, I've looked at the doc of Men & Mice, all the required parameters are provided.

 

Anyone else had problem with SetIPAMRecord ?

 

Thanks,

Logs/processing speed etc

Hello,

 

Am i the only one having performances issues from time to time with VRO ?

 

Here's a few explanation, we use VRO to build VMs. The workflow works A1! At first its super fast to build the VM, one of the operations is to get IPs from my IPAM Service, this normally take about 20-30 seconds max. Now that the machine has been up for at least 2-3 months, I'm seeing performance degradation, the SOAP Operation with the IPAM Service, now takes about 3-4 minutes to complete.

 

Anyone seen slow performance like this ? Any suggestions on what to look at ?


SQL Active Record and aliases

Hello,

 

I'm trying to run a SQL Query with joins, and some fields share the same names in two different tables, but I need there status, my query works perfectly directly in MySQL, and to keep a record which column is from which table i'm creating an alias on it.

 

SELECT n.status as rds, i.status as installation FROM serveur as s join nas as n on n.id=s.nas_id join installation as i on i.id=s.installation_id WHERE s.id=447;

 

Normally the results look like this:

+---------+--------------+

| rds     | installation |

+---------+--------------+

| created | created         |

+---------+--------------+

 

But in my scriptable task, I see this:

[2016-08-30 13:00:19.371] [I] SELECT n.status as rds, i.status as installation FROM serveur as s join nas as n on n.id=s.nas_id join installation as i on i.id=s.installation_id WHERE s.id=447;

[2016-08-30 13:00:19.415] [I] DynamicWrapper (Instance) : [SQLActiveRecord]-[class com.vmware.o11n.plugin.database.ActiveRecord] -- VALUE : ActiveRecord: {status=created}

[2016-08-30 13:00:19.424] [E] Error in (Workflow:Validation des étapes pré-installation / Get server request id (item0)#24) Couldn't get a response from the database

[2016-08-30 13:00:19.525] [E] Workfow execution stack:

***

item: 'Validation des étapes pré-installation/item0', state: 'failed', business state: 'null', exception: 'Couldn't get a response from the database (Workflow:Validation des étapes pré-installation / Get server request id (item0)#24)'

workflow: 'Validation des étapes pré-installation' (d3bff982-2107-4585-b0aa-ef92f6eba4ae)

|  'attribute': name=database type=SQL:Database value=dunes://service.dunes.ch/CustomSDKObject?id='c9402fe2-f833-4411-8c8e-f0ed37130c96'&dunesName='SQL:Database'

|  'attribute': name=serverRequestId type=string value=

|  'input': name=vmid type=string value=447

|  'output': name=nstatus type=string value=null

|  'output': name=istatus type=string value=null

*** End of execution stack.

 

I have no clue which status is this and then the rest of my code doesn't work.

 

Here's my complete scriptable task:

 

var result = null;

var query = 'SELECT n.status as rds, i.status as installation ' +

            'FROM serveur as s join nas as n on n.id=s.nas_id join installation as i on i.id=s.installation_id ' +

            'WHERE s.id=' + vmid + ';';

 

 

System.log(query);

var response = database.readCustomQuery(query);

System.log(response);

 

 

for (var i = 0; i < response.length; i += 1) {

  if (response != null && response.lenght == 1) {

  nstatus = response[i].getProperty("rds"); 

  istatus = response[i].getProperty("installation"); 

  break;

  }

}

 

 

if (result) {

  nstatus = result.toString();

  istatus = result.toString();

 

  System.log('Result: ' + nstatus);

  System.log('Result: ' + istatus);

} else {

  throw 'Couldn\'t get a response from the database';

}

Inputs values, properties in presentation

Hello,

 

Anyone has ever tried to do a workflow with input values that the same value could be used over 30 workflows for different purpose, but still I'd like to control the input values.

So far we weren't controlling input values, but I'm trying to do that now, and I was thinking to use a Configuration Element to store my possible value for that input parameter. Is that possible ?

So far I haven't found out how to do that.

 

Thanks!

vami-sfcbd segfault libsfcCimXmlCodec.so.0.0.0 in vRO 6.0.4 and vRO 7.2

Hi everyone.

 

I'm not sure if this is a big problem or not, but I've noticed in our production vRO 6.0.4 appliance the following segfault log entry in both dmesg and /var/log/messages:

 

[16647655.852743] vami-sfcbd[29855]: segfault at 0 ip 00007efe90ee2d82 sp 00007ffd66ecf980 error 4 in libsfcCimXmlCodec.so.0.0.0[7efe90ec8000+2d000]

[16647662.964520] vami-sfcbd[29900]: segfault at 0 ip 00007efe90ee2d82 sp 00007ffd66ecf980 error 4 in libsfcCimXmlCodec.so.0.0.0[7efe90ec8000+2d000]

[16647663.090343] vami-sfcbd[29945]: segfault at 0 ip 00007efe90ee2d82 sp 00007ffd66ecf980 error 4 in libsfcCimXmlCodec.so.0.0.0[7efe90ec8000+2d000]

[16647679.269087] vami-sfcbd[29969]: segfault at 0 ip 00007efe90ee2d82 sp 00007ffd66ecf980 error 4 in libsfcCimXmlCodec.so.0.0.0[7efe90ec8000+2d000]

[16647679.282037] vami-sfcbd[29972]: segfault at 0 ip 00007efe90ee2d82 sp 00007ffd66ecf980 error 4 in libsfcCimXmlCodec.so.0.0.0[7efe90ec8000+2d000]

 

I'm currently evaluating vRO 7.2 appliance, and close to putting it into production, but I also see similar (if not the same?) error in that version too:

 

[99610.335396] vami-sfcbd[15089]: segfault at 0 ip 00007fe6a4cb6d82 sp 00007ffc7f1613b0 error 4 in libsfcCimXmlCodec.so.0.0.0[7fe6a4c9c000+2d000]

[101020.382451] vami-sfcbd[15416]: segfault at 0 ip 00007fe6a4cb6d82 sp 00007ffc7f1613b0 error 4 in libsfcCimXmlCodec.so.0.0.0[7fe6a4c9c000+2d000]

[511787.180036] vami-sfcbd[9376]: segfault at 0 ip 00007fe6a4cb6d82 sp 00007ffc7f1613b0 error 4 in libsfcCimXmlCodec.so.0.0.0[7fe6a4c9c000+2d000]

[513094.592427] vami-sfcbd[9517]: segfault at 0 ip 00007fe6a4cb6d82 sp 00007ffc7f1613b0 error 4 in libsfcCimXmlCodec.so.0.0.0[7fe6a4c9c000+2d000]

[513668.583223] vami-sfcbd[9691]: segfault at 0 ip 00007fe6a4cb6d82 sp 00007ffc7f1613b0 error 4 in libsfcCimXmlCodec.so.0.0.0[7fe6a4c9c000+2d000]

 

Is this a cause for concern?

In both my vRO6.0.4 and vRO7.2 instances, I see that there are 8 /opt/vmware/sbin/vami-sfcbd processes running. I'm not too familiar with this service.

vAPI list all tagged objects doesn't seem to work. Anyone accomplished this via the vAPI plugin successfully?

I'm trying to make sense of the vAPI plugin and also reading through the online documentation and I haven't seen any examples of listing tagged objects.  If I access the rest api directly and look at the resource definitions for com/vmware/vapi/rest/navigation/resource/id:com.vmware.cis.tagging.Tag I see this which sounds like what I need:


{

      "name": "list_attached_objects",

      "documentation": "Fetches the {@term list} of attached objects for the given tag. To invoke this {@term operation}, you need the read privilege on the input tag. Only those objects for which you have read privileges will be returned.",

      "service": "com.vmware.cis.tagging.tag_association",

      "links": [

        {

          "method": "POST",

          "href": "https://server.example.com/rest/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects"

        }

      ],

      "metadata": {

        "method": "GET",

        "href": "https://server.example.com/rest/com/vmware/vapi/metadata/metamodel/service/operation/id:com.vmware.cis.tagging.tag_association/id:list_attached_objects"

      }

    }

 

When I attempt to run this I get an error from the api as follows:

 

{

  "name": "com.vmware.vapi.rest.httpNotFound",

  "localizableMessages": [

    {

      "defaultMessage": "Not found.",

      "id": "com.vmware.vapi.rest.httpNotFound"

    }

  ],

  "majorErrorCode": 404

}

 

Does anyone here know this api well enough to tell me if I am making the correct call and if so can you verify that it is working?  eternallyfrustratedbyvmware how's that for a tag? hopeijustneededtortfm

Weird Java Script issue

I am currently using vRO 7.2 and am running into this issue, ive browed around some javascript websites for anyone who has written something similar but I never seen any have an issue with there calling of dates past 13 .Is this something funky in vRO or am I missing something?

 

var date = new Date();
var future_date = new Date();
var date_start = 1;
var date_range = 14;
var date_range_array = new Array();

 

while ( date_start <= date_range){
future_date.setDate(date.getDate()+ date_start);
System.log(future_date);

 

var numberOfMonth = future_date.getMonth() + 1 ;
var day = future_date.getDate();
var year = future_date.getFullYear();
var month;

 

//Conversion to Month from number
//---------------------------------------------------
if (numberOfMonth == "1"){
month = "Jan";
}

else if (numberOfMonth == "2"){
month = "Feb";
}

else if (numberOfMonth == "3"){
month = "Mar";
}

else if (numberOfMonth == "4"){
month = "Apr";
}

else if (numberOfMonth == "5"){
month = "May";
}

else if (numberOfMonth == "6"){
month = "Jun";
}

else if (numberOfMonth == "7"){
month = "Jul";
}

else if (numberOfMonth == "8"){
month = "Aug";
}

else if (numberOfMonth == "9"){
month = "Sept";
}

else if (numberOfMonth == "10"){
month = "Oct";
}

else if (numberOfMonth == "11"){
month = "Nov";
}

else if (numberOfMonth == "12"){
month = "Dec";
}

//---------------------------------------------------

var combineDate = month + "-" + day + "-" + year;
System.log(combineDate);

//---------------------------------------------------
date_start++;

}

 

Goal is to have it generate the date in a certain format but when it gets past day 13 it gets a little weird.

 

[2017-07-19 15:03:51.146] [I] Thu Jul 20 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.147] [I] Jul-20-2017

[2017-07-19 15:03:51.148] [I] Fri Jul 21 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.150] [I] Jul-21-2017

[2017-07-19 15:03:51.151] [I] Sat Jul 22 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.152] [I] Jul-22-2017

[2017-07-19 15:03:51.154] [I] Sun Jul 23 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.155] [I] Jul-23-2017

[2017-07-19 15:03:51.157] [I] Mon Jul 24 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.158] [I] Jul-24-2017

[2017-07-19 15:03:51.160] [I] Tue Jul 25 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.161] [I] Jul-25-2017

[2017-07-19 15:03:51.163] [I] Wed Jul 26 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.164] [I] Jul-26-2017

[2017-07-19 15:03:51.165] [I] Thu Jul 27 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.167] [I] Jul-27-2017

[2017-07-19 15:03:51.168] [I] Fri Jul 28 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.169] [I] Jul-28-2017

[2017-07-19 15:03:51.171] [I] Sat Jul 29 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.172] [I] Jul-29-2017

[2017-07-19 15:03:51.174] [I] Sun Jul 30 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.175] [I] Jul-30-2017

[2017-07-19 15:03:51.176] [I] Mon Jul 31 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.178] [I] Jul-31-2017

[2017-07-19 15:03:51.179] [I] Tue Aug 01 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.180] [I] Aug-1-2017

[2017-07-19 15:03:51.181] [I] Sat Sep 02 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.183] [I] Sept-2-2017

[2017-07-19 15:03:51.184] [I] Wed Oct 04 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.185] [I] Oct-4-2017

[2017-07-19 15:03:51.186] [I] Sat Nov 04 2017 19:03:51 GMT-0000 (UTC)

[2017-07-19 15:03:51.190] [I] Nov-4-2017

 

Thanks for the help in advance!

Image may be NSFW.
Clik here to view.
Viewing all 10285 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>