How to create snmp trap signal

hello friends,
I am going to create NMS tool for my wireless devices.
We are using java for front end monitoring.
For my project work, how can I create SNMP Trap signal.?
Any examples is there.
thank you.
Rgds,
ram

There are many ways to modify the array to do what you want. One of my favorites is to use the "Insert Into Array" function. Just build an array of each waveform you wish to generate and arrays of 0 or NaN (depending on what you agilent device will accept) for the no signal gaps. Append them all together and you will have your arbitrary waveform for your generator.
Kyle K.
Product Manager for Product Data
National Instruments

Similar Messages

  • Creating SNMP Trap Monitors in 2012 R2

    Hello,
    For the past week or so  I have been attempting to create a MP for my company's UPSs to be monitored in SCOM 2012 R2. I have created a custom MP with custom datasources and objects. All seems to go according to the plan until I attempt to create a SNMP
    Trap monitor for those objects. I am able to verify that the device is discovered and is sending the traps successfully with a view. The problem seems to lie within the setup of the monitor. I have followed the steps as much as I can from this page http://technet.microsoft.com/en-us/library/hh563870.aspx
    to create a monitor that will be triggered by an incoming trap saying the UPS is on Battery Power.
    This is the initial or trigger event information received by SCOM:
    <EventData>
    <DataItem type="System.SnmpData" time="2014-07-03T08:48:07.6990732-07:00" sourceHealthServiceId="26DF02E5-DEA0-BED0-443B-3605A05D4790">
    <Source>10.51.85.40</Source>
    <Destination>127.0.0.1</Destination>
    <ErrorCode>1</ErrorCode>
    <Version>1</Version>
    <SnmpVarBinds>
    <SnmpVarBind>
    <OID>.1.3.6.1.2.1.1.3.0</OID>
    <Syntax>67</Syntax>
    <Value VariantType="19">17567220</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.1.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318.0.5</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.4.1.318.2.3.3.0</OID>
    <Syntax>4</Syntax>
    <Value VariantType="8">UPS: On battery power in response to an input power problem.</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.3.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318</Value>
    </SnmpVarBind>
    </SnmpVarBinds>
    </DataItem>
    </EventData>
    This is the event should signal that everything is operating normally once again.
    <EventData>
    <DataItem type="System.SnmpData" time="2014-07-03T08:48:12.9133769-07:00" sourceHealthServiceId="26DF02E5-DEA0-BED0-443B-3605A05D4790"><Source>10.51.85.40</Source>
    <Destination>127.0.0.1</Destination>
    <ErrorCode>1</ErrorCode>
    <Version>1</Version>
    <SnmpVarBinds>
    <SnmpVarBind>
    <OID>.1.3.6.1.2.1.1.3.0</OID>
    <Syntax>67</Syntax>
    <Value VariantType="19">17567730</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.1.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318.0.9</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.4.1.318.2.3.3.0</OID>
    <Syntax>4</Syntax>
    <Value VariantType="8">UPS: No longer on battery power.</Value>
    </SnmpVarBind>
    <SnmpVarBind>
    <OID>.1.3.6.1.6.3.1.1.4.3.0</OID>
    <Syntax>6</Syntax>
    <Value VariantType="8">.1.3.6.1.4.1.318</Value>
    </SnmpVarBind>
    </SnmpVarBinds>
    </DataItem>
    </EventData>
    You may notice that these traps are being sent as SNMP v1. I am unable to change that on the UPS so i have modified the monitors to account for that. Here is the code for the monitor:
    <UnitMonitor ID="UIGeneratedMonitorc2c65f3c85fe42f48ce8d2580c57bbae" Accessibility="Public" Enabled="true" Target="APC.MP.UPS" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="SNL!System.NetworkManagement.SnmpTrapProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="false">
    <Category>Custom</Category>
    <AlertSettings AlertMessage="UIGeneratedMonitorc2c65f3c85fe42f48ce8d2580c57bbae_AlertMessageResourceID">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Error</AlertSeverity>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="UIGeneratedOpStateId2750c1ab2cd14b4a8a8e9f4633eba0b0" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="UIGeneratedOpStateId5753748399984d08953c1a46895df99c" MonitorTypeStateID="FirstEventRaised" HealthState="Warning" />
    </OperationalStates>
    <Configuration>
    <FirstIP>$Target/Property[Type="SNL!System.NetworkManagement.Node"]/SNMPAddress$</FirstIP>
    <FirstVersion>1</FirstVersion>
    <FirstOIDProps>
    <OIDProp>.1.3.6.1.4.1.318</OIDProp>
    </FirstOIDProps>
    <FirstExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.5</Value>
    </ValueExpression>
    </SimpleExpression>
    </FirstExpression>
    <SecondIP>$Target/Property[Type="SNL!System.NetworkManagement.Node"]/SNMPAddress$</SecondIP>
    <SecondVersion>1</SecondVersion>
    <SecondOIDProps>
    <OIDProp>.1.3.6.1.4.1.318</OIDProp>
    </SecondOIDProps>
    <SecondExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.9</Value>
    </ValueExpression>
    </SimpleExpression>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>
    I tried the following things while attempting to troubleshoot this issue:
    Leaving  First
    SnmpTrapProvider and Second
    SnmpTrapProvider blank while creating the monitor.
    Adding "" and also '' around the value as it is a string and perhaps that was the cause.
    Changing the First and Second SNMPTrapProvider to .1.3.6.1.6.3.1.1.4.1.0 since that is the specific OID I am looking for the value of.
    Reading every page of the internet and bashing my head on the keyboard.
     I am guessing that the issue will reside in the the monitor creation and definition, but I have not found anything that clearly describes how to fill out the SNMP Trap Monitor wizard given the trap info. Especially since the trap I am receiving does
    not seem to contain the usual OID with a common Int or string value.  Hopefully someone can provide assistance as I am nearing my wits end with this problem.

    Firstly, thank you Michael Skov, knowing that the First and Second SnmpTrapProvider or <FirstOIDProps> in the xml, needed to be blank got me pointed in the right direction. I figured I would come back and share my final working code snippet in case
    others run across a similar issue. 
    <UnitMonitor ID="UIGeneratedMonitorf9f671e5456c44fd807d6ec2bd09621d" Accessibility="Public" Enabled="true" Target="Disc!APC.Disc.UPS" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="NetworkManagement!System.NetworkManagement.SnmpTrapProvider.2SingleEvent2StateMonitorType" ConfirmDelivery="false">
    <Category>Custom</Category>
    <AlertSettings AlertMessage="UIGeneratedMonitorf9f671e5456c44fd807d6ec2bd09621d_AlertMessageResourceID">
    <AlertOnState>Warning</AlertOnState>
    <AutoResolve>true</AutoResolve>
    <AlertPriority>Normal</AlertPriority>
    <AlertSeverity>Warning</AlertSeverity>
    </AlertSettings>
    <OperationalStates>
    <OperationalState ID="UIGeneratedOpStateId8700c95344254f87a60c92d30d4a3953" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
    <OperationalState ID="UIGeneratedOpStateId7bf68c6cfe3d4faabe83e630781c7327" MonitorTypeStateID="FirstEventRaised" HealthState="Warning" />
    </OperationalStates>
    <Configuration>
    <FirstIP>$Target/Property[Type="NetworkManagement!System.NetworkManagement.Node"]/SNMPAddress$</FirstIP>
    <FirstVersion>1</FirstVersion>
    <FirstOIDProps />
    <FirstExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.5</Value>
    </ValueExpression>
    </SimpleExpression>
    </FirstExpression>
    <SecondIP>$Target/Property[Type="NetworkManagement!System.NetworkManagement.Node"]/SNMPAddress$</SecondIP>
    <SecondVersion>1</SecondVersion>
    <SecondOIDProps />
    <SecondExpression>
    <SimpleExpression>
    <ValueExpression>
    <XPathQuery Type="String">SnmpVarBinds/SnmpVarBind[OID=".1.3.6.1.6.3.1.1.4.1.0"]/Value</XPathQuery>
    </ValueExpression>
    <Operator>Equal</Operator>
    <ValueExpression>
    <Value Type="String">.1.3.6.1.4.1.318.0.9</Value>
    </ValueExpression>
    </SimpleExpression>
    </SecondExpression>
    </Configuration>
    </UnitMonitor>

  • How to create 2 output signal locked in phase from a one input signal

    Hi all,
    I have a case in which I want read in a signal analog input (voltage) from a photodiode, I want to create a 2 sinewave signal locked in with same phase as the input signal and output them as analog output to my 2 laser diode. the frequency of the input signal is low aroud 15 Hz , the 2 output signal i want to be  around 120 hz and 150 hz . 
    I am using USB - 6003 daq card.
    I have created a vi to see the input signal but I dnt know how to create 2 signal from the waveform generator locked in the phase as the input signal. I have seen a PLL vi , but dont know how to use that with my program.
    can any one tell me how to proceed.
    thanks
    AG
    Attachments:
    pulse_PLL.vi ‏27 KB

    Hi AnkitG,
    Here are a couple of links that might help you understand a little more how the PLL work and a way to synchronize the task to perform a PLL.
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E9AE258625708B007CE74F?OpenDocument
    http://digital.ni.com/public.nsf/allkb/2F675A9F2162EA24862572570059A308?OpenDocument
    Also, you should be able to find a lot of examples on how to accomplish the synchronization of tasks on the community, if you consider that the only consideration is that both must start at the same moment. 
    I hope, these examples might show you some useful concepts:
    http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2
    http://digital.ni.com/public.nsf/allkb/9E71F8D7D3CD1B0886257688004AE353
    Regards,
    Luis C.
    National Instruments

  • How to create stepper motor signal (myRIO)?

    Hi there,
    I'm fairly new to LabVIEW, and I'm trying to run a small stepper motor with ULN2003 based driver board (one of these) with a myRIO. I have gone through a few examples in the project guide to get a feel for things, but I can't figure out how to run this stepper.
    What I'm wondering is how do I create the signals to run to the IN1,2,3,4 on the driver board? What functions would I use?
    I don't have a deep understanding of LabVIEW yet, so any specific explanations are welcome. Or, if anyone has an example VI for doing this or something similar, I can just look through that.

    Hey GregRomero,
    I'd start simple.  You can control the stepper motor controller inputs using the Digital Output Express VI, but before you to that, play around with the LED Express VI so you can see how digital outputs work.  Create a VI that looks like this:
    Run the VI and click the buttons to turn on and off the LEDS.  Then switch the LED Express VI to the Digital Out express VI and choose the DO channels you've connected to the stepper drive.  Now you can use the buttons to set the digital outputs and use the logic table on the page you linked to set the motor step.
    Once you get that working you can replace the manual button presses with generated values to drive the motor.
    Let us know if you have questions about any of this.
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • How do create an analog signal from a text or binary file?

    I'm trying to output an analog signal from a file on an NI-DAQ 6251 card using labview 8.5. I've found the examples on building a waveform, but I'm stuck at how to read a text file and make a 1-D array to input my amplitudes into the buildwaveform.vi and I can't find any information on how to do so. Any help or direction is greatly appreciated.
    thanks,
    David
    Solved!
    Go to Solution.

    If all that you want in the file is the Y values, then a text file with a value on each line could be read. The Read From Spreadsheet File can be used. It will return a 2D that you can then use the index array function to get a column or if you select Transpose, the returned 1D array would be used.
    If you want to create an example, use a 1D array constant in a VI and pass it to the Write to Spreadsheet File.

  • How to create a custom signal?

    Hello,
    I am working with the agilent 33250A arbitrary waveform generator, and I am trying to create an arbitrary waveform that is comprised of several sin waves, all at the same freq. and amp. and phase, which start at arbitart times and last for arbitary amounts of time.  For Intance, the pattern might be at:
    0s, 10.2Mhz 1v sin signal for 40microseconds
    10milliseconds,  10.2Mhz 1v sin signal for 20 microseconds
    15 milliseconds, 10.2Mhz 1v sin signal for 80 microseconds
    Finally, this pattern consists of 5 or 6 bursts, which will loop after a fixed time.
    I am not sure the best way to do this.  I found the sin wave pt by pt block, and I thought about combining that with a time signal that goes to 0 when I need no signal.  However, that seems too difficult to be the right way to do it.  The agilent 33250A comes with an example arb. waveform that takes a simulated signal and converts the dynamic data to an array of floats, and sends it to the device.
    Any pointers would be appreciated.
    Thanks,
    Eric

    There are many ways to modify the array to do what you want. One of my favorites is to use the "Insert Into Array" function. Just build an array of each waveform you wish to generate and arrays of 0 or NaN (depending on what you agilent device will accept) for the no signal gaps. Append them all together and you will have your arbitrary waveform for your generator.
    Kyle K.
    Product Manager for Product Data
    National Instruments

  • How to create SNMP Agent

    Hi,
    Good Morning every body, i am new person to this group. plz help me,
    i want to create a simple SNMP agent , Which API should i need to use.
    Regards
    Dev Reddy

    UDP, on the SNMP port. You should also read up on MIB.

  • IPM 4.2 and SNMP trap.

    Hello at all.
    We are using IPM 4.2 to configure SLA operations on 7201 with software 12.4(24)T4, downgraded from 15.0 because IPM cannot configure collectors.
    When we receive a trap the tag is empty for all collectors.
    Performing a SNMP Walk on rttMonCtrlAdminTag we can see the tag.
    When we manually define a collector the originated trap has tag populated correctly.
    In this last case we can use tag with more than 15 chars also.
    Regards.
    Andrea

    As stated in the other IP SLA thread, you are seeing CSCte85239.  The bug was filed against 12.4(15)T, and wasn't fixed until 15.1(3)T.  However, as you found, the 15.0(1)M4 image was not affected by the bug as it must have been branched before the bug was introduced.
    As a workaround, given that you have EEM 3.0 support in 12.4(24)T, you could create an applet that sends a customized trap with all of the necessary data.  See https://supportforums.cisco.com/docs/DOC-11745 for details on how to create customized traps using EEM.  Essentially, you will create an EEM applet (or Tcl) policy that intercepts the required IP SLA reaction condition, then runs the necessary show commands to extract the parameters you need to generate the trap you want.  This one policy could be defined outside of IPM, but it could be used for all collectors on the device.

  • Remove SNMP trap receiver in CatOS

    I've done the Cisco search and came up empty. I used to know this. Isn't there a hidden remove command? Version is CatOs 8.4.1. Hopefully one of you can save the day. TIA!

    How about:
    clear snmp trap all
    or
    clear snmp trap

  • Setup of SNMP trap

    Hi,
    Can anyone please let me know how to setup snmp trap to send the target db alert to hp open view.
    thanks in advance
    PK

    You may use connectors for doing the same:
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b32521/toc.htm

  • How to enable the "SNMP TRAP" Funcation in Prime Infrasructure 2.0 for receiveing the Third Party Device's SNMP TRAP

    I already uploaded the third party device's MIB to PI2.0,  but could not recive the third party device's SNMP TRAP properly .
    what do I need check for the PI ? or what do I need to setup for the PI?
    Thanks

    Duplicate post of :
    https://supportforums.cisco.com/discussion/12148626/how-enable-snmp-trap-funcation-prime-infrasructure-20-receiveing-third-party
    -Thanks
    Vinod

  • SNMP traps to monitor the signal strength on wireless AP

    What snmp notification type should I enable on wireless AP to monitor the signal strength of the connected  devices  to the AP. What is the associated MIB for this SNMP trap.

    Hi karthikeya,
    Here is the link which gives us the info regarding the available MIB for the respective Model..
    http://tools.cisco.com/ITDIT/MIBS/MainServlet?ReleaseSel=3469&PlatformSel=9&fsSel=1292
    Please select the Device part number and then chose the MIB that you require.
    lemme know if this answered your question..
    Regards
    Surendra
    ====
    Please dont forget to rate the posts which answered your question and mark it as answered or was helpfull

  • How view snmp Traps CISCO PRIME 1.2

                       It is posible to view snmp Traps from WLC to CISCO Prime ?? How ?

    Hi Steve :
    I need to view the traps which are generated in the Controller, I need to view that in the Cisco Prime Infractructure. I´ve configured Communities in WLC with IP Address to Cisco Prime and Trap Receiver with IP address to Cisco Prime.
    Now, How can I view these Traps in the Cisco Prime ?.
    Another question , Is it posible to configure Switch from Cisco Prime ?
    Thanks,
    Claudio

  • How DAQmx Create Channel for Accelerometer will convert the voltaage signal into g

    HI all,
    I want to know about DAQmx Create Channel for Accelerometer hoe it will do the convertion any one reply me
    Regards,
    Santhosh M

    Most of the accelerometers that i have used till now are ICP devices.
    They need about 5mA current to power them selves up. Other wise they give inaccurate output.
    I guess you are measuring a raw time domain vibration signal.So you just need to 
    I have attached my own  code of how i acquires a vibration signal usin PXI-4462 and 4461 modules. Keep it secret till i do my thesis .
    You have to specify channel name ,device name, and remember to create the channel using the AI-accelerometer -accelerometer VI ,if you use any other form of this polymorphic vi then ICP source options will not be there and your sensors will not have the current to work properly.
    Attachments:
    New Microsoft Office Word Document.pdf ‏126 KB

  • How to set the DCM snmp trapping to a customized port

    Hi There,
    Anyone know how to set the DCM SNMP trapping to a customized port?
    The default port for SNMP should be 162 while my OSS team requies it be set as a customized port number for load balancing. Can't find a clue in the manual, any idea?
    Thanks,

    Hi Kim,
    The DCM only support the standard SNMP port.
    Regards,
    Ray

