Setting up SNMP via a script

I have been trying to do this for way too long. There does not seem to be a way that I understand to set up SNMP via a script.
 
I did, however discover this little gem;
 
sysocmgr that you can read about here: http://support.microsoft.com/kb/222444
 
Usage:
 
sysocmgr /i:c:Windowsinfsysoc.inf /r /u:c:tempsnmp_cfg.txt
And c:tempsnmp_cfg.txt looks like this:
 
[Components]
NetOC=on
[NetOptionalComponents]
SNMP=1
[SNMP]
 Accept_CommunityName = public:Read_Create
 Any_Host = Yes
 Community_Name = public
 Contact_Name = "OldDog"
 Location = "MYOB, SF, Ca"
 Traps = 172.xx.xxx.xxx <- where you want them sent. My HP-SIM server or SCOM or wherever.
 Service = Physical, Applications, Datalink, Internet, End-to-End
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s