psm jcs check-health

Use this command to see health monitoring data for an Oracle Java Cloud Service instance. Health monitoring metrics are updated on an hourly basis. As a result, the metrics might be slightly out-of-date until the next hourly refresh.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm jcs check-health -s|--service-name serviceName
     [-of|--output-format html|json|short]   

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name serviceName Name of the Oracle Java Cloud Service instance.
-of|--output-format html|json|short (Optional) Output format of the command’s response:

Accepted values: json, html, short

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Example

$ psm jcs check-health -s ExampleInstance -of json
{
    "timestamp":"2018-03-29T06:04:22.847+00:00",
    "collectionTime":"2018-05-25T11:33:53.190+00:00",
    "serviceId":xxxxxx,
    "status":"UP",
    "domainName":"MyIdentityDomain",
    "components":{
        "OTD":{
            "serviceId":xxxxxx,
            "vmInstances":{
                "ExampleInstance-lb-1":{
                    "timestamp":"2018-03-29T06:04:50.953+00:00",
                    "collectionTime":"2018-05-25T11:33:48.872+00:00",
                    "status":"UP",
                    "servers":{
                        "ExampleInstance-lb-1":{
                            "timestamp":"2018-03-29T06:22:18.746+00:00",
                            "collectionTime":"2018-05-25T11:33:53.194+00:00",
                            "status":"UP",
                            "serverId":xxxxxx,
                            "serverName":"ExampleInstance",
                            "healthData":{
                                "upsince":{
                                    "unit":"ms",
                                    "value":"2018-05-09T13:53:41.000+00:00",
                                    "displayName":"Server Up since"
                                }
                            },
                            "serverType":"OTD_SERVER",
                            "statusMessage":"Running"
                        }
                    },
                    "sub_status":"UP",
                    "hostName":"ExampleInstance",
                    "label":"ExampleInstance lb 1",
                    "vmId":xxxxx,
                    "healthData":{
                        "VMCpuUtil":{
                            "unit":"%",
                            "value":"1",
                            "displayName":"VM CPU Usage"
                        },
                        "VMmemory":{
                            "unit":"MB",
                            "value":"280",
                            "displayName":"VM Free Memory"
                        }
                    },
                    "statusMessage":"Running"
                }
            },
            "componentId":xxxxxx,
            "componentType":"OTD"
        },
        "WLS":{
            "timestamp":"2018-03-27T04:59:07.250+00:00",
            "collectionTime":"2018-05-25T11:33:53.192+00:00",
            "serviceId":xxxxxx,
            "status":"UP",
            "vmInstances":{
                "ExampleInstance-wls-1":{
                    "timestamp":"2018-03-27T06:15:51.347+00:00",
                    "collectionTime":"2018-05-25T11:33:48.873+00:00",
                    "status":"UP",
                    "servers":{
                        "ExampleInstance_adminserver":{
                            "timestamp":"2018-03-27T04:59:06.202+00:00",
                            "collectionTime":"2018-05-25T11:33:53.195+00:00",
                            "status":"UP",
                            "serverId":xxxxxx,
                            "serverName":"ExampleInstance_adminserver",
                            "healthData":{
                                "upsince":{
                                    "unit":"ms",
                                    "value":"2018-05-09T13:55:16.000+00:00",
                                    "displayName":"Server Up since"
                                },
                                "heapmax":{
                                    "unit":"MB",
                                    "value":"1365.5",
                                    "displayName":"Max memory"
                                },
                                "heapfree":{
                                    "unit":"MB",
                                    "value":"682.75",
                                    "displayName":"Free memory"
                                }
                            },
                            "serverType":"ADMIN",
                            "statusMessage":"Running"
                        },
                        "ExampleInstance_server_1":{
                            "timestamp":"2018-03-27T04:59:07.249+00:00",
                            "collectionTime":"2018-05-25T11:33:53.196+00:00",
                            "status":"UP",
                            "serverId":xxxxxx,
                            "serverName":"ExampleInstance",
                            "healthData":{
                                "upsince":{
                                    "unit":"ms",
                                    "value":"2018-05-09T13:56:37.000+00:00",
                                    "displayName":"Server Up since"
                                },
                                "heapmax":{
                                    "unit":"MB",
                                    "value":"1820.5",
                                    "displayName":"Max memory"
                                },
                                "heapfree":{
                                    "unit":"MB",
                                    "value":"1583.83",
                                    "displayName":"Free memory"
                                }
                            },
                            "serverType":"MS",
                            "statusMessage":"Running"
                        }
                    },
                    "sub_status":"UP",
                    "hostName":"ExampleInstance",
                    "label":"ExampleInstance wls 1",
                    "vmId":xxxxxx,
                    "healthData":{
                        "VMCpuUtil":{
                            "unit":"%",
                            "value":"0",
                            "displayName":"VM CPU Usage"
                        },
                        "VMmemory":{
                            "unit":"MB",
                            "value":"3602",
                            "displayName":"VM Free Memory"
                        }
                    },
                    "statusMessage":"Running"
                }
            },
            "componentId":xxxxxx,
            "componentType":"WLS",
            "statusMessage":"Running"
        }
    },
    "dataQuality":{
        "message":"Health data complete"
    },
    "serviceType":"JaaS",
    "serviceName":"ExampleInstance",
    "statusMessage":"Running"
}