Yes! of course… I think the better way is change the variable on label. Right click on device → appearance → at the general tab you should to see a field “Label”. Change the [Device.Name] to use the OID function [oid(“iso.org.dod.internet.mgmt.mib-2.system.sysName.0”)]
thank you very much for your help.. I delete [Device.Name] at label field and i write only [oid(“iso.org.dod.internet.mgmt.mib-2.system.sysName.0”)] but it did not work…
Another alternative IF you are using ROS login. In label appearance use ros_command function: Identity: [ros_command(“:put [/system identity get name]”)]
Hi, both options on the dude monitor works good, this one you say and with “oid” option too i got correct device name, but i have a detail when i try to send a notification with these, for example email or telegram dont work i get the “command line parameter” in the notification message, so i have to use “Device.name” variable in notification it results as “device ip address” thats the problem.
my question, is there a way to get the value with function and put it on Device name field? i think it would be awesome thanks!!
I have written a script that takes the name of the devices discovered in dude (the IP) and contrasts them with the devices that appear in the list of neigbour, if it locates them, it replaces its name with the value of identity.
The problem is that devices that do not appear in neigbor list (such as ubiquiti’s edgeswitch) will not be updated
hope to be helpful
:local neighbor;
:foreach device in=[/dude device find] do={
:set neighbor [/ip neighbor find address=[/dude device get $device name]];
if ($neighbor != "") do={
/dude device set $device name=[/ip neighbor get $neighbor value-name=identity];
}
}
I have tested the script and it works great. is there a way in pulling the IP address as well to the Identity so that the dude update this automatically?
We use over 250 OVPN connections and they change constantly if there is a lot of disconnections.
Displaying the device identity in RouterOS is not happening.
The above instructions for Appearance only affect the Map diagram. How can the Device Identities be shown in the Device list under the RouterOS tab view?
I would like this as well. The map can get a lot cluttered and we use the device list a lot. Just looking 1.5k of IPs and not knowing the name of the devices is horrible.