put device wlan frequency in dude custom field

Hello
Is there a way to automatically put device wlan frequency in one of custom fields? We have a great problem managing devices frequencies on the mast and must login to every device separately!!!

There are a few good tutorials on this if you do a google search. But the process in general is:

  1. Do a SNMP Walk of the access point to find the oid for the wlan channel/freq you are looking for.
  2. Then create a function to use that oid. Here’s an example for Ubiquiti Airmax channel and frequency:
    if (string_size(oid(“1.2.840.10036.4.5.1.1.5”)), concatenate("Ch: “, oid (“1.2.840.10036.4.5.1.1.5”),”, ", oid (“1.3.6.1.4.1.41112.1.4.1.1.4.1”), “MHz”, "
    "), “”)
  3. Put that function in the label field under Appearance for the device.