DX Unified Infrastructure Management

 View Only
  • 1.  what to post vmware/callback/get_monitors?

    Posted Apr 09, 2018 02:39 AM

    Hi,

     

    I'm looking to get the list of Monitoring devices under vmware probe.

     

    Can someone share what values to Post while making call to

     

    POST /probe/{domain}/{hub}/{robot}/vmware/callback/get_monitors

    {
    "timeout":"5000",
    "parameters":{
    "name":"resource",
    "type":"string",
    "value":""
    }

    }

     

    It has three parameters, resource, what & page. Refer the screenshot:

     

    Thanks



  • 2.  Re: what to post vmware/callback/get_monitors?

    Broadcom Employee
    Posted Apr 16, 2018 11:00 AM

    @Tejesh Khimani 

     

    This should work, try:

     

    resource = <nameofresource>

    what = all

    page = 




  • 3.  Re: what to post vmware/callback/get_monitors?

    Broadcom Employee
    Posted Apr 17, 2018 04:03 AM

    Does something like this works for you?

     

    {
    "timeout":"5000",
    "parameters":[{
    "name":"resource",
    "type":"ip",
    "value":"130.123.1.2"
    },
    {
    "name":"what",
    "type":"string",
    "value":"all"
    }]
    }

     

     

    I'm testing this, the values should be ok, but for some reason I'm getting:

    Received status (90) on response (for sendRcv) for cmd = 'get_monitors'

    while get_status works 



  • 4.  Re: what to post vmware/callback/get_monitors?

    Posted Apr 18, 2018 08:00 AM

    Hi Marco,

     

    Thanks, now in Probe utility it is working, however, in the json 'value' field is empty. I'm looking to get current status/values for the monitoring device. For instance, current utilization of DATASTORE which is being monitored.

     

    And in API, I posted below in the request body, but not getting any monitored devices:

     

    URL:  /probe/{domain}/{hub}/{robot}/vmware/callback/get_monitors

    {
    "timeout":"5000",
    "parameters":[{
    "name":"resource",
    "type":"string",
    "value":"<resourcename>"
    },
    {
    "name":"what",
    "type":"string",
    "value":"all"
    },
    {
    "name":"page",
    "type":"int",
    "value":"0"
    }]
    }

     

    Response :

    {
    "entry": [
    {
    "@datatype": "int",
    "@name": "page",
    "value": {
    "@type": "xs:int",
    "$": "1"
    }
    },
    {
    "@datatype": "int",
    "@name": "page_count",
    "value": {
    "@type": "xs:int",
    "$": "1"
    }
    },
    {
    "@datatype": "string",
    "@name": "status",
    "value": {
    "@type": "xs:string",
    "$": "OK"
    }
    }
    ]
    }



  • 5.  Re: what to post vmware/callback/get_monitors?

    Posted Apr 18, 2018 08:03 AM

    Also, i tried calling below API

     

    URL /vmware/callback/verify_resource

     

    getting below output: 

    {
    "nimString": {
    "@key": "status",
    "$": "java.lang.RuntimeException: Failed to create session for Resource 'test'. \t ** Trigger exit **"
    }
    }



  • 6.  Re: what to post vmware/callback/get_monitors?

    Broadcom Employee
    Posted Apr 23, 2018 04:26 AM

    @Tejesh Khimani I'm not able to get the get_monitors callback to work via API. Please log a support case if you need this to be further investigated.