Search Results

Search: Posts Made By: leshy93
1,324
Posted By RudiC
If you carefully scrutinize my proposal and your...
If you carefully scrutinize my proposal and your statement leading to the error msg, you might find the mistake...
1,324
Posted By apmcd47
How about: currentcyan=$(snmpwalk -v1 - c...
How about:

currentcyan=$(snmpwalk -v1 - c public 192.168.0.20 1.3.6.1.2.1.43.11.1.1.9.1.1)
currentcyan=${currentcyan##* }
maxcyan=$(snmpwalk -v1 -c public 192.168.0.20...
1,324
Posted By RudiC
Assuming a recent bash: try using an array: ...
Assuming a recent bash: try using an array:
ARR=( $(snmpwalk -v1 -c public 192.168.0.20 1.3.6.1.2.1.43.11.1.1.8.1.1) )
echo ${ARR[${#ARR[@]}-1]}
1800

EDIT: or
echo ${ARR[-1]}
1800
1,324
Posted By RudiC
Welcome to the forum. It's usually good...
Welcome to the forum.

It's usually good habit to also post the OS and shell versions of your system, the tools you prefer to achieve your goals, and, on top of the input samples, also some desired...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy