AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Convert python script from Linux to Aix

    Posted 12/13/21 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 12/14/21 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 12/20/21 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
    ------------------------------