From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 9763B1FF178 for ; Mon, 1 Dec 2025 13:59:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E89681BF3E; Mon, 1 Dec 2025 13:59:34 +0100 (CET) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Date: Mon, 1 Dec 2025 13:58:57 +0100 Message-ID: <20251201125859.237091-4-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251201125859.237091-1-l.wagner@proxmox.com> References: <20251201125859.237091-1-l.wagner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1764593898574 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.032 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH datacenter-manager 3/4] cli: admin: add 'report' command to generate a system report X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" This adds the 'proxmox-datacenter-manager-admin report' command, which prints the system report to the console. Signed-off-by: Lukas Wagner --- cli/admin/src/main.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cli/admin/src/main.rs b/cli/admin/src/main.rs index 19d387f8..e6a74df2 100644 --- a/cli/admin/src/main.rs +++ b/cli/admin/src/main.rs @@ -32,6 +32,10 @@ fn main() { let cmd_def = CliCommandMap::new() .insert("remote", remotes::cli()) + .insert( + "report", + CliCommand::new(&API_METHOD_GENERATE_SYSTEM_REPORT), + ) .insert("versions", CliCommand::new(&API_METHOD_GET_VERSIONS)); let mut rpcenv = CliEnvironment::new(); @@ -83,3 +87,12 @@ async fn get_versions(verbose: bool, param: Value) -> Result Result<(), anyhow::Error> { + let report = server::api::nodes::report::generate_system_report()?; + print!("{report}"); + + Ok(()) +} -- 2.47.3 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel