I am trying to do a dynamic inventory of machines (workstations) on a very large company with tons of security, firewalls, ports disabled, etc.
The only thing I've seen available across the property is the availability of ping so I think this is the best way to approach for a solution.
I was thinking about doing a batch script from my windows workstation but knowing nothing about batch scripts will add a learning curve period to my project.
What I have experience with is PHP and I know there's a function to call system functions. I googled it an several people were having problems getting a valid output from the system function.
My concrete question would be, how would you approach a solution for this having:
- a txt list of all the machine names
- ping availability
- php server ready to go and configurable in case I need to turn off the safe mode or anything like that.
Thanks for your feedback.