PDA

View Full Version : Need support for getting snmwalk output in excel



Hitesh_Kumar
May 26th, 2015, 07:48 AM
Hello Guys


I am a newbie in linux and getting a issue in creating a new script in which i need to export my snmp walk output in excel file with name change as "CPU Utlisation is 72".


below mentioned is the script for reference and snmp walk output.
while true ; do

echo -n `date --rfc-3339=seconds`","

snmpget -v2c -Cf -c public 172.16.13.10 .1.3.6.1.4.1.2636.3.39.1.12.1.1.1.5.0

sleep 10




awk '{if (Gauge32: >0) print $17}' OFS="," > /home/administrator/Documents/sample.xls

done




Br
Hitesh