I am trying to find and gather data from a text file. I will need to do it with a script file. Batch or VBScript. The data in the file is below. What I need to input is one of the ip addresses and what I need outputted is the Unique ID on the same line. So if I pass the script 10.2.126.200 I need it to output 00-00-02-00. Thank you !
Changed the current scope context to 10.2.126.0 scope.
Reservation Address - Unique ID
10.2.126.200 - 00-00-02-00
10.2.126.202 - 00-00-02-02
10.2.126.203 - 00-00-02-03
10.2.126.204 - 00-00-02-04
10.2.126.205 - 00-00-02-05
10.2.126.206 - 00-00-02-06
10.2.126.208 - 00-00-02-08
No of ReservedIPs : 7 in the Scope : 10.2.126.0.
Command completed successfully.