for value in oidlist:
result = netsnmp.snmpwalk(value, Version = 2, DestHost = "atyu30", Community = "public")
slist.append(list(result))
print slist
a+b+c ......
[['0.02', '0.11', '0.09']]
[['0.02', '0.11', '0.09'], ['2257']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000'], ['8167452']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000'], ['8167452'], ['5692976']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000'], ['8167452'], ['5692976'], ['48886214', '1557316605', '0', '0']]
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000'], ['8167452'], ['5692976'], ['48886214', '1557316605', '0', '0'], ['48886214', '526525664', '0', '0']]
需要获取最后的那个数组
[['0.02', '0.11', '0.09'], ['2257'], ['1417264'], ['2238014'], ['380180'], ['1642000'], ['8167452'], ['5692976'], ['48886214', '1557316605', '0', '0'], ['48886214', '526525664', '0', '0']]
|