Onprem
The Onprem target is for users that wish to handle their own infrastructure. It is also the default target. While 'ops run' and 'ops pkg load' target the local machine as well the onprem target runs workloads in the background.
Pre-requisites
Image Operations
Create Image
List Images
Delete Image
ops image delete <imagename>
can be used to delete an image from IBM Cloud.
Instance Operations
Create Instance
List Instances
Get Logs for Instance
The onprem target is currentlty the only target that allows you to 'tail' serial logs:
Delete Instance
Stats
The onprem target is currently the only target that allows you to get 'stats' (for now in the form of guest memory utilization).
To get all the stats for all instances:
To get the stats for just one instance:
Volume Operations
Create Volume
List Volumes
Delete Volume
Attach Volume
To dynamically attach/detach volumes at run-time for the onprem target you must be using QMP.
Detach Volume
To dynamically attach/detach volumes at run-time for the onprem target you must be using QMP.
Typically one invokes OPS for single commands and is scriptable and callable from other libraries/projects however a daemon does exist in daemon/ that can be built so that you can run OPS as a daemon that serves up JSON and GRPC.
To build the daemon you'll need to have a handful of protobufs dependencies installed:
Then you can run 'make generate' which generates the protobufs.
Last updated