Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

All Content in vRealize Automation Tools

older | 1 | .... | 368 | 369 | (Page 370) | 371 | 372 | .... | 418 | newer

    0 0

    **thanks to my ServiceNow developers...

     

    var numberOfPages = parsed.metadata["totalPages"];

    for(var i=1; i<numberOfPages; i++){

     

    If total pages = 3

    and our resource is listed on page 3,

    This loop will check pages 1 and 2 (missing page 3 because the criteria should be i<=numberOfPages)

     

     

    Full function below:

    reconcileCMDB : function() {

    try{

    VRASNLogger.debug('Inside  VRASNImportCMDB.reconcileCMDB: used to Reconcile the CMDB CI records');

    var midServer = gs.getProperty('vrasn.midserver.name');

    var endPoint = gs.getProperty('vrasn.end.point');

    var _endPoint = endPoint+"/catalog-service/api/consumer/resources?withExtendedData=false&page=1&limit=20";

    var request = new sn_ws.RESTMessageV2();

    request.setEndpoint(_endPoint);

    request.setHttpMethod('get');

    var auth = new VRASNPropertiesUtil();

    var authGen = auth.getSNProperties('AuthToken');

    request.setRequestHeader("Accept", "application/json");

    request.setRequestHeader("Authorization", "Bearer "+authGen);

    request.setRequestHeader("Content-Type", "application/json");

    request.setMIDServer(midServer);

    var ciList = "";

    var gotException = false;

    var resourceID="";

    var response = request.execute();

    if(response.haveError()) {

    VRASNLogger.error('REST call error found inside VRASNImportCMDB.reconcileCMDB for pagination: '+ response.getErrorMessage());

    this.errorHandler.notify("REST call error found inside VRASNImportCMDB.reconcileCMDB for pagination: "+ response.getErrorMessage());

    gotException = true;

    }

    else {

    var responsedata = response.getBody();

    var parser = new JSONParser();

    var parsed = parser.parse(responsedata);

    var numberOfPages = parsed.metadata["totalPages"];

    var cmdbItems = parsed.content.length;

    for(var j=0;j<cmdbItems;j++){

        resourceID = parsed.content[j]["id"];

    ciList = ciList+resourceID+";";

    }

     

    for(var i=1; i<numberOfPages; i++){

    _endPoint = endPoint+"/catalog-service/api/consumer/resources?withExtendedData=false&page="+i+"&limit=20";

    request.setEndpoint(_endPoint);

    request.setHttpMethod('get');

    request.setRequestHeader("Accept", "application/json");

    request.setRequestHeader("Authorization", "Bearer "+authGen);

    request.setRequestHeader("Content-Type", "application/json");

    response = request.execute();

     

    if(response.haveError()) {

    VRASNLogger.error('REST call error found inside VRASNImportCMDB.reconcileCMDB: '+ response.getErrorMessage());

    this.errorHandler.notify("REST call error found inside VRASNImportCMDB.reconcileCMDB: "+ response.getErrorMessage());

    gotException = true;

    }

    else {

    responsedata = response.getBody();

    parsed = parser.parse(responsedata);

    cmdbItems = parsed.content.length;

    for(j=0;j<cmdbItems;j++){

       resourceID = parsed.content[j]["id"];

    ciList = ciList+resourceID+";";

    }

    }

     

    }

     

    if(JSUtil.notNil(ciList)) {

    var gr = new GlideRecord("cmdb_ci");

    gr.addEncodedQuery("u_vra_uidISNOTEMPTY^install_status!=7^ORinstall_status=NULL");

    gr.query();

    while(gr.next()) {

    var a = ciList.indexOf(gr.u_vra_uid+"");

    if(a>-1) {

    VRASNLogger.debug('The record exists in the list '+ gr.name);

    }

    else {

    gr.install_status = 7;

    gr.update();

    }

    }

    }

    }

    }

    catch(e){

    VRASNLogger.error('Exception caught inside VRASNImportCMDB.reconcileCMDB: '+e);

    this.errorHandler.notify("Exception caught inside VRASNImportCMDB.reconcileCMDB: "+e);

    }

    },

     

    type: 'VRASNImportCMDB'

    };


    0 0

    Looking for a way for our ServiceNow users to make requests to the vRealize Catalog with a single service account instead of the user logged into SNOW/vRA.  We have a few clients that are developing business logic in the form of a standard ServiceNow Catalog request.  This standard request should be triggering a vRealize Catalog request while passing blueprint parameters.  At current state of the plugin, entitlements and requests revolve around the user who is logged in.  A majority of our integrations start with business logic sitting at the ServiceNow level.

     

    Dave


    0 0

    VRA 7.3, ITMS 3.0, ServiceNow Istanbul and default authentication.

     

    With the VRA_VIDM login rule marked as active, whenever a user logs into ServiceNow, they are prompted immediately to log into VRA, they click OK on the prompt and are presented with another browser window (screen shot attached).  The error returned is as follows:

     

    An error occurred during OAuth2 operation.  Please contact your administrator to resolve the issue.

    { "error": "invalid_request","error_description": "Invalid client" }

     

    The user is never presented with the VRA Login page.

     

    We currently have the VRA_VIDM rule selected as inactive due to this issue.  It appears as though ServiceNow is importing the VRA content, no errors from any of the Scheduled Import jobs aside from the occasional "no sensors defined" error.


    0 0

    Hi Team,

     

    I just integrated my vRA 7.3 with Istanbul SNOW instance using plug-in 3.0. I am able to request (and approve) services from the vRA catalog, however requests are stuck. See screenshot below.

    Screen Shot 2018-02-20 at 12.15.45.png

     

    In the plugin log I can see the following error message, however I am not able to identify what are the invalid credentials.

     

    REST call error found inside VRASNRequestUtil.getTemplateViaRest: Method failed: (/catalog-service/api/consumer/entitledCatalogItems/94748c1b-40fa-4ec0-a239-6ef0807b73c6/requests/template) with code: 401 - Invalid username/password combo

     

    Thanks

    Paolo


    0 0
  • 03/28/18--06:48: vROPS VM monitoring
  • Hello all,

     

    Is there a way in vROPS to make a report that should contain VM monitoring(CPU, memory, etc) charts(trend) at vm level.

    For example: on a host with 3 vm's If we want to monitor the CPU Usage and Memory Usage, the report should have 6 graphs, the first graph with the CPU Usage of vm1, the seccond graph with memory Usage of vm1, and so on.

     

    I have tried to create a view for this but the problem is that the CPU Usage graph contains all 3 vm's on the same graph.

     

    Best Regards,

    Daniel


    0 0

    Hi all,

     

    when we want to create from vRO a new reservation it's necessary (not mandatory) to push a ResourcePool ID....

     

    {

    "key" : "resourcePool",

    "value" : {

    "type" : "entityRef",

    "componentId" : null,

    "classId" : "ResourcePools",

    "id" : "79e1f291-1001-4ec3-b0b2-c094f8fc865e",

    "label" : "Resources

    }

     

    Resource pool in a reservation :

     

    resa.jpg

     

     

    This ID is available in a IaaS DB :

     

     

     

     

     

    We try to retrieve this ID from vRO VCPlugIn but without success. We can only find the ResourcePoolUniqueID from vRO VCPlugIn.......

     

    How we can FIND this ResourcePoolID linked to a vCenter Cluster from vRO ?

     

     

    Where vRA stores this information :

     

    • This ID matches to the ResourcePool on this Esxi cluster.

     

     

     

    Thx for your help.


    0 0

    Basically what the title says. We've been trying to find documentation for how to create a new reservation in vRealize Automation with a Orchestrator workflow, but the documentation and examples one can find online seem to be woefully lacking. Anyone have any basic code/workflow examples to help out?


    0 0

    Approval Policy Based on a Datacenter Selection

    I have two datacenters selection in vRA and I would like to prevent VMs reconfiguring in one of those two datacenters such as using an XaaS action (change network) which is entitled to all VMs in both datacenters.

    Thanks.


    0 0

    If I have an existing vSphere environment running 100's of VM's which have been deployed using vRA and wish to migrate them all to an entirely new platform managed by a different vRA instance, what are the steps I'd need to take and can this be achieved non-disruptively?

     

    All the VM's will be connected to an NSX network and running on vSAN if this adds additional complexity.

     

    Imagine a situation where the current environment is running vSphere 6.5 with vRA 7.3 but my new world is actually running ESX 6.7 with vRA 7.4


    0 0

    Have you adopted vCloud Director in your environment?  Do you use it alongside vSphere? Or are you a vSphere-only shop?  We want to know!

    0 0

    Adding Property Definitions to an XaaS Blueprint

    Is there a way to add property definitions/groups to an XaaS Blueprint?

    Thanks.


    0 0
  • 03/26/18--09:44: create file in guest
  • Hi all,

    I have vRO 7.0.1

    I want to copy file to VM guest.

    I saw 2 built-in workflows:

     

    1. “Copy file from vCO to guest”

    2. "Create temporary file in guest"

     

    both of them not suits me, because:

    1. “Copy file from vCO to guest” - error "No permissions on the file for the attempted operation...", and yes I walked through the article below:

    vRealize Orchestrator Appliance - Guest File Operations Part 1 - (Copying a file to guest VM) - 2ninjas1blog.com

     

    2. "Create temporary file in guest" - Creates file with customized name and without extension.

     

    I guess if there were an option to use the workflow of "Create temporary file in guest" but with an option that I can choose exat filename and extension, that would be great.

    did someone had this case that I have?

     

    Regards,

    Boris


    0 0

    Hi All,

     

    I am trying to create a property definition using the method createPropertyDefinition(). The property definition will be populated by an external action and there is a parameter externalAction with type Action in the method.

    Does anyone know the format it expects for the parameter externalAction

     

    I tried giving it the way we see in my property definition, com.vratest.utils/getStorageList

    It fails in reading externalAction.module.name from it. I am sure its a small mistake or a particular way it expects the input value to be passed

     

    Appreciate your time and help.

     

    Thanks!


    0 0

    Olá, boa tarde.

     

    Tenho o vRealize automation 7.0.1 em meu ambiente e recentemente estou tendo problemas com vms provisionadas em um determinado cluster de datastore configurado no vCenter 6.0.0.

     

    A mensagem completa do erro: The following component requests failed: vSphere_Machine_1. Request failed: Machine VMXXX: CloneVM : Cannot find the data store named CLUSTER_VMWARE..

     

    Preciso resolver este caso provisionado vms para o cluster de datastore deixando que o vCenter gerencie e não o configurando no automation para datastore individuais com mesma prioridade.

     

    Obs: Para outros clusters do meu ambiente consigo provisionar vms sem problemas.

     

    ***************************************************************************************************

    Hello good afternoon.

     

     

    I have vRealize automation 7.0.1 in my environment and recently I'm having problems with vms provisioned in a given datastore cluster configured in vCenter 6.0.0.

     

    The complete error message: The following component requests failed: vSphere_Machine_1. Request failed: Machine VMXXX: CloneVM: Can not find the data store named CLUSTER_VMWARE ..

     

    I need to resolve this vms provisioned case to the datastore cluster by letting vCenter manage and not configuring it on automation for individual datastores with the same priority.

     

    Note: For other clusters in my environment I can provision vms with no problems.


    0 0
  • 03/29/18--11:00: fieldValues
  • Hi,

     

    After a Xass request is submitted, I configured an event broker.

     

    When I try to print the following lines, I receive null:

    var fieldValues = input.get("fieldValues");

    System.log(fieldValues);

    (input is the properties which was received from the request)

     

    If I try to print sourceInfo, fieldNames, requestInfo - there are a lot of information.

     

    I suppose that  filedValues should contains the values the the user filled in his request, am I right? Why there is no information in it?

     

    Thanks!


    0 0

    hello,I have VRA 7.3 environment

    I've created a Custom Property Definition for VirtualMachine.Network0.Name. 

    I find a problem when i finished , I was requested a vm and the vra has a error

     

    Action 'getApplicableNetworks' in module 'com.vmware.vra.networks' failed : 400 Bad request (Dynamic Script Module name : getReservationsForUserAndComponent


    0 0

    Hello everyone, how are you today?

     

    I am trying to collect some jobs ID to perform a shutdown and power on for several VMs using the REST API at vRA 6.0.2, but the curl command to collect those not working. It gave the result "No JSON object could be decoded".

    I am running the follow steps to connect at vRA appliance and try to collect those informations:

     

    1) export VRA=server.name.fqdn

    2) export ACCEPT="application/json"

    3) curl --insecure -H "Accept: application/json" -H 'Content-Type: application/json' --data '{"username":"xxxx","password":"yyyy","tenant":"ttt"}' https://$VRA/identity/api/tokens

    4) export AUTH="Bearer MTUyMjY3NDQwNjY2ODo4Y2EyYTU3NjA3OWJjOGU3MTM2OTp0ZW5hbnQ6cmpvdXNlcm5hbWU6ZGNhdXRlbGxhQGxldmVsM2RjLm5ldDplNmEwNThjMzZjYWQ1NTMyMWFlYzVjNDdiZDFmMWQ0YmQ1NDk0NThiMGVkODFiNWVlN2RlYzk4OWE2MmI1NDg0MDNjZjg4MGQyMGQyYjQ4MzI4MzdlY2Y0ZmZiNzViMjIwOWE1MDZjZmU3OTljOGE5ZDMwYTNhMTJhODA1MzRiYw=="

    5) curl --insecure -H "Accept: $ACCEPT" -H "Authorization: $AUTH" https://$VRA/catalog-service/api/consumer/entitledCatalogItems | python -m json.tool

    6) curl --insecure -H "Accept: $ACCEPT" -H "Authorization: $AUTH" https://$VRA/catalog-service/api/consumer/resources | python -m json.tool

    This gave the information about one VM at end, like bellow:

     

                },

                "dateCreated": "2018-01-20T01:28:33.866Z",

                "description": "Provisioned by VMware vCAC",

                "forms": {

                    "catalogResourceInfoHidden": true,

                    "details": {

                        "extensionId": "csp.places.iaas.item.details",

                        "extensionPointId": null,

                        "type": "extension"

                    }

                },

                "hasCosts": true,

                "hasLease": true,

                "iconId": "c24b42b4-538d-4991-9341-a9eab8989ec2",

                "id": "8f5386ea-2fa0-4073-bef9-04204f2df38e",

                "lastUpdated": "2018-01-20T12:20:53.558Z",

                "lease": {

                    "start": "2018-01-20T01:07:22.000Z"

                },

                "leaseForDisplay": null,

                "name": "VM-RJO-028",

                "operations": null,

                "organization": {

                    "subtenantLabel": "ttttttttttttttttt",

                    "subtenantRef": "b6f188fd-aaec-490c-8457-4b7f400ff88e",

                    "tenantLabel": "tttttttttttttttt",

                    "tenantRef": "tttt"

                },

                "owners": [

                    {

                        "ref": "ddddddddddddd",

                        "tenantName": "tttt",

                        "type": "USER",

                        "value": "xxxxxxxxxx"

                    }

                ],

                "providerBinding": {

                    "bindingId": "dbf7a44e-b5db-4112-9566-8d5351ebafff",

                    "providerRef": {

                        "id": "6c0d6ec9-7ef0-42ea-8993-fab7f5cddee7",

                        "label": "iaas-service"

                    }

                },

                "requestId": "b870c84f-d840-48c6-b471-4a580288d658",

                "resourceData": {

                    "entries": []

                },

                "resourceTypeRef": {

                    "id": "Infrastructure.Virtual",

                    "label": "Virtual Machine"

                },

                "status": "ACTIVE",

                "totalCost": null

            }

        ],

        "links": [],

        "metadata": {

            "number": 1,

            "offset": 0,

            "size": 20,

           "totalElements": 12,

            "totalPages": 1

        }

    }

     

    If i try to use the requestID of this VM, by the follow command, i received the follow error:

     

    curl --insecure -H "Accept: $ACCEPT" -H "Authorization: $AUTH" https://$VRA/catalog-service/api/consumer/requests/b870c84f-d840-48c6-b471-4a580288d658/resourceViews | python -m json.tool

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                     Dload  Upload   Total   Spent    Left  Speed

    100    93  100    93    0     0     49      0  0:00:01  0:00:01 --:--:--    49

    No JSON object could be decoded

     

    And i can not collect all informations. By other way, i opened the DEV options at Chrome web browser and collect the job string when i perform the Power Off (for example), and collect the follow information:

    curl --insecure -H "Accept: $ACCEPT" -H "Authorization: $AUTH" https://vra.level3dc.net/catalog-service/api/consumer/requests/7ac73abf-9b63-44bf-a76b-c35eeb7890b0

    {"@type":"ResourceActionRequest","id":"7ac73abf-9b63-44bf-a76b-c35eeb7890b0","iconId":"machinePowerOff.png","version":5,"requestNumber":32247,"state":"SUCCESSFUL","description":null,"reasons":null,"requestedFor":"cloud-rjo@level3dc.net","requestedBy":"cloud-rjo@level3dc.net","organization":{"tenantRef":"rjo","tenantLabel":"Datacenter-RJO","subtenantRef":"b6f188fd-aaec-490c-8457-4b7f400ff88e","subtenantLabel":"CLOUD_OPERATIONS_RJO"},"requestorEntitlementId":"6816129e-d107-40ed-bf1b-f913ab00d321","preApprovalId":null,"postApprovalId":null,"dateCreated":"2018-04-02T13:40:13.145Z","lastUpdated":"2018-04-02T13:40:21.291Z","dateSubmitted":"2018-04-02T13:40:13.145Z","dateApproved":null,"dateCompleted":"2018-04-02T13:40:21.289Z","quote":{"leaseRate":{"type":"moneyTimeRate","cost":{"type":"money","currencyCode":"USD","amount":0.0},"basis":{"type":"timeSpan","unit":"DAYS","amount":1}}},"requestCompletion":{"requestCompletionState":"SUCCESSFUL","completionDetails":"The request was successfully completed"},"requestData":{"entries":[]},"retriesRemaining":3,"requestedItemName":"Power Off - VM-RJO-027","requestedItemDescription":"{com.vmware.csp.component.iaas.proxy.provider@resource.action.name.desc.machine.PowerOff}","stateName":"Successful","phase":"SUCCESSFUL","waitingStatus":"NOT_WAITING","approvalStatus":"POST_APPROVED","executionStatus":"STOPPED","resourceRef":{"id":"855eca83-7019-4a8d-8828-57b90b1aa193","label":"VM-RJO-027"},"resourceActionRef":{"id":"f27f7a47-6f10-4f4a-9808-6d6639344972","label":"Power Off"}}

     

    Could someone help me to perform a REST API script to just perform a power off and/or power on? I tried like intruduce, but in this version of vRA i believe that form of connection changed in comparation of new on (vRA 7.x).

     

    Thanks in advanced

     

                },
                "dateCreated": "2018-01-20T01:28:33.866Z",
                "description": "Provisioned by VMware vCAC",
                "forms": {
                    "catalogResourceInfoHidden": true,
                    "details": {
                        "extensionId": "csp.places.iaas.item.details",
                        "extensionPointId": null,
                        "type": "extension"
                    }
                },
                "hasCosts": true,
                "hasLease": true,
                "iconId": "c24b42b4-538d-4991-9341-a9eab8989ec2",
                "id": "8f5386ea-2fa0-4073-bef9-04204f2df38e",
                "lastUpdated": "2018-01-20T12:20:53.558Z",
                "lease": {
                    "start": "2018-01-20T01:07:22.000Z"
                },
                "leaseForDisplay": null,
                "name": "VM-RJO-028",
                "operations": null,
                "organization": {
                    "subtenantLabel": "CLOUD_OPERATIONS_RJO",
                    "subtenantRef": "b6f188fd-aaec-490c-8457-4b7f400ff88e",
                    "tenantLabel": "Datacenter-RJO",
                    "tenantRef": "rjo"
                },
                "owners": [
                    {
                        "ref": "cloud-rjo@level3dc.net",
                        "tenantName": "rjo",
                        "type": "USER",
                        "value": "CLOUD_OPERATIONS_RJO cloud-rjo"
                    }
                ],
                "providerBinding": {
                    "bindingId": "dbf7a44e-b5db-4112-9566-8d5351ebafff",
                    "providerRef": {
                        "id": "6c0d6ec9-7ef0-42ea-8993-fab7f5cddee7",
                        "label": "iaas-service"
                    }
                },
                "requestId": "b870c84f-d840-48c6-b471-4a580288d658",
                "resourceData": {
                    "entries": []
                },
                "resourceTypeRef": {
                    "id": "Infrastructure.Virtual",
                    "label": "Virtual Machine"
                },
                "status": "ACTIVE",
                "totalCost": null
            }
        ],
        "links": [],
        "metadata": {
            "number": 1,
            "offset": 0,
            "size": 20,
            "totalElements": 12,
            "totalPages": 1
        }
    }

    0 0

    Our Unix team has requested that we pass them the payload file so they can parse certain custom properties. I have created a custom property, added it to a property group that is applied to the blueprint, added a property to the software component, and binded it to the custom property on the blueprint. however, it passes a null or empty string. i have the custom property being populated at MachineRequested POST via event subscription. The data is there, but it just isn't passing it.  Any ideas?

    0 0

    Hi guyz,

     

    juste one question.

     

    When a user request a destruction of Virtual Machine it's possible to :

     

    - Power off Virtual Machine

    - Keep this Virtual Machine on vCenter

    - Delete virtual machine from vCenter et vRA after 7 days

     

     

    Thx for your help.


    0 0

    Hi there

     

    I am trying to understand the stress badge within vROPS. I have made some modifications to our monitoring policy in the hopes of getting a clearer picture of stress but seem to be going backwards.

    vROPs reports stress as "Good: No Issues" but the graph indicating the "Business Week Workload" is totally red.

     

    I have gone through the various CPU metrics (demand, allocation etc) and, as an exampole, during peak periods where demand is 121GHz vs 165GHz available - the cluster reports as still stressed.

     

    I have modified the stress zone to be warn/be yellow at 75%, orange at 80% and red at 90% - so with the values above I would expect the colour of the graph to be approaching yellow. I also have a maintenance window in place in order to not take stats into account during our batch/backup windows on Saturday night/Sunday morning

     

    Any help or guidance with this would be greatly appreciated

    Thanks

     

    Stress Page.JPG

    Metric Graphs.JPG


older | 1 | .... | 368 | 369 | (Page 370) | 371 | 372 | .... | 418 | newer