So as I start to get used to Pulseway, here's quick script I've made up to change the *Nix/Win computer group on the fly. I haven't yet found an easier way to do it yet. This seems to work for me so hopefully it helps someone else.
I've just created a Script Category and added a version of this script per customer/group in this folder. So create your script edit the Group below to suite your requirements.
Linux/Bash Tab
#!/bin/bash
if [ -f /bin/sed ]
then
cp /etc/pulseway/config.xml /etc/pulseway/config.xml.backup
/bin/sed -i '/<ComputerInformation Name="" Group="/c\<ComputerInformation Name="" Group="My Company - Linux Servers"/>' /etc/pulseway/config.xml
else
echo "Sed not found!"
fi
Windows/Powershell Tab
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name GroupName -Value "My Company - Windows Servers"
Hi,
So as I start to get used to Pulseway, here's quick script I've made up to change the *Nix/Win computer group on the fly. I haven't yet found an easier way to do it yet. This seems to work for me so hopefully it helps someone else.
I've just created a Script Category and added a version of this script per customer/group in this folder. So create your script edit the Group below to suite your requirements.
Linux/Bash Tab
Windows/Powershell Tab
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name GroupName -Value "My Company - Windows Servers"