Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. 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

Post 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


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.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Delivered
Workspace Spectrum LSF
Components Scheduling
Created by Guest
Created on Aug 22, 2023

json output for "badmin lsfproxyd status"

The new solution LSFProxyd does not dump status in json file.

This RFE is to enable json output of "badmin lsfproxyd status" command.

Needed By Month
  • Admin
    Bill McMillan
    Reply
    |
    Sep 11, 2023

    This is something we will consider as part of the next service pack plan.

    In the meantime, the script below will convert the output to json.


    #!/bin/bash
    
    # usage: badmin lsfproxyd status | proxyd2json
    echo "{"
    hostcount=0
    while IFS= read -r line
    do
    var=`echo $line | cut -b1-14`
    if [[ $var == "lsfproxyd serv" ]]
    then
    echo "\"Services\": {"
    read line
    echo \"QUERY\": \"`echo $line | cut -d " " -f2`\",
    read line
    echo \"SUBMISSION\": \"`echo $line | cut -d " " -f2`\",
    read line
    echo \"OTHER\": \"`echo $line | cut -d " " -f2`\"
    echo "},"
    elif [[ $var == "lsfproxyd host" ]]
    then
    if [[ $hostcount == 0 ]]
    then
    hostcount=$((hostcount+1))
    echo "\"HostData\": {"
    else
    echo ","
    fi
    read line
    echo -e "\"HOST-`echo $line | cut -d " " -f2`\": [{\n\"Summary Metrics\": [{"
    read line
    mystatus=`echo $line | cut -d " " -f2`
    read line
    mypid=`echo $line | cut -d " " -f2`
    read line
    read -ra aline
    echo \"QUERY\": {\"LIMIT\": \"${aline[1]}\",\"TOTAL\": \"${aline[2]}\",\"PRIVILEGED\": \"${aline[3]}\"},
    echo \"SUBMISSION\": {\"LIMIT\": \"${aline[1]}\",\"TOTAL\": \"${aline[2]}\",\"PRIVILEGED\": \"${aline[3]}\"},
    echo \"OTHER\": {\"LIMIT\": \"${aline[1]}\",\"TOTAL\": \"${aline[2]}\",\"PRIVILEGED\": \"${aline[3]}\"}}],
    elif [[ $var == "lsfproxyd star" ]]
    then
    echo \"Service Summary\": [{
    echo \"Status\": \"$mystatus\",
    echo \"PID\": \"$mypid\",
    echo \"StartTime\": \"`echo "$line" | cut -b33-`\",
    read -r line
    echo \"SampleTime\": \"`echo "$line" | cut -b33-`\",
    read line
    echo \"SamplePeriod\": \"`echo "$line" | cut -b33-`\"
    echo }],
    elif [[ $var == "--------------" ]]
    then
    read line
    read line
    read line
    echo \"Detailed Metrics\": [{
    read -ra aline
    echo \"Request.Query\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Request.Submission\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Request.Other\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Rejected.Query\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Rejected.Submission\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Rejected.Other\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Blocked\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"},
    read -ra aline
    echo \"Error\": {\"Current\": \"${aline[1]}\",\"Last\": \"${aline[2]}\",\"Max\": \"${aline[3]}\",\"Avg\": \"${aline[4]}\"} }] }]
    elif [[ $var == "No metric data" ]]
    then
    echo \"Detailed Metrics\": [{ }] }]
    fi
    done
    echo "}}"


    proxystatus:

    lsfproxyd service status:
    
    QUERY: ENABLED
    SUBMISSION: ENABLED
    OTHER: ENABLED

    lsfproxyd host status:
    HOSTNAME: saturn
    STATUS: CONNECTED
    PID: 1592462
    TOKEN_LIMIT TOKENS_IN_USE_TOTAL TOKENS_IN_USE_PRIVILEGED
    QUERY 1 742 242
    SUBMISSION 1 463 263
    OTHER 1 1 1

    lsfproxyd started: Thu Feb 16 14:03:15
    End time of last sample period: Fri Feb 17 06:41:15
    Sample period: 60 Seconds
    ------------------------------------------------------------------------------
    Metrics Current Last Max Avg
    ------------------------------------------------------------------------------
    Requests
    Query 123 300 300 300
    Submission 24 900 900 900
    Other 0 0 0 0
    Rejected
    Query 0 0 1 0
    Submission 0 0 0 0
    Other 0 0 0 0
    Blocked 0 0 0 0
    Error 0 0 0 0

    lsfproxyd host status:
    HOSTNAME: jupiter
    STATUS: CONNECTED
    PID: 543248
    TOKEN_LIMIT TOKENS_IN_USE_TOTAL TOKENS_IN_USE_PRIVILEGED
    QUERY 1 242 24
    SUBMISSION 1 263 63
    OTHER 1 0 0

    lsfproxyd started: Thu Feb 16 14:03:16
    End time of last sample period: Fri Feb 17 06:41:16
    Sample period: 60 Seconds
    ------------------------------------------------------------------------------
    Metrics Current Last Max Avg
    ------------------------------------------------------------------------------
    Requests
    Query 0 400 400 400
    Submission 0 800 800 800
    Other 0 0 0 0
    Rejected
    Query 0 0 0 0
    Submission 0 0 0 0
    Other 0 0 0 0
    Blocked 0 0 0 0
    Error 0 0 0 0

    lsfproxyd host status:
    HOSTNAME: pluto
    STATUS: DISCONNECTED
    PID: -
    TOKEN_LIMIT TOKENS_IN_USE_TOTAL TOKENS_IN_USE_PRIVILEGED
    QUERY - - -
    SUBMISSION - - -
    OTHER - - -

    No metric data available.


    json output:

    {
    
    "Services": {
    "QUERY": "ENABLED",
    "SUBMISSION": "ENABLED",
    "OTHER": "ENABLED"
    },
    "HostData": {
    "HOST-saturn": [{
    "Summary Metrics": [{
    "QUERY": {"LIMIT": "1","TOTAL": "742","PRIVILEGED": "242"},
    "SUBMISSION": {"LIMIT": "1","TOTAL": "742","PRIVILEGED": "242"},
    "OTHER": {"LIMIT": "1","TOTAL": "742","PRIVILEGED": "242"}}],
    "Service Summary": [{
    "Status": "CONNECTED",
    "PID": "1592462",
    "StartTime": "Thu Feb 16 14:03:15 ",
    "SampleTime": "Fri Feb 17 06:41:15",
    "SamplePeriod": "60 Seconds"
    }],
    "Detailed Metrics": [{
    "Request.Query": {"Current": "123","Last": "300","Max": "300","Avg": "300"},
    "Request.Submission": {"Current": "24","Last": "900","Max": "900","Avg": "900"},
    "Request.Other": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Rejected.Query": {"Current": "","Last": "","Max": "","Avg": ""},
    "Rejected.Submission": {"Current": "0","Last": "0","Max": "x1","Avg": "0"},
    "Rejected.Other": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Blocked": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Error": {"Current": "0","Last": "0","Max": "0","Avg": "0"} }] }]
    ,
    "HOST-jupiter": [{
    "Summary Metrics": [{
    "QUERY": {"LIMIT": "1","TOTAL": "242","PRIVILEGED": "24"},
    "SUBMISSION": {"LIMIT": "1","TOTAL": "242","PRIVILEGED": "24"},
    "OTHER": {"LIMIT": "1","TOTAL": "242","PRIVILEGED": "24"}}],
    "Service Summary": [{
    "Status": "CONNECTED",
    "PID": "543248",
    "StartTime": "Thu Feb 16 14:03:16 ",
    "SampleTime": "Fri Feb 17 06:41:16",
    "SamplePeriod": "60 Seconds"
    }],
    "Detailed Metrics": [{
    "Request.Query": {"Current": "0","Last": "400","Max": "400","Avg": "400"},
    "Request.Submission": {"Current": "0","Last": "800","Max": "800","Avg": "800"},
    "Request.Other": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Rejected.Query": {"Current": "","Last": "","Max": "","Avg": ""},
    "Rejected.Submission": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Rejected.Other": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Blocked": {"Current": "0","Last": "0","Max": "0","Avg": "0"},
    "Error": {"Current": "0","Last": "0","Max": "0","Avg": "0"} }] }]
    ,
    "HOST-pluto": [{
    "Summary Metrics": [{
    "QUERY": {"LIMIT": "-","TOTAL": "-","PRIVILEGED": "-"},
    "SUBMISSION": {"LIMIT": "-","TOTAL": "-","PRIVILEGED": "-"},
    "OTHER": {"LIMIT": "-","TOTAL": "-","PRIVILEGED": "-"}}],
    "Detailed Metrics": [{ }] }]
    }}