But when I put /interface wireless registration-table get [0] signal-strength it says bad command name 0… I am little confused…help me a little bit more
You can’t use id numbers printed from console, ID is internal identification number that is returned by find command. So basically you have to find an item and then get it’s parameters.
That’s because your find command is incorrect and invalid - you need to give it parameters to find items by. I don’t have any devices with wireless interfaces, so here an example of fetching the MTU of an ethernet interface:
:put [/interface ethernet get [/interface ethernet find name="ether1"] mtu]
Though you can use numeric indices in scripts, you just must not enclose them in square brackets, as square brackets indicate commands. I believe you initially tried:
:put /interface wireless registration-table get [0] signal-strength
Try this instead:
put /interface wireless registration-table get 0 signal-strength
Of course you’re still better off learning how to retrieve items via find as you won’t always be able to rely on hard-coding an ID.