#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
import subprocess as sp

obj=sp.Popen('ifconfig',stdin=sp.PIPE,stdout=sp.PIPE,shell=True)
result = obj.communicate()[0]
print(result.decode('utf-8').strip())