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).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
See this idea on ideas.ibm.com
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 |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
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