Page 1 of 1

Get single attribute

Posted: Tue Jan 17, 2017 6:58 pm
by aseques
Hi, I've some ssh script that connects to a mikrotik, and I'd like to get the board model, when logged I would do a
/system resource print
, but that will print also the uptime, version, etc..
I was expecting that
/system resource get board-name
would work for single attributes, but it does nothing.

What would be the proper method to print only this item on a ssh session?

Re: Get single attribute

Posted: Tue Jan 17, 2017 8:02 pm
by blingblouw
Try :put [system router get model]

Re: Get single attribute

Posted: Wed Jan 18, 2017 10:36 am
by aseques
Thanks a lot, it worked :D