|
|
02-08-2013, 09:23 AM | Topic Starter | |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
Any PowerShell gurus out there?
I've got over 400 windows 2008 R2 servers and I need to install SNMP services and then set the community string and host for it to accept packets from.
Now a few of these servers already have SNMP services installed.. I've put together a PS script to check if SNMP services (a windows feature essentially) is installed -- if it's not, install it - if it is, skip installation and go to deleting the existing strings and creating the new ones. I've got two local servers here that I'm testing on (both do not have SNMP services installed) and I'm getting the script to run but it fails (says it fails but it actually does install the SNMP services) and doesn't set the community strings UNLESS you run the script a second time. After running the script a second time, all is well..... I've been looking at this for far too long and need another pair of eyes. And all execution policies are set to RemoteSigned. Quote:
|
|
Posts: 11,847
|
02-08-2013, 10:09 AM | #2 |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
I see...
__________________
|
Posts: 11,847
|
02-09-2013, 02:55 PM | #3 |
When a nightmare becomes real
Join Date: Nov 2003
Casino cash: $1156966
|
That's stupid.
Just get SCOM 2012.
__________________
http://www.goemaw.com |
Posts: 47,007
|
02-09-2013, 05:18 PM | #4 |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
**** SCOM. We just moved from SCOM to solarwinds.
SCOM may be the chattiest shitsoftware I've used. It also has nothing to do with what I'm trying to accomplish.. Did you mean SCCM? Because that's what I'm using to push the script out to all the servers.. What can SCOM and its heartbeat monitor/mother role do for me here? Powershell is fantastic and is absolutely necessary in the MS lineup - especially 2012... What is the easier route I should be taking to install the windows feature (snmp services) and then set the community string and host? Not a GPO... I can only set the GPO to customize the hosts and strings - I can't install it.
__________________
|
Posts: 11,847
|
02-09-2013, 09:30 PM | #5 | |
When a nightmare becomes real
Join Date: Nov 2003
Casino cash: $1156966
|
Quote:
Powershell is awesome. Confirmed. From looking at your Powershell script, it doesn't seem like it would work if SNMP wasn't already installed.
__________________
http://www.goemaw.com |
|
Posts: 47,007
|
02-09-2013, 09:57 PM | #6 | |
Has a particular set of skills
Join Date: Dec 2003
Location: On the water
Casino cash: $1578962
VARSITY
|
Quote:
SCOM 2012 is way better than solarwinds. SCOM 2012 can do almost everything solarwinds can do way cheaper and easier to train people on how to admin the tool.
__________________
Mind you own damn business |
|
Posts: 79,886
|
02-10-2013, 09:13 AM | #7 | |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
Quote:
We have a massive IT division with various teams.. They've made the decision to abandon SCOM 2007 (even though it is essentially free with our MS contract). I don't make those decisions. We aren't even looking at SCOM 2012... I just got back a few weeks ago from a 10 day SCCM 2012 class. Apparently, that's the only piece we will be upgrading and migrating to 2012. Aside from the server and AD 2012. On topic, you don't have any idea about the script in the OP?
__________________
|
|
Posts: 11,847
|
02-10-2013, 09:07 AM | #8 | |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
Quote:
And again, SCOM will not help us here.. You guys are recommending SCOM to me and you haven't any idea what I'm setting this up for. Its for dell open manage essentials. And I'll admit our SCOM team (1 guy) was very lazy with his configuration of Alerts - thus my getting over 700 emails a day.. None of which are critical. SCOM is not the point of this thread... Nor can it do anything that I'm needing to use dell OME for -- updates (hardware), inventory, and warranty status.
__________________
|
|
Posts: 11,847
|
02-10-2013, 09:29 AM | #9 | |
When a nightmare becomes real
Join Date: Nov 2003
Casino cash: $1156966
|
Quote:
FYI, Scom has a Dell management pack that can do all of that.
__________________
http://www.goemaw.com |
|
Posts: 47,007
|
02-09-2013, 03:19 PM | #10 |
Has a particular set of skills
Join Date: Dec 2003
Location: On the water
Casino cash: $1578962
VARSITY
|
Powershell is a powerful tool. but, in this case there are better ways to accomplish your goals.
__________________
Mind you own damn business |
Posts: 79,886
|
02-10-2013, 11:30 AM | #11 |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
Right on. I didn't look into any dell plugins on SCOM.. I don't believe it will help me in updating bios, firmware, and things relative to chassis CMC's and iDRACs though.
__________________
|
Posts: 11,847
|
|
|