Is it possible to restart the odata bundle from the command line?

book

Article ID: 206904

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Is it possible to restart the odata bundle from the command line? 

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Resolution

Below are curl commands to stop and start the odata bundle from the command line.

Put in the hostname for your Data Aggregator and the bundle id from your system.

Bundle name is "odata-services.implodata-services.impl"

Note the bundle id may change between upgrades but we don't add bundles often.

You can get the bundle id and see the state change from Resolved (stopped) to Active (started) at http://:8581/system/console/bundles.


curl -u "karaf:DXN3t0ps" -v -X POST http://:8581/system/console/bundles/ -d "action=stop"

curl -u "karaf:DXN3t0ps" -v -X POST http://:8581/system/console/bundles/ -d "action=start"

In versions prior to 20.2.5 the karaf password will be karaf and not DXN3t0ps