It works fine and desplay for example the number " 195 "
My problem is I need to multiply the output value and devide it etc…
I used this
:global cap [:put ($raw *2) ]
:log info message=$cap
But the outputbecomes in time format " 00:06:30 "
How can I convert the $raw var to a number that can be multiplied?
I’m not expert in scripting .
Thanks
Can you please explain more
If you thought i need a time output no, I need the value to remain a normal number
It’s converting it to a time format after i use :put ( $raw * 2 ) that’s the problem here
Not an answer to your question, but if your variable are to be used in this script only, change form global to local
And your do not need the ; after each line. Only when there are multiple command at same line.
First I need to thank you very much your recent discussion on the forum helped me alot to reach that script above to use snmp to comunicate with my devices
as for the problem in my post it was my mistake to pick 4 lines instead of 3 i managed to solve it thanks alot