TacticalSniper
Thread Starter
- Joined
- Sep 21, 2009
- Messages
- 261
Hey all,
I am somewhat of a sysadmin for an organization. We've got about 25 network connected printers. As those are leased from an outsourced company, we have to provide them with print counters each month. Now, I am able to get the counters through SNMPwalk (thanks to HP support forums). However, now I need to automate it even further.
What I am attempting to do is for the batch script to read another file (say, a CSV) with three entries for each machine - IP address, printer model and a printer asset number. When the batch tells SNMPwalk to request counter, I >> output to a log file. However, in this case the log file only shows the counter, without even a corresponding IP.
So, I am trying to set up a batch that would eventually give this output:
Counter for %IP%, %PrinterModel%, %MachineNumber%:
%Counter%.
I am having problem making the batch read from another file (as - well - I do not know how).
Any ideas? I could obviously make the entries manually within the batch, but it's so inelegant it makes me cry.
TIA.
I am somewhat of a sysadmin for an organization. We've got about 25 network connected printers. As those are leased from an outsourced company, we have to provide them with print counters each month. Now, I am able to get the counters through SNMPwalk (thanks to HP support forums). However, now I need to automate it even further.
What I am attempting to do is for the batch script to read another file (say, a CSV) with three entries for each machine - IP address, printer model and a printer asset number. When the batch tells SNMPwalk to request counter, I >> output to a log file. However, in this case the log file only shows the counter, without even a corresponding IP.
So, I am trying to set up a batch that would eventually give this output:
Counter for %IP%, %PrinterModel%, %MachineNumber%:
%Counter%.
I am having problem making the batch read from another file (as - well - I do not know how).
Any ideas? I could obviously make the entries manually within the batch, but it's so inelegant it makes me cry.
TIA.