Community discussions

MikroTik App
 
nhcxl
just joined
Topic Author
Posts: 7
Joined: Thu Nov 22, 2007 3:19 pm

How can I get all array element that is match my condition

Sat Nov 24, 2007 9:41 am

Why I use hdd_size only return the size of first hdd?But I hope get all size of hdd ,Could u help me?
code of hdd_size:
oid(concatenate("iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.",
array_element(
oid_column("iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageIndex", 600),
array_find(
oid_column("iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageType", 600),
"iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTypes.hrStorageFixedDisk"
))))

Who is online

Users browsing this forum: No registered users and 7 guests