psmcli

command module
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2017 License: MIT Imports: 15 Imported by: 0

README

psmcli

This program implements a simple command line client to the PSM JSON-RPC interface. It's primarily useful for exploration, debugging and making small changes interactively.

psmcli is an open source component provided without any warranty or support. Please read the LICENSE file.

Supported Features

  • All PSM JSON-RPC commands.

  • Tab completion of commands and object types.

  • Parameter value hinting (using tab completion).

  • JSON objects as parameters, using key1=val,key2=val syntax.

  • Authentication, when required by PSM.

  • Printing of the actual executed JSON-RPC command (when run with the -v flag.)

Requirements

A configured and enabled JSON-RPC source.

Example

$ psmcli psm.example.com:3994
psmcli 1.0.0 connected to 172.16.32.8:3994
PSM version 15.0.5.12 at psm.example.com

default@psm # subscriber list 1
{
    "creationTime": "2014-09-15T08:17:08.623Z",
    "expire": "2014-11-01T10:47:16.207Z",
    "hostName": "syno-2",
    "oid": 288230376151715606,
    "parentOid": null,
    "persistent": true,
    "slot": 80,
    "subscriberId": "20:c9:d0:43:0c:95",
    "updateTime": "2014-10-25T10:47:16.207Z"
}

default@psm # object updateByAid subscriber 20:c9:d0:43:0c:95 hostName=newHostName,persistent=false
OK
default@psm # subscriber getByUid 288230376151715606
{
    "creationTime": "2014-09-15T08:17:08.623Z",
    "expire": "2014-11-01T10:47:16.207Z",
    "hostName": "newHostName",
    "oid": 288230376151715606,
    "parentOid": null,
    "persistent": false,
    "slot": 80,
    "subscriberId": "20:c9:d0:43:0c:95",
    "updateTime": "2014-10-25T10:56:44.049Z"
}

default@psm #

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL