Script that communicates with Server

twyzgolik

New Member
Jan 2, 2024
4
0
1
Hey im pretty new to Proxmox and i got a Excercise from my trainer to build up a connection between out Company-Notebook and our new Server.
The script should check all Versions of the open source software we use. Then it pulls the current Version thats established in the server, compares it and if theres a new Version it should update the Software on every PC.
My question right now is: Where do i place the script? Wich ports should i use? What should i observe with this plan?
I got skills in Python and know how to code, but im at the Beginning of my Traineeship and i know pretty much nothing about Network configuration. I can barely describe what a port is and how it really works.
I know my Question is a little Tumbled. Ill see if you guys understand my Assignment, if not i gonna figure the right question out of your answers and i post a newer one thats more precise.
 
Hi,
i assume the server runs proxmox VE ?
all Versions of the open source software we use
Does the assignment mean every open source software on proxmox VE or also running on the VMs ?
 
Last edited:
Yes we use ProxmoxVE. There are a few VM's (mail, git, main) also one named Windows-Server. The WinServer were the only stopped VM, its also the only one we currently dont use, so i assume that is my workspace for the task.

I dont got much specifications, he told me i should finish the communication between Server and Client.
The step i need to finish says the script should pull a JSON file, the data from the file must appear on the CL.

I hope the things i mentioned is enough to help me out
Greetings T
 
all Versions of the open source software we use
This is difficult to interpret, because all versions of every open source software you use is a lot.



Therefore i assume the assignment is about updating the software used in the VMs (mail, git, main (provided they are open source))?

you could try to write a script which does:
1. Connect to the vms via ssh
2. fetch the current versions
3. compare the versions to old versions
4. update if necessary
 
Yay the last part were right! But on the rest i gave misinformations. We changed all of our software into opensource software. We use RocketChat, Joplin and Thunderbird as example.
When the project got further the goal is exactly what u described. The server checks if there are new Versions, if yes it installs it on a VM to check if everything runs correctly. If yes > Update.

But my original question is following: How or wich Ports do i use and where do i place my script so that the server and client can work with it. Iam stuck at the realasation of this. Everytime i try to find something about it i only get way to specific questions and answers.

We got a static IP Adress, i dont even know in this moment how to Access the Server. I mean i got every right i need, but when im in the Datacenter there are the VM's i listet, everyones IP is different (the last 3 digits) and there are no Ports opened.
I just need to know the basics. Where or wich Port do i open and Wich IP should i use?

Iam really sorry if i bother you and your time with such simple questions.
 
This sounds more like an enterprise-app related task. I'm not sure if a self coded sript does handle the checking and updating process that well here. There're several applications which do check servers/clients versions of installed software, scans for CVEs and sometimes even provide update capabilities.

So what is the context of the whole request... how is this PVE related? Are we talking about a huge enterprise landscape?
 
My trainee planed the project so far, the script should handle a smaller mid sized company, maximum will be 30 connected notebooks.

The request's PVE related because were using PVE, every task runs via virutlized Proxmox.
 
The server checks if there are new Versions, if yes it installs it on a VM to check if everything runs correctly. If yes > Update.
This sounds like a basic ansible project to me, but you could also just write a shell script.
But my original question is following: How or wich Ports do i use and where do i place my script so that the server and client can work with it. Iam stuck at the realasation of this. Everytime i try to find something about it i only get way to specific questions and answers.
sounds like your are a bit confused.
If your enter the proxmox VE Datacenter, you are entering the Server, this could be the place where you could store the ansible/shell scripts.
If all of your VMs are running linux, they normally have a package manager, so you can just use the package manager to update.
As i already mentioned, it is very common to do administrative work on servers/VMs via SSH [0]. Therefore your vms should run a ssh server (software like openssh, wireguard ...) and the port 22 should be opened.

[0] https://en.wikipedia.org/wiki/Secure_Shell
 
  • Like
Reactions: cRaZy-bisCuiT

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!