Sample Header Ad - 728x90

parse snmpwalk output to array

0 votes
3 answers
2762 views
Im trying to get network interfaces by doing a snmpwalk, but cannot separate in array, the variable stores all in element 0 ifname=(\$(snmpwalk -Oqv -v2c -c comm xxx.xxx.xxx.xxx 1.3.6.1.2.1.2.2.1.2)) This is inside a heredoc How can i do that?
Asked by postrocker (1 rep)
Jul 4, 2016, 06:53 PM
Last activity: Jan 18, 2024, 08:00 AM