how to get pppoe-client ip address at terminal console

My routerboard is RB751G-2HnD, the version of routeros is 5.14.
at terminal console:
[admin@MikroTik] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

0 ;;; default configuration
192.168.11.1/24 192.168.11.0 br0
1 D 223.167.50.67/32 223.167.50.1 cnc
[admin@MikroTik] /ip address>

I can get ip address using “print” command, but if I use “get” command , I can not get the value and no result return.

[admin@MikroTik] /ip address> find interface=cnc
[admin@MikroTik] /ip address> get 1 address
[admin@MikroTik] /ip address> get 1 interface
[admin@MikroTik] /ip address> get 0 address
[admin@MikroTik] /ip address> get 0 address
[admin@MikroTik] /ip address> find interface=br0
[admin@MikroTik] /ip address>

Who knows the reason? How to do that?

no idea what the ‘get’ here supposed to mean, but isn’t it just enough with ‘print’ ?
what is actually your purpose of using the ‘get’ anyway?

qinws, have you solved this problem eventually?

I have the same problem in v5.21.


Spring, for example, it is useful when you need to get the ip address in a script and use it for other purpose.

Solved.

Need to put the result back to console.

:put [/ip address get 1 address]