maximo1970
ISP
I'm trying to gather host information on a number of Windows Boxes. The information source is "ipconfig /all". I want to populate a MySQL DataBase with the following information :-
Host Name . . . . . . . . . . . . : servername
Ethernet adapter Local Area Connection: (Only the section Local Area Connection)
IP Address. . . . . . . . . . . . : 192.168.1.200
All of the servers has six for seven NIC's installed, I can display the information I need but can't seem to work out how to collect it in order and then place it into a table. So the output I'm looking for is :-
servername, LAN, 192.168.1.200
servername, SWITCH1, 192.168.1.210
servername, SWITCH2, 192.168.1.220
Thanks for your help.
Host Name . . . . . . . . . . . . : servername
Ethernet adapter Local Area Connection: (Only the section Local Area Connection)
IP Address. . . . . . . . . . . . : 192.168.1.200
All of the servers has six for seven NIC's installed, I can display the information I need but can't seem to work out how to collect it in order and then place it into a table. So the output I'm looking for is :-
servername, LAN, 192.168.1.200
servername, SWITCH1, 192.168.1.210
servername, SWITCH2, 192.168.1.220
Thanks for your help.