Maybe you are looking for

  • Windows, OS X and 3th partitions

    Are there anyone that can help me out creating 3 partitions, one for OS X, one for WindowsXP PRO PS2 and one NTF for files on MacBook Pro Core 2 Duo without using Boot Camp and possibility to choose which os to boot from at booting startup?

  • Auto Add from pc to iTunes Library

    I have my library folder set to the standard my documents/my music/itunes/itunes music. When I add a song to the folder, it doesn't automatically get added to my library. I have to either choose add file and select it, or choose add folder and select

  • OracleAS Patchset 10.1.2.3 Fails running oc4j  Configuration Assist

    Hi, We are upgrading our 12.0.4 EBS to 12.1.1. As part of pre -upgrade steps, i am applying 10.1.2.3 patch on 10.1.2.0.2. It is failing while running oc4j configuration assistant with below error. oracle.ons.SubscriptionException: Subscription reques

  • Issues using EPM Add- in for Excel

    Hello everybody, I have installed the EPM add-in for Excel 2010 in one of my client computers, but we're facing two different issues in this machine: 1. Everytime he opens Excel the EPM add-in is disabled so he has to activate it each time he wants t

  • Filling a Object with a Brush

    I learned how to do it years ago and forgot. I don't know if it was in Illustraotr or Photoshop, I'm hoping Illustrator. Examples: http://www.istockphoto.com/stock-illustration-5268617-crayon-drawn-heart.php http://www.photoshopsupport.com/photoshop-