Hello,
After playing around with API I have decided to work with ssh, using ssh2_shell. Executing scripts works fine, a bit more tricky is with report, and here is one question for you guys: How I can read Flags from array?
For example, If I wanna get list of users I`ll simple ran
explode(';', conn_exec(":put [/user print as-value]"));
but I can`t see if user is disabled or enabled? Same logic is for everything whenever a need to read flags…
Output would be array
Array (
[0] => .id=*1
[1] => comment=
[2] => name=admin
[3] => group=full
[4] => address=0.0.0.0/0
[5] => .id=*2
[6] => comment=
[7] => name=some_other_user
[8] => group=full
[9] => address=0.0.0.0/0
...
and its easy to deal with it, but I cant figure out how to read flag values..
Thank you.
Strahinja