You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i in $(echo "select hostname, snmp_sysName, substring_index(substring_index(replace(snmp_sysDescr, '\r', ''), '\n', 1),',',3) as descr from host where snmp_version=2 and (snmp_sysDescr like 'Cisco%' or snmp_sysDescr like 'Juniper%') order by snmp_sysName;"|mysql -s cacti); do
h="$(echo "$i"|cut -d" " -f1)"
n="$(echo "$i"|cut -d" " -f2)"
o="$(echo "$i"|cut -d" " -f3)"
if [ "$(echo "$o"|cut -c1-11)" = "Cisco NX-OS" ]; then