AIX

 View Only
  • 1.  Convert python script from Linux to Aix

    Posted Mon December 13, 2021 11:59 AM
    Hi,

    I am trying to convert a Python script that runs on a bunch of Linux servers to work on our AIX machines as well. 
    For example, `lsmod` on RHEL is equivalent to `genkex` in AIX. 

    Below are the commands that I am trying to launch. 

    netstat = ['netstat', '-apetul']
    ss = ['ss', '-tp']
    ps = ['ps', '-ewo', '%p,%P,%x,%t,%u,%c,%a']
    lsmod = ['genkex']

    The repo containing the whole script can be found here https://github.com/SekoiaLab/Fastir_Collector_Linux/blob/master/fastIR_collector_linux.py

    ------------------------------
    mille gloerfelt-tarp
    ------------------------------


  • 2.  RE: Convert python script from Linux to Aix

    Posted Tue December 14, 2021 11:15 AM
    So is there a specific problem or error message?

    ------------------------------
    Dave Marquardt
    Sr. Software Engineer
    IBM
    Austin TX
    ------------------------------



  • 3.  RE: Convert python script from Linux to Aix

    Posted Mon December 20, 2021 09:06 AM
    It won't help with option flags, but for command comparison, you can look at Bruce Hamilton's Rosetta Stone for Unix at http://bhami.com/rosetta.html.

    ------------------------------
    Bruce
    ------------------------------