Skip to Main Content
Integration


This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


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:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Functionality already exists
Workspace DataPower Gateway
Created by Guest
Created on Mar 10, 2022

Add support to use shell script to enter admin CLI of DataPower container

The requirement is to enter the admin CLI of API Gateway(DataPower) deployed on OpenShift Container Platform to diagnostic commands to collect data for memory leak issue by shell script run periodically.

The script is required to be scheduled in cronjob for automatic and periodical collection or be triggered when the memory is growing up to 50%, 70%, 90%...etc.

The 'oc attach' command can connect to the admin CLI of API Gateway container but does not support using shell script to logon, the shell script only can use 'oc rsh' to open a shell to enter the container but cannot access admin CLI.

An approach to use shell script to connect the admin CLI of API Gateway container is required for diagnostics data collection automatically and periodically.


Idea priority Medium
  • Guest
    Reply
    |
    Oct 14, 2022

    This can be accomplished using a configMap to add the DP's telnet service bound to localhost interface.

    kubectl -n $ns edit configmap telnet-service-cm

    # Please edit the object below. Lines beginning with a '#' will be ignored,

    # and an empty file will abort the edit. If an error occurs while saving this file will be

    # reopened with the relevant failures.

    #

    apiVersion: v1

    data:

    telnet_cli_service.cfg: |

    cli telnet "telnet_Service"

    ip-address 127.0.0.1

    port 2300

    exit

    kind: ConfigMap

    metadata:

    creationTimestamp: "2022-02-01T22:21:01Z"

    name: telnet-service-cm

    namespace: ncchau

    resourceVersion: "13289228"

    selfLink: /api/v1/namespaces/ncchau/configmaps/telnet-service-cm

    uid: 999a07b1-898c-4649-899b-cebc85211d00


    Once the telnet service is enabled at port 2300 (via configMap) then you can do things like this:
    kubectl -n $ns exec -it $gw -- nc 127.0.0.1 2300 < dp-cli-commands.txt |strings;done

    Inside the dp-cli-commands.txt you put the login credentials and CLI of interest for example:

    admin

    admin

    top;co

    sh mem

    exit

    exit