[SOLVED] pvesh output changes

alexskysilk

Famous Member
Oct 16, 2015
1,444
245
133
Chatsworth, CA
www.skysilk.com
Within the last month or so pvesh has changed from outputting json to "pretty" output by default. I'm trying to obtain json output again but cant figure out how; pvesh refers to format options:

Code:
# pvesh
USAGE: pvesh set <api_path> [OPTIONS] [FORMAT_OPTIONS]
  Call API PUT on <api_path>.
  <api_path> <string>
             API path.
  -noproxy   <boolean>
             Disable automatic proxying.

but I can find no documentation for options or format options anywhere. help!
 
Code:
pvesh(1)                                                 Proxmox Documentation                                                 pvesh(1)

NAME
       pvesh - shell interface to the Promox VE API

SYNOPSIS
       pvesh [get|set|create|delete|help] [REST API path] [--verbose]

DESCRIPTION
       pvesh provides a shell-like interface to the Proxmox VE REST API, in two different modes:

       interactive
           when called without parameters, pvesh starts an interactive client, where you can navigate in the different parts of the API

       command line
           when started with parameters pvesh will send a command to the corresponding REST url, and will return the JSON formatted
           output

EXAMPLES
       get the list of nodes in my cluster

       pvesh get /nodes

       get a list of available options for the datacenter

       pvesh help cluster/options -v

       set the HTMl5 NoVNC console as the default console for the datacenter

       pvesh set cluster/options -console html5

SEE ALSO
       qm(1), pct(1)

5.2                                                            2018-07-10                                                      pvesh(1)

I may be blind but I dont see it...
 
what does pveversion -v say?
 
root@prox01:~# pveversion
pve-manager/5.2-8/fdf39912 (running kernel: 4.13.13-5-pve)

but I get a
Unknow option: output-format
error

all the time I try to clone a VM

pvesh create /nodes/prox05/qemu/800/clone -newID 603 -full 1 -name TestPC1 -storage Storage -format qcow2 -target prox07
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!