To get other information like snapshot information I do use this line:
Code: Select all
foreach logline in=[/ip accounting snapshot find] do={:log info message="$[/ip accounting snapshot print as-value from=$logline]"}
But for
/system resources the find is missing.
You have the usual print, but not find
Code: Select all
/system resource>
.. -- go up to system
cpu --
export -- Print or save an export script that can be used to restore configuration
get -- Gets value of item's property
irq -- Interrupt Request usage information
monitor -- Monitor CPU and memory usage
pci -- List of all PCI devices
print -- Print values of item properties
usb -- List of all USB devices
Code: Select all
/system resource cpu>
.. -- go up to resource
find -- Find items by value
get -- Gets value of item's property
print -- Print values of item properties