Hi all,
Where can I find all commands to get menu contents? I am using these code from access to getting hosts
$util->setMenu('/ip hotspot host');
foreach ($util->getAll() as $item) {
echo 'IP: ', $item->getProperty('address'),
' MAC: ', $item->getProperty('mac-address'),
"<br/>";
}
Is there any documentation for getting other tabs and their properties?
another example for user:
$util->setMenu('/ip hotspot user');
foreach ($util->getAll() as $item) {
echo 'name: ', $item->getProperty('name'),
' mac-address: ', $item->getProperty('mac-address'),
' profile: ', $item->getProperty('profile'),
' uptime: ', $item->getProperty('uptime'),
"<br/>";
}
I want to get know all the $util->setMenu commands like : “/ip hotspot user” and their property names.
I am using PEAR2_Net_RouterOS.
Thanks