Variables for clipboard insert

Implemented

Variables for clipboard insert

avatar

Hey guys,

i'm using RDM for programming switches.

I have a template in my clipboard.

As the IP-address and hostname is always different on each device, is there a method for creating a popup message and ask a few things like hostname and ip address (using variables and replace it in the template)?

All Comments (7)

avatar

Hi Andreas Mayer,

I'm not sure I quite understand what you are asking for. When/on which action do you want this popup to show up? What's the exact use case? Step by step?

Best regards,

Xavier Fortin

avatar

Hi Xavier,

sorry for my description.

  • I connect to all of my switches with SSH
  • paste my config, f.e.
conf t
hostname {var_hostname}
vlan 99
  name Management
int vlan 99
  ip add {var_ip}/24
  desc Managemnt


  • by inserting my config/template from clipboard there should be recognize there are variables to ask - {var_hostname} and {var_ip} - with a pop-up message
  • now i can enter my hostname and ip address in the pop-up message
  • the clipboard insert should be replaced with the variables from the pop-up messages


Is this possible?

Hope this makes it a little bit clearer.

Andy

avatar

Hi,

We already have a feature called Macro that allows creating text to be pasted into entries (quite like your "config" example). And it does support variables, but those variables are resolved by RDM based on the session it is being executed on (for instance $HOST$ would resolve to the hostname of the entry, $USERNAME$ to the username of the entry, etc.)

We do not support prompting for variables though. If that's really what you need, it is unfortunately not supported at the moment, but we will keep it in mind and see if we can't investigate this later on.

Best regards,

Xavier Fortin

avatar

Thanks for explaining but it is not usable for me.

I have 10 entries/objects, each with SSH to the same host (jumphost) with the same user.

Why 10? Because i have 10 different "after connect commands" to different serial ports on my jumphost.

I think RDM is a great product but with enhancements like this you can be more innovative compared to your compeditors.

Hope this helps for product management..

avatar

You can implement a fuction, when a variable in macro not existing, they ask for it.

avatar

As mentioned, we will keep this in mind. We'll post back here if we have more information.

Best regards,

Xavier Fortin

avatar

Hello,

It is now possible to add parameters to a typing macro.


If there is anything else don't hesitate to ask.
Best regards,

Michel Lambert

Screenshot 2023-11-01 at 4.05.08 PM.png