Return value of /ppp secret find command

Hi,

I’m using a ssh connection to retrieve some values from my mikrotik router.
If i’m asking for a specific pppoe secret e.g.:

:put [/ppp secret find name="myPPPOEClient"]

Now i’m trying to interprete the result i get from my SSH client. That can be either a error message or the value, that “find” command returns.
Of course i now have to distinguish between those two.
The result i get looks like “*2” or “*9e” or “*3d” if the secret is already registered.
Is this a scheme that i can check for? What do those (hex?)values stand for?

mfg
Simon

Find command - Returns list of internal numbers for items that are matched by given expression:

To get values, you can use get+find command:

:put [/ppp secret get [/ppp secret find name=“myPPPOEClient”]]


of “if” operator:

:if ([:len [/ppp secret find name=“myPPPOEClient”]]>0) do={:put “Do something”}