The best way to draw customers

Hello, I’m good at writing script for the console microtik, however as it has many ways to come here to take a doubt the most professionaI in the area, so I’ll explain a little of what I want to do.

I want to make a connection via ssh with the exec channel and take all clients registered field name, profile, cometary for a program I’m doing control, for employees of a company then has to know how to do but do not know what would the best way to extract the contents, as quickly and compactly,

I know that this returns me all I need “/ ip hotspot user print detail” but I have to apply too much RegExp to remove what really matters to me, so without doing much processing has anything better than that? :confused:

foreach i in=[/ip hotspot user find] do={put [(“name:” . [/ip hotspot user get $i name;] .“-profile:”. [/ip hotspot user get $i profile] . “|Comment:” . [/ip hotspot user get $i comment])]}
and it consumes too much processing ?


Thanks for anything! :smiley: