network interface naming on windows machines

Kevin Keane subscription at kkeane.com
Fri Aug 28 05:44:17 CEST 2009


First of all, determine what exactly you are trying to measure. I don't 
think that the custom names always translate 1:1 to physical devices. 
For instance, a VPN would show up as a separate network connection, but 
go over the same physical device.

Maybe you can write a short batch file that automatically generates the 
configuration for each machine? Adding to your typeperf command:

typeperf -qx | findstr /C:"Network Interface" | findstr /C:"Bytes Total"

Then you have to extract everything between the ( ) - I can't think off 
the top of my head how to do that (in Linux, you'd probably use sed, but 
I can't think of the corresponding Windows command).

It may be even easier using Powershell. In fact, Powershell can directly 
access WMI, which would allow you to directly get a list of all instances.

Anthony Montibello wrote:
> HI Arlen,
>  
> Look into setting up your own custom performance counters via 
> Microsoft, Technet or MSDN (or google it)
>  
> I do not have any links to how to do that, however I have spoken with 
> NC_NEt users that have custom counters for different reasons.
> I am sure a support call to microsoft will be able to assist you in this.
>  
>  
> Tony (Author of NC_NEt - check_nt compatible Windows plugin)
>  
>
>
>  
> On Thu, Aug 27, 2009 at 8:11 AM, Arlen Drina <arlytex at gmail.com 
> <mailto:arlytex at gmail.com>> wrote:
>
>     For monitoring network interfaces activitties on windows machines I am
>     using for example
>
>     ./check_nt -H ggg.ggg.sss.sff -p 12489 -v COUNTER -l  "\\Network
>     Interface(HP NC373i Multifunction Gigabit Server Adapter _2 - Teefer2
>     Miniport)\\Bytes Total/sec"
>
>     where is
>
>      "\\Network Interface(HP NC373i Multifunction Gigabit Server Adapter
>     _2 - Teefer2 Miniport)\\Bytes Total/sec"
>
>     value I got using
>
>     typeperf -qx in windows console ( it list all counter and then I look
>     for network related parameter )
>
>     As different machines has different network cards, and that means
>     different above value, is there any way to enter in above command
>     intreface name I see when I open "Network connections" and there are
>     some custom names "office1", "external_net" etc.
>
>     then command would be like
>     /check_nt -H ggg.ggg.sss.sff -p 12489 -v COUNTER -l
>     "\\(office1)\\Bytes Total/sec"
>     I tried to enter interface name as above but nothing is returned as it
>     looks like cannot be found on system.
>
>
>     I want to have one command definition and to use it on many machines,
>     as on every machine I  am assignig names like
>     "office1", "office2" etc.
>
>     OS system on monitored machines is W2K3.
>
>     Thnak you in advance
>

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list