I am using snmpget in order to get the description of a specific switch port. How could I read each not null value? I.E. do a "for-each" sort of operation on the set of IF-MIB::ifDescr values?
You want to use the
I don't have anything to query, but you could read each line and filter on the text with something sort of like the following in the shell: