Community discussions

MikroTik App
 
aseques
newbie
Topic Author
Posts: 26
Joined: Fri Oct 10, 2014 10:04 am

Get single attribute

Tue Jan 17, 2017 6:58 pm

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?
 
blingblouw
Member
Member
Posts: 345
Joined: Wed Aug 25, 2010 9:43 am

Re: Get single attribute

Tue Jan 17, 2017 8:02 pm

Try :put [system router get model]
 
aseques
newbie
Topic Author
Posts: 26
Joined: Fri Oct 10, 2014 10:04 am

Re: Get single attribute

Wed Jan 18, 2017 10:36 am

Thanks a lot, it worked :D