Get List of Environment Variables

Please use the below script to get list of environment variables from the target machine

import os
for param in os.environ.keys():
    print "%s=%s"%(param, os.environ[param])

Sample Output: