Forum Discussion

Kelemvor's avatar
Kelemvor
Icon for Expert rankExpert
2 years ago

Running a Perl script on an AIX box over SSH?

Hi, We have an old monitoring system that we’re trying to decommission and move everything into LM.  The current system connects to an AIX server using an SSH Key, and then runs a perl script that’s...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Yep, this is totally doable. You can use Expect or Jsch. Once you ssh into the device, you’ll execute the command and fetch the output that’s printed to screen (hopefully your existing script prints its output to screen and doesn’t take super long to run). 

    Once you have the output, you’ll need to work with it to get it into a format that LM needs in order to parse it properly. What kind of data? Single instance or multi-instance? Numeric data? Blobs of text? List of events?