Python code below use zip built-in function to display the list and display the sequence. The code below just display the list, but using subprocess or fabric module it can be expanded to connect or do remote tasks on the specified servers. Here's an example code on how to use zip built-in function. def main_func(): xservers = ["WebServer", "MailServer", "MonitoringServer", "KibanaServer", "DatabaseServer", "TestServer", "NetboxServer"] xips = ["192.168.25.1", "192.168.25.2", "192.168.25.3", "192.168.25.4", "192.168.25.5", "192.168.25.6", "192.168.25.7"] for indexx, itemx in enumerate(zip(xservers, xips), start=1): print(indexx, itemx[0], "=", itemx[1], " ==> VM with platform services") if __name__ == "__main__": main_func() itemx[0] ===> refers to xservers itemx[1...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.