Build transformer with execute.command()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Build transformer with execute.command()

L2 Linker

Hello,

I'm trying to build a transformer that given a IP gives back the reverse dns. However, it seems that using commands in transformers is not allowed. Am I wrong?

 

2 REPLIES 2

L3 Networker

Can you provide some more context and examples so we can better understand the issue? In general, you can use a transformer in an automation script and then save the object under a new variable. Once completed you can run the command with the transformed data object. Just so that you understand the term transform is used to convert data into other types or forms such as strip() and Regex. You can run the command with the data. 

PCSAE

Hello Michael,

Automation scripts can be tagged as "Transformer". This allows you to use them as transformer inside "filters and transformers" when a variable is set. 

My problem is that I can perfectly create a transformer and make it work, however when I try to use an "execute.command" like Dig (execute.command("Dig", ....)) inside the automation tagged with "Transformer", the transformer doesn't work. 

The main question is why is not working? Is not allowed to use "execute.command" in an automation used as a "transformer"?

  • 1083 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!