samnyc Posted September 23, 2009 Report Share Posted September 23, 2009 On Windows 2003, we have over 100 servers. I need to find NICs settings. I am using "SNMPUTIL" to get this. If there is any other easy way to do this please do let me know. Check the value of the output to see if its 2, if its not 2 the issue the command again increasing the end of the commands number by 1snmputil get localhost public .1.3.6.1.4.1.232.18.2.3.1.1.34.2So the output will either be the below or if its the last NIC you will get d:\server1>snmputil get localhost public .1.3.6.1.4.1.232.2.3.1.1.34.1Error: errorStatus=2, errorIndex=1d:\server1>snmputil get localhost public .1.3.6.1.4.1.232.18.2.3.1.1.34.2 Variable = .iso.org.dod.internet.private.enterprises.232.18.2.3.1.1.34.2Value = Integer32 2For any NIC that returns a value of 2 we then need to check the speed of that interface with the following command; d:\server1>snmputil get localhost public .1.3.6.1.4.1.232.18.2.3.1.1.33.2 Variable = .iso.org.dod.internet.private.enterprises.232.18.2.3.1.1.33.2Value = Integer32 1000000000So in this case we had a NIC (.2) that is set auto but is running gig which is good. We need to identify any NIC running auto not running gig, so if the NIC (.2) was running 10mps it would look like this; d:\server1>snmputil get localhost public .1.3.6.1.4.1.232.18.2.3.1.1.33.2 Variable = .iso.org.dod.internet.private.enterprises.232.18.2.3.1.1.33.2Value = Integer32 10000000How do I write this into a script? Any ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.