I am trying to make a script that can pick up all the ip's and mac-adresses for the ip's at the local network at work, and I am kind of new to programming.
In the first row am I trying to make a script that picks up all the ip's and mac's and get them printed in a xml file, but in the end do I want to make a WOL script for all the pc's I have picked up the mac's for.
I have also been told we want as much as possible of the code in functions, so other scripts can be placed "upon" this one as easy as possible.
I have tried arp -a and alot of other things, but I always come short in ip's and mac addresses, since I do expect max 100 ip's, but get around 10 when I use arp -a...
So if anyone have any tips related to this, I would be more than happy to read it!
Thanks!
In the first row am I trying to make a script that picks up all the ip's and mac's and get them printed in a xml file, but in the end do I want to make a WOL script for all the pc's I have picked up the mac's for.
I have also been told we want as much as possible of the code in functions, so other scripts can be placed "upon" this one as easy as possible.
I have tried arp -a and alot of other things, but I always come short in ip's and mac addresses, since I do expect max 100 ip's, but get around 10 when I use arp -a...
So if anyone have any tips related to this, I would be more than happy to read it!
Thanks!