Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7279

Status tool: Always show each section even if it does not contain information

    Details

    • Type: Improvement
    • Status: QA Backlog
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: tools
    • Labels:
      None

      Description

      When running in offline mode, the status tool will not show the Java details section nor the Disks section. In addition, whether online or offline, the status tool does not show the proxy section if there are no proxy backends.
      On the contrary, sections like local backends and connection handlers always appear, when they do not contain elements, a special message is shown.

      To be consistent across all sections, the status tool could instead:

      • Always print each section whether online or offline,
      • Print a special message when the information is missing. Either "Connect to the server to obtain the <section name> information" or "There are no <section name> configured in the server".

      Example in offline mode:

      $ ./opendj/bin/status --offline
      
      >>>> General details
      
      Version                        : ForgeRock Directory Services 7.0.0-SNAPSHOT
      Installation and instance path : /Users/cyril/deploy/opendj
      Run status                     : Started
      Host name                      : localhost
      Server ID                      : test_server
      Administration port (LDAPS)    : 4444
      Open connections               : 1
      
      
      >>>> Running server Java details
      
      Connect to the server to obtain the JVM information
      
      
      >>>> Connection handlers
      
      Name             : Port : Protocol    : Security        : Status   : Load m1 rate : Load m5 rate
      -----------------:------:-------------:-----------------:----------:--------------:-------------
      HTTPS            : 8443 : HTTP        : SSL             : Enabled  : 0.0          : 0.0
      LDAP             : 1389 : LDAP        : Allows StartTLS : Enabled  : 0.0          : 0.0
      LDAPS            : 1636 : LDAP        : SSL             : Enabled  : 0.0          : 0.0
      LDIF             : -    : LDIF        : -               : Disabled : -            : -
      Replication port : 8989 : Replication : SSL             : Enabled  : -            : -
      SNMP             : 161  : SNMP        : -               : Disabled : -            : -
      
      
      >>>> Local backends
      
      Base DN     : Entries : Replication         : Backend     : Type
      ------------:---------:---------------------:-------------:------
      uid=Monitor : 1       : Normal (0 ms delay) : monitorUser : Other
      uid=admin   : 1       : -                   : rootUser    : Other
      
      
      >>>> Proxy backends
      
      There are no proxy backends configured in this server
      
      
      >>>> Disk space
      
      Connect to the server to obtain disk space information
      

      Example when connecting to the server:

      $ ./opendj/bin/status -h localhost -w password -p 4444 -X
      
      >>>> General details
      
      Version                        : ForgeRock Directory Services 7.0.0-SNAPSHOT
      Installation and instance path : /Users/cyril/deploy/opendj
      Run status                     : Started
      Host name                      : localhost
      Server ID                      : test_server
      Administration port (LDAPS)    : 4444
      Open connections               : 1
      
      
      >>>> Running server Java details
      
      Java version       : 11.0.4
      Java vendor        : AdoptOpenJDK
      JVM available CPUs : 8
      JVM max heap size  : 4 gib
      
      
      >>>> Connection handlers
      
      Name             : Port : Protocol    : Security        : Status   : Load m1 rate : Load m5 rate
      -----------------:------:-------------:-----------------:----------:--------------:-------------
      HTTPS            : 8443 : HTTP        : SSL             : Enabled  : 0.0          : 0.0
      LDAP             : 1389 : LDAP        : Allows StartTLS : Enabled  : 0.0          : 0.0
      LDAPS            : 1636 : LDAP        : SSL             : Enabled  : 0.0          : 0.0
      LDIF             : -    : LDIF        : -               : Disabled : -            : -
      Replication port : 8989 : Replication : SSL             : Enabled  : -            : -
      SNMP             : 161  : SNMP        : -               : Disabled : -            : -
      
      
      >>>> Local backends
      
      Base DN     : Entries : Replication         : Backend     : Type
      ------------:---------:---------------------:-------------:------
      uid=Monitor : 1       : Normal (0 ms delay) : monitorUser : Other
      uid=admin   : 1       : -                   : rootUser    : Other
      
      
      >>>> Proxy backends
      
      There are no proxy backends configured in this server
      
      
      >>>> Disk space
      
      Disk space : State  : Free space
      -----------:--------:-----------
      /          : normal : 625.73 gb
      

        Attachments

          Activity

            People

            • Assignee:
              cyril.quinton Cyril Quinton
              Reporter:
              cyril.quinton Cyril Quinton
              Dev Assignee:
              Cyril Quinton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: