Pass SNMP community string a scripted monitor parameter in SCOM 2012

Hi,
Following the advice given here http://social.technet.microsoft.com/Forums/systemcenter/en-US/606d793c-b559-40b5-865a-ae312ee483d7/snmp-monitor-compare-oid-to-current-date
I created a scripted monitor to poll the value of a SNMP OID and compare it to the current system date.
It works perfectly fine, but I can't find how to pass the community string to the script in order to avoid having to hardcode it in clear text in the script... It seems this was published as a Target's Property with SCOM 2007 (like described here : http://www.burkard.it/2011/10/create-a-calculated-snmp-monitor/
) but that it's not the case anymore with SCOM 2012 (likely because SCOM 2012 now uses RunAs accounts to store community strings, I guess).
So, what is the correct way to achieve this?
Thanks!

Ok, I just found the solution myself, it was quite easy actually (but as often not really documented anywhere) :
you just have to pass this as a parameter :
$RunAs[Name="NetworkLibrary!System.NetworkManagement.Snmp.MonitoringAccount"]/CommunityString$
instead of the scom2007 property which was :
$Target/Property[Type="NetworkDeviceLibrary!Microsoft.SystemCenter.NetworkDevice"]/CommunityString$
And that's it, you don't even need to decode the string in your script as it was the case with scom 2007.

Similar Messages

  • StorCenter px6-300d SNMP Community String

    Dear Reader,
    We have a NAS (StorCenter px6-300d) and we want to monitor it with our monitoring system.
    On the Iomega website (http://iomega.com/resources/ui/px6-300d-313/help/help.html) i've found the configuration steps (see below) and configured our NAS.
    Configuring SNMP settings
    To enable SNMP, click the switch on.
    Enter a unique username and password to define the community.
    Confirm your password.
    Enter the IP address of the host in the Trap Receivers text box. To grant access to multiple receivers, list all of them in the text box, separating each entry with a space.
    Click Apply to save your settings
    In our monitoring system we get the following msg: SNMP agent down - no response received. I think this is because of the (wrong) community string. In our monitoring system, under configuration tab, I tried 'public', 'username', 'password' etc in the community string field but it is not working.
    I hope someone can help me with this... what is the community string? If i'm doing something else wrong then...
    Thanks in advance.
    With kind regards,
    From the Netherlands
    Solved!
    Go to Solution.

    Hi yunuz,
    The username and password that you set on the NAS device needs to match on the SNMP server that you are trying to connect to. So use the same username and password for the server. Do you know what SNMP version your client is using?
    What is an “SNMP Community String”?
    The “SNMP Community string” is like a user id or password that allows access to a router's or other device's statistics. PRTG sends the community string along with all SNMP requests. If the community string is correct, the device responds with the requested information. If the community string is incorrect, the device simply discards the request and does not respond.
    Note: SNMP Community strings are used only by devices which support SNMPv1 and SNMPv2c protocol. SNMPv3 uses username/password authentication, along with an encryption key.
    By convention, most SNMPv1-v2c equipment ships from the factory with a read-only community string set to "public". It is standard practice for network managers to change all the community strings to customized  values in the device setup.
    Source: http://www.paessler.com/manuals/prtg_traffic_grapher/whatisansnmpcommunitystring
    Have questions and need answers?
    Search the database for answers to FAQ's, software/driver downloads, tutorials, news, features and more!
    LenovoEMC Support & Downloads
    LenovoEMC North America Support Contact Page

  • View snmp community string

    Maybe I am missing something here but it looks like once you set the snmp community name, it is blanked out from display and can't be viewed again. No luck via the CLI also.
    Is this actually true or am I just missing something here?? If the community name is hidden then how does one view the same?
    Thanks,
    GD

    From NXOS, for example. 
    bdsol-6120-05-A# connect nxos
    bdsol-6120-05-A(nxos)# sh run | i community
    snmp-server community CISCO group network-operator

  • Turn off the SQL DB monitoring entirely in scom 2012 (SP1)

    Is there a way to centrally target and turn down monitoring of all the servers running SQL DB in SCOM 2012. We actually created groups using the OU's to target the SQL servers but some of the servers which have SQL DB are not in that OU and they are still
    triggering DB alerts.
    Some of the alerts also include 
    Management Group: Ancestry Ops. Script: DiscoverSQL2012FileGroups.js : Cannot login to database [XXserver.domain.com][SQLD114B:model]
    and these servers are in the OU but still trigerring this DB alert.
    Any information about this ll be greatly useful.
    Thanks
    Hari V

    Pretty much what Hopeless guy said.  I have scom 2007 in prod, so I use remove-disabledmonitoringobject after I override a discovery.   The issue is that these SQL dbs are still being discovered.  So if you want to disable sql monitoring
    in total for them, override the seed discovery which will have a target of windows server/computer.  Then after the override is in palace execute the remove command from SCOM commandshell.  You then should scope to the class you want to disappear
    (discovered inventory pane), and refresh every 15 min or so to see if they are being removed.  I have had to run the remove command a few times to clean some large discovered inventory up.
    Regards, Blake Email: mengotto<at>hotmail.com Blog: http://discussitnow.wordpress.com/ If my response was helpful, please mark it as so, if it answered your question, then please also mark it accordingly. Thank you.

  • Monitoring servers in SCOM 2012 via different locals within the same management group

    Hi,
    I have 2 management servers in a same management group. The 1st one is having English (US) locale while other is installed on Swedish locale. Both are accessed by different users having same admin rights.
    Once a USER 1 try to register a server through authoring tab from 1st management server(installed on English locale), a profile/group wrt the server registered is created successfully but the USER on 2nd management server (installed on Swedish locale) can
    not see the same in Authoring tab. He can view it in Monitoring tab as as well as Administration tab.
    The Vice versa is also true.
    Does any one have idea that is it SCOM 2012's expected behaviour wrt 2 2 different users on 2 different locales within a same management group ?
    Thanks in advance.

    Hi,
    I am a little confused, what do you mean by "register a server through authoring tab"?
    Do you mean that when you discover a server on 1st MS with discovery wizard then you cannot see it on 2nd MS(and the vice versa)?
    As far as I know, all those information should be stored in the operation database which is shared to both MSs within the same management group.
    We may use SQL query to find the discovered server on the operation database. Please also check operation manager event logs to get more information to troubleshoot this issue.
    Regards,
    Yan Li
    Regards, Yan Li

  • Only showing APP monitoring Reports in SCOM 2012 Reporting

    Hi all,
    Recently i upgrade the SCOM 2012 from 2007 R2 Managament Server only because in previous environment we have only one MS server and SQL server 2008 SP2.
    Now i have 4 servers for SCOM 2012.
    1) SCOM Managament server (which was upgraded)
    2) SQL server 2008 SP2 (running 3 instances)
    3) SCOM ACS server (New installation)
    4) SCOM Reporting server (New installation)
    I have using two accounts
    1) SCOM.action 2) SCOM.sdk
    When i install reporting, reporting Tab are showing in the SCOM 
    2012 console but only Application monitoring reports are showing in Reporting. I was deleted some MP’s and then import it but the report are not imported in reporting tab. I also check SSRS, it works fine. Both SSRS url’s works fine.
    I don’t know whats the problem.. Please clarify me what’s the problem.????
    Regards,
    Kamran

    Hi Muhammad,
    I am also facing the exact issue as expalined above.
    Even the application monitroing reports are not working. When i try to launch application monitoring reports from reportmanger , I get dataset error and see that apm.* views are missing.
    Also tried deleting and importing the managementpacks, without any success. This issue is happening only in production environment.
    It will be very helpful if you can let us know what Account permisisons need to be checked for. Thanks in advance.
    Thanks

  • Windows Monitoring Checklists for SCOM 2012 R2

    Hi All,
    We are in SCOM 2007 to 2012 migration stage where we will have to check Windows monitoring with SCOM 2012 that how it works better than 2007, what all new components to be considered and focused. Kindly share if you have any checklists to be verified before
    we proceed further. Usually resources like CPU, Memory, File System and Network Performance, Services, events and logs monitoring would be considered. Help to get if anything I missed to list out here.
    Thanks.
    Regards,
    Raj.

    Hi,
    If you are looking for system requirements for installation of SCOM 2012 R2, please refer to the below link:
    System Requirements: System Center 2012 R2 Operations Manager
    http://technet.microsoft.com/en-us/library/dn249696.aspx
    And more details about how to upgrade from SCOM 2007 R2 to newer version, the below article should be helpful.
    Upgrading from System Center Operations Manager 2007 R2
    http://technet.microsoft.com/en-us/library/hh476934.aspx
    We should import management packs according to your environment and your need. For example, to monitor Windows operating system, we should import Windows operating system management packs.
    To monitor AD, we should import Active Directory corresponding management packs.
    Regards,
    Yan Li
    Regards, Yan Li

  • CiscoWorks IPM 4.1.0 - SNMP Community String Updates

    Cisco NetPro,
    We're running IPM 4.1.0 on Solaris 10.
    Periodically we change SNMP RO/RW strings on our devices.  I recently changed the strings on our devices and within IPM.
    Now that they're changed, 26 of my collectors are appearing in the Source Not Responding list.  Both my Source and Target devices have the same strings configured.
    I need to verify the strings IPM has stored.  I exported my collectors via the command line utility "ipm" and via the GUI and still no strings in the output.
    How can I see the SNMP strings in IPM?
    Stephanie

    I ran "pdterm IPMProcess" followed by "pdexec IPMProcess"  and now I'm getting this error:
    Error
    Error in communicating with IPMGroupAdministration Server.
    It may be down or not yet up. Please make sure that the IPMGroupAdministration Server is up and running, then refresh the page.
    Stephanie

  • Dashboard for only Monitoring uplink ports ~~~~~SCOM 2012 R2

    Hi Guys,
    I want to monitoring signal interface of switch like uplink port. And same i want create dashboard.
    Please help me out for creating dashboard for only signal uplink interface port.

    If you want to monitor the interface status on a switch, you'll have to build a custom monitor. (Unless you use supported devices e.g. Cisco Catalyst).
    Go to authoring > monitors. Under the class 'Node' you can make a new monitor. Choose for SNMP and follow the wizard.
    You'll need the OID to monitor. Usually you can find this OID in the MIB's (using a MIB browser) of your device.
    MIB's can be found on the vendor website.

  • Cs-mars changing the community string on multiple devices

    Hello,
    We've changed the snmp v2 community strings on all the network devices.
    Is it possible in cs-mars to change the community string on multiple devices?
    When I select edit in admin>security and monitor devices> and select several devices and click edit the message "please select only one device to edit"
    What's the best way to do this, and is this absoluteley nessecary?
    Many thanks for all the help......

    > Is it possible in cs-mars to change the community string on multiple devices?
    Yes, it's possible for some device types.  The SNMP community string(s) can be bulk updated using a seed file, but only for the following device types: PIX, PIX 7.x, ASA, IOS, and SWITCH-IOS.  Any other device types have to be updated manually.  The details are on page 1-46 of the Device Configuration Guide.  You will also need the details for using a seed file, from the same document.
    > is this absoluteley necessary?
    If you want to communicate with the devices via SNMP, then yes, you need to update the strings.  This is especially the case if you don't use any other communications protocols such as SSH, Telnet, or FTP.  Also, without the updated SNMP strings, MARS can't fully discover the Layer 2 topology from the device.
    Unfortunately, the SNMP string bulk update is only available for SNMPv1 (or v2 with no encryption) credentials.  If you're using SNMPv3, each device has to be edited manually.

  • Does OraOLEDB support passing a Ref Cursor as an IN parameter of a Stored Procedure?

    We have a number of Stored Procedures that take a Cursor as an input parameter. Is it possible to call a Stored Procedure of this type with OraOLEDB? If so could you provide a quick sample using VC++/ATL?
    Thanks...

    Thank you for your reply, Yuancai. It would be very useful if the OLE DB team added such an interface to future versions of TCommand. However, for the time being what is the preferred technique for passing large amounts of data to a stored procedure? For instance we have a number of tables that have fifty or more columns. It would be awkward to call a stored procedure with this many parameters. Ideally, one would want to create a structure as a User Defined Type and pass that as a parameter.
    One approach we though of was to pass a XML string though a CLOB parameter and parse it in either a PL/SQL or Java stored procedure. However, while this approach is novel it is not standard. I've found it best to use standard techniques where possible. Any insight you could give would be appreciated.
    Thanks,
    Bryan Wood

  • Is it possible to configure an SNMP copmmunity string on an ATA 186 without accessing it via console?

    I am trying to configure a particular SNMP community string on many ATAs for a Cisco 'Know the Network' project. On a Cisco ATA 186, you cannot telnet or SSH to it and the only way to remotely change the parameters are via the web GUI, which doesn't have the SNMP field available.
    Is this possible without getting physical console access to the ATA?

    No.
    An ASA can, as you noted, restrict source and destination IP and port. To do what you are asking, one would need to prevent a string within the payload from being transmitted (or only accept certain strings).
    You should just put the access-list on the destination device(s) restricting what host(s) are allowed snmp rw (as you alluded to). That's a very common implementation straight out of the textbook.

  • Is the "Community" string hardcoded somewhere in SEA?

    Hi
    I have a machine installed with SEA 1.0.3 and developed a Subagent by myself. I want to change the Community String for security reason but encountered some problem.
    I updated the community string in snmpd.conf and myagent.acl at /etc/snmp/conf. Then I stop snmpdx and start it again with "-d 4". At another terminal, I start my subagent with "-d 4" too, there is some PDU print out on the screen as follows:
    SSASubagent called with mysubagent
    PDU:
    version: 0
    community: public
    type: SET_REQ_MSG (0xa3)
    request id: 0
    error status: noError(0)
    error index: 0
    name: 1.3.6.1.4.1.42.2.15.5.0
    type: OCTET STRING (0x4)
    length: 9
    value: mysubagent ( 73 6f 67 61 6c 61 72 6d 64 )
    MANAGERS:
    * 0
         COMMUNITIES(READ_WRITE): myprivate mypublic
    #EFILTER:
    TRAP RECIPIENTS:
    Waiting for incoming SNMP requests on UDP port 7041
    You can see from the beginning that the community print out is still "public". But at the bottom of the print out, the community has been changed.
    I have 2 questions on this:
    1. Since I have not any SNMP server running and I did not send any GET/SET request to my agent, I think this PDU is the registration PDU my subagent send to the master agent for register. Am I right?
    2.If I update the community string in snmpdx.acl, my subagent can not start up successfully and there is some print out in the master agent site that "community_check() : bad community from myhost ". It seems that it is because the community string in the PDU is still "public" and which is different with what master agent set.
    3.I'm using Solaris 5.9. Do I need some patch for this issue?
    I have read the User Guide and Developer Guide of SEA but still can not resolve it , would you give some information on this?
    thanks a lot
    Wendy

    > Is it possible in cs-mars to change the community string on multiple devices?
    Yes, it's possible for some device types.  The SNMP community string(s) can be bulk updated using a seed file, but only for the following device types: PIX, PIX 7.x, ASA, IOS, and SWITCH-IOS.  Any other device types have to be updated manually.  The details are on page 1-46 of the Device Configuration Guide.  You will also need the details for using a seed file, from the same document.
    > is this absoluteley necessary?
    If you want to communicate with the devices via SNMP, then yes, you need to update the strings.  This is especially the case if you don't use any other communications protocols such as SSH, Telnet, or FTP.  Also, without the updated SNMP strings, MARS can't fully discover the Layer 2 topology from the device.
    Unfortunately, the SNMP string bulk update is only available for SNMPv1 (or v2 with no encryption) credentials.  If you're using SNMPv3, each device has to be edited manually.

  • Disable default read community string

    I would like to know the procedure to disable the default read community string which is "public" and change create a new read community string using SMC 3.0

    In your topology view, right click on a host, select "Attribute Editor". Then click the "Security" tab. There are sections here to control the user and group access control as well as the SNMP community string settings for the agent. You can make changes to the community string and hit "OK".
    Regards,
    Jeff Grabell
    www.cirba.com

  • Performance of Network Monitoring in SCOM 2012 SP1

    Hi all!
    I´ve problems with performance of the network monitoring feature in SCOM 2012 SP1.
    According to the
    guide the following should be adeqate:
    •1000 network devices (approximately 12,500 monitored ports) managed by a resource pool that has three or more management servers
    •500 network devices (approximately 6,250 monitored ports) managed by a resource pool that has two or more gateway servers
    We have 800 network devices with a total of 24000 ports,
    BUT only 1500 of them are monitored. This is basically what happens automatically after discovery, since only ports between monitored devices are monitored by default.
    For this setup I first used only one management server dedicated to the Network Pool,
    based on my assumption that if two servers could monitor 6250 ports, one server would be more than enough for 1500. I found this configuration working very poorly so I added another server. I now have two servers
    dedicated for the Network Resource Pool. (They are NOT members of the “All management servers resource pool”)
    Still, I get constant alerts regarding Health Services Private Bytes on these servers. They vary between 1-2Gbytes. Furthermore, if one of the servers goes offline, the network devices that was monitored by that server becomes grey for
    several hours. Even if the server only is rebooted it takes forever to get everything online and green again.
    I don´t really know what I should do now. I had a plan to replace our current network monitoring system (SNMPc) which easily handles this load on only one server. They are of course completely different beasts, but still. SCOM seems to
    require a massive back-end to produce equivalent real life results.
    Any suggestions or reflections from the field are highly appreciated!
    Regards
    Peter

    Hi,
    Try to overide the monitor Health Services Private Bytes by the following steps.
    ◾Go Authoring space – Management Pack Objects – Monitors
    ◾Go to change scope – select clear all – look for Health Service – tick it and press OK.
    ◾Expand Health Service – expand Entity Health – expand Performance – expand Health Service Performance
    ◾Select the Health Health Service Private Bytes Threshold.
    ◾Right click the mouse and choose to overide the monitor for a group
    ◾Select the group called Management Server Computer Group and press OK
    ◾Select the Agent Performance Monitor Type – Threshold and change the value 104857600 to ex. 2610612736.
    ◾Select to store the overide in a management pack you have created and press OK
    Juke Chou
    TechNet Community Support

Maybe you are looking for

  • XML Parse error while loading an XML file

    HI Folks, I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools  is getting loaded without any issues.. I have created a XML-File format with the corresponding XSD.. But here in BODS it is g

  • Spry submenu colors and rollover images

    New both to spry as well as creating flyout menus. I've spent hours attempting to use the spry menus properly, but have hit a brick wall in a couple of areas. First (and I'm sure I must be missing something incredibly obvious), I would like to have t

  • Handling decision step when no agents found

    Hi Experts, I have copied the standard decision step and also made it as a General Task. As in few scenarios, the users can have multiple managers, I have used multiline container element in the agent assignment under 'Expression'. This all works fin

  • Problem with java regular expression

    Hi, I try to use the regular expression as follows Pattern pattern = Pattern.compile("\wpub\w"); Matcher matcher = null; matcher = pattern.matcher("38712pubeeqpwoiu"); if (matcher.matches()) System.out.println("Matched"); else System.out.println("Not

  • Project settings for Nikon D3100 HD-Pro CS3

    Hey everyone, I'm totally new to all of this, and recently got a Nikon D3100.  I was able to get a license of Premiere Pro CS3 from work, so I decided to start playing with the HD video on the Nikon. So my question is, which new project settings shou