Community discussions

MikroTik App
 
Ramirocuei
just joined
Topic Author
Posts: 12
Joined: Sat Jan 25, 2020 10:08 pm

problem to get system identity

Mon Mar 13, 2023 3:23 pm

Hello,

I cant seem to find out why I'm not getting the value of system identity when I execute this command, in turn I get a blank response:

/system identity get name
[EMPTY]

if I use system identity print, I get:
name: MyRouer

ROS version: 6.49.7

I just want to get the identity of the router on a variable to add it to a mail subject but it's not working...
:set mikrotikName [/system identity get name]

Thank you in advance!
Regards
Ramiro
 
User avatar
karlisi
Member
Member
Posts: 437
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: problem to get system identity

Mon Mar 13, 2023 3:58 pm

 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: problem to get system identity

Mon Mar 13, 2023 6:07 pm

What you give with this command on terminal?
/system identity export

You have ALREADY defined the mikrotikName valiable with ":global mikrotikName" or ":local mikrotikName" ???

Show all the script, probably the error is on another place.

Who is online

Users browsing this forum: No registered users and 18 guests