i hope someone with a little more Windows commandline experience can help me out. I'm using the wincheck_counter.exe to monitor several performance counters on Windowsservers. I rarely have any trouble getting this to work, but this one is starting to tick me off because i can't get it to work. In the performance monitor on a Windwos 2008 box i have this counter:
TEAM : lan - Intel(R) PRO 1000 PT Quad Port LP Server Adapter
This is a teamed NIC. There are 3 others: TEAM : lan - Intel(R) PRO 1000 PT Quad Port LP Server Adapter _2 (and so forth)
I want to monitor this nic as follows:
wincheck_counter.exe -C "\Network Interface" -P "Bytes Sent/sec" -I "TEAM : lan - Intel[R] PRO 1000 PT Quad Port LP Server Adapter" -f "%.f Bytes per second"
And this is not working. The probleem seems to be in the name of the Instance (-I "TEAM : lan..), and there are quite a few spaces and special characters there. Can anyone tell me how need to escape these characters?