Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Tutorials
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Get First MAC in code rather than by using serVar

Solved959 views5th January 2022FirstMac users
5
Ladan Razeghi [DevOps Enabler]1.08K 17th December 2021 0 Comments

Hi Guys

Can we check FirstMac of online user directly in protocol as soon as they are logged in to Dataminer rather than using SetVar value in visio?

Ladan Razeghi [DevOps Enabler] Selected answer as best 5th January 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Pieter Van Compernolle [SLC] [DevOps Enabler]3.20K Posted 20th December 2021 4 Comments

Hi,

I don't think this is possible at the moment. But maybe you can share your use case and we can think along for alternatives.

For example use 'ComputerName' or 'connection ID' (instead of mac, based on CollaborationStatusEventMessages which are being sent when new connections are done)

Or forcing a default workspace for certain usergroups, so you can continue using 'FirstMac' in Visio.

Pieter Van Compernolle [SLC] [DevOps Enabler] Posted new comment 6th January 2022
Ladan Razeghi [DevOps Enabler] commented 20th December 2021

Hi Pieter
As soon as a user logged in to Dataminer, we need to know what macAddress they are using so we show their desk is connected. This desk connection will allow them to do other actions.
We can do that by creating a button to connect desk on visio and use SetVar to get their MacAddress.
But I was wondering if we can reduce that click button step on visio and show desk is connected automatically inside code.
The reason that we need macAddress is because we use [firstmac] placeholder in visio to find out other connections to other elements/services in visio. I don’t know if we have any placeholder for ‘ComputerName’ or ‘Connection ID’ on visio which can help us out.

Pieter Van Compernolle [SLC] [DevOps Enabler] commented 20th December 2021

Ok I see Ladan,
Maybe you can work with a ‘Execute’ action on page level? This will prevent the need of a button (but will still require your users to open the card where the Visio is linked to, but I guess that is not a problem?).

see https://help.dataminer.services/dataminer/#t=DataMinerUserGuidepart_2visioConfiguring_a_page_to_update_parameters_on_session_variable_changes.htmXREF_66525_11_6_5_configuring&rhsearch=firstmac&rhsyns=
and
https://help.dataminer.services/dataminer/#t=DataMinerUserGuidepart_2visioLinking_a_shape_to_an_Automation_script.htm&rhsearch=firstmac&rhsyns=&rhhlterm=triggervaluechanged&ux=search

For example on ‘Page’ level in your Visio drawing, you can have this shape data:

Execute
Script:MyScript||MacParameter=[FirstMac]|||NoConfirmation|Trigger=ValueChanged

Options
ExecuteSetsOnInit

This config will execute the script with name ‘Myscript’ every time a user opens the card (no click on a button needed) and the mac will be filled in in the script parameter with name ‘MacParameter’.

As an alternative, you can work with a parameter set instead of a script.

Ladan Razeghi [DevOps Enabler] commented 5th January 2022

Thank you Pieter I’ll test this. Our policy is to avoid scripts but I like to test this solution and maybe apply it if I get approval

Pieter Van Compernolle [SLC] [DevOps Enabler] commented 6th January 2022

If you don’t want to use a script, you can also work with a parameter set: see https://help.dataminer.services/dataminer/#t=DataMinerUserGuidepart_2visioConfiguring_a_page_to_update_parameters_on_session_variable_changes.htm

To what was you button linked originally?

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas

Recent questions

Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 Votes
When using the Setter = true attribute, will the copy action always be executed first? 1 Answer | 3 Votes
Multiple Set on Table parameters for DVE’s 1 Answer | 2 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin