after some tweaking i got this to work. requirement to install putty/plink script:

---
@echo off
set SERVER=%1
set USERNAME=%2
set PASSWORD=%3

plink %USERNAME%@%SERVER% -pw "%PASSWORD%" -batch  echo $(($(awk -F . '{print $1}' /proc/uptime)/86400))
---

Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.