Skip to Main Content
Cloud Platform

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Post your ideas

Start by posting ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea

Help IBM prioritize your ideas and requests

The IBM team may need your help to refine the ideas so they may ask for more information or feedback. The offering manager team will then decide if they can begin working on your idea. If they can start during the next development cycle, they will put the idea on the priority list. Each team at IBM works on a different schedule, where some ideas can be implemented right away, others may be placed on a different schedule.

Receive a notification on the decision

Some ideas can be implemented at IBM, while others may not fit within the development plans for the product. In either case, the team will let you know as soon as possible. In some cases, we may be able to find alternatives for ideas which cannot be implemented in a reasonable time.

If you encounter any issues accessing the Ideas portals, please send email describing the issue to ideasibm@us.ibm.com for resolution.

For more information about IBM's Ideas program visit ibm.com/ideas.

Status Not under consideration
Workspace UrbanCode
Categories Deploy
Created by Guest
Created on Jan 17, 2022

UCD Agents Filter By Relay type

Hi team,


https://localhost:8443/#resources/agents

On Agent page under resources there is an option to filter agents by relay they are currently connected to.

Under the relay name dropdown there should be an option to filter agents not connected to any relay (those directly connected to server and No Relay).

For e.g., we have more than 6000+ agents and some old agents are still directly connected to the server directly (with relay option as None/Blank) and to search such agents for an admin we have to check every agent page as those connected directly appear in random orders (not together) as the up/down option as present for for e.g., for Date Created is also not present in the Relay to order them.

Please check the attachments for the relay filter on agent page. As you can see those agents not connected to any relay appear in the random order and not grouped together.

Thanks.




Idea priority Low
  • Admin
    Osman Burucu
    Jan 28, 2022

    Please check the REST APIs which can help you to get the list of not connected agents. And based on the output it could do f.e. linking the agents automatically to an relay...

    I have added here an example from my demo server for searching for agents which do not have a connection to a relay:

    If an agent is connected to an Relay it has relayId set. If not it is not available. The next step could be to filter this json to show only the agents which do not have this key "relayId".


    Here my example call, i am using on a linux shell cURL and jq (a "json formatter" for the command line )

    curl -k -u PasswordIsAuthToken:fxxxxx-axxx-xxxx-xxxx-xxxx https://ucd.nbg-demo.cloud:8443/cli/agentCLI | jq

    [

    {

    "id": "17ea12ad-274a-414b-1f9b-02cdffaeae42",

    "securityResourceId": "17ea12ad-2710-b364-fd62-a44d342aed15",

    "name": "cqdb.oz.demo.cloud",

    "active": true,

    "relayId": "agentRelay-fuMUPOgnwwK8MDjR",

    "endpointId": "i455jGqlmthYWVRNS5yU",

    "licensed": false,

    "licenseType": "NONE",

    "status": "ONLINE",

    "version": "7.2.1.0.1122954",

    "communicationVersion": "Web",

    "lastContact": 1643381510809,

    "dateCreated": 1643381445219,

    "workingDirectory": "/opt/ibm-ucd/agent/var/work/",

    "features": [

    "comm-2017"

    ],

    "impersonationPassword": "****",

    "impersonationUseSudo": false,

    "impersonationForce": false,

    "tags": []

    },

    {

    "id": "179ccc9d-db00-bfc1-8aea-d43337dbe7e7",

    "securityResourceId": "179ccc9d-dad2-468e-cba8-d4b7f7ba83ef",

    "name": "ucd.local",

    "active": true,

    "endpointId": "fDU4QihGnyzMWHpWrugN",

    "licensed": false,

    "licenseType": "FLOATING",

    "status": "ONLINE",

    "version": "7.1.2.1.1104185",

    "communicationVersion": "Web",

    "lastContact": 1643381510809,

    "dateCreated": 1622638452129,

    "workingDirectory": "/opt/ucd/agent/var/work/",

    "features": [

    "comm-2017"

    ],

    "impersonationPassword": "****",

    "impersonationUseSudo": false,

    "impersonationForce": false,

    "tags": []

    },

    {

    "id": "17e90def-672f-d9f0-5e0a-65667252a71f",

    "securityResourceId": "17e90def-66f8-759e-1bc5-f7c7f1f7dff3",

    "name": "win10cqdemo",

    "active": true,

    "endpointId": "bRErUkA2epdIj3pyV5nZ",

    "licensed": false,

    "licenseType": "FLOATING",

    "status": "OFFLINE",

    "version": "7.2.1.0.1122954",

    "communicationVersion": "Web",

    "lastContact": 1643276412081,

    "dateCreated": 1643108038242,

    "workingDirectory": "C:\\Program Files\\agent\\var\\work\\",

    "features": [

    "comm-2017"

    ],

    "impersonationPassword": "****",

    "impersonationUseSudo": false,

    "impersonationForce": false,

    "tags": []

    }

    ]



    My next call is filtering out all agents which have relayId set and show only ones without this key:

    curl -k -u PasswordIsAuthToken:f7xxxx-xxxx-xxxx-xxxx-xxxxxx https://ucd.nbg-demo.cloud:8443/cli/agentCLI | jq '[ .[] | select (has("relayId") == false )]'

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

    Dload Upload Total Spent Left Speed

    100 1627 100 1627 0 0 12363 0 --:--:-- --:--:-- --:--:-- 13016

    [

    {

    "id": "179ccc9d-db00-bfc1-8aea-d43337dbe7e7",

    "securityResourceId": "179ccc9d-dad2-468e-cba8-d4b7f7ba83ef",

    "name": "ucd.local",

    "active": true,

    "endpointId": "fDU4QihGnyzMWHpWrugN",

    "licensed": false,

    "licenseType": "FLOATING",

    "status": "ONLINE",

    "version": "7.1.2.1.1104185",

    "communicationVersion": "Web",

    "lastContact": 1643382105793,

    "dateCreated": 1622638452129,

    "workingDirectory": "/opt/ucd/agent/var/work/",

    "features": [

    "comm-2017"

    ],

    "impersonationPassword": "****",

    "impersonationUseSudo": false,

    "impersonationForce": false,

    "tags": []

    },

    {

    "id": "17e90def-672f-d9f0-5e0a-65667252a71f",

    "securityResourceId": "17e90def-66f8-759e-1bc5-f7c7f1f7dff3",

    "name": "win10cqdemo",

    "active": true,

    "endpointId": "bRErUkA2epdIj3pyV5nZ",

    "licensed": false,

    "licenseType": "FLOATING",

    "status": "OFFLINE",

    "version": "7.2.1.0.1122954",

    "communicationVersion": "Web",

    "lastContact": 1643276412081,

    "dateCreated": 1643108038242,

    "workingDirectory": "C:\\Program Files\\agent\\var\\work\\",

    "features": [

    "comm-2017"

    ],

    "impersonationPassword": "****",

    "impersonationUseSudo": false,

    "impersonationForce": false,

    "tags": []

    }

    ]