[pve-devel] [PATCH pve-manager] pvenode: Add CLI call interface for wake on LAN

Christian Ebner c.ebner at proxmox.com
Thu Jan 17 15:46:46 CET 2019


Adds a CLI call interface to pvenode which allows to wake sleeping nodes in a
cluster via a wake on LAN packet.

pvenode wakeonlan <node>

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 PVE/CLI/pvenode.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 5cd855be..b698d2a5 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -206,6 +206,9 @@ our $cmddef = {
 	    revoke => [ 'PVE::API2::ACME', 'revoke_certificate', [], { node => $nodename }, $upid_exit ],
 	},
     },
+
+    wakeonlan => [ 'PVE::API2::Nodes::Nodeinfo', 'wakeonlan', [ 'node' ], { } ],
+
 };
 
 1;
-- 
2.11.0




More information about the pve-devel mailing list