DX Unified Infrastructure Management

 View Only
  • 1.  Extension script via VAIM for hardware monitoring

    Posted Sep 11, 2015 01:01 PM

    Hi

     

    I would like to know how to create custom extension script to create hardware watchers like below

    Any one clear example of extension script or query another MIB like dell will be good.

    I don't find anything in user guide similar to what I am trying to do.

     

    Power Supply 1.3.6.1.4.1.674.10892.1.200.10.1.9 instance 1 ;3 = OK

    Voltage 1.3.6.1.4.1.674.10892.1.200.10.1.12 instance 1 ;3 = OK

    Cooling 1.3.6.1.4.1.674.10892.1.200.10.1.21 instance 1 ;3 = OK

    Temperature 1.3.6.1.4.1.674.10892.1.200.10.1.24 instance 1 ;3 = OK

    Memory 1.3.6.1.4.1.674.10892.1.200.10.1.27 instance 1 ;3 = OK

    Chassis Intr. 1.3.6.1.4.1.674.10892.1.200.10.1.30 instance 1 ;3 = OK

    HW LOG status 1.3.6.1.4.1.674.10892.1.200.10.1.41 instance 1 ;3 = OK

    Processor 1.3.6.1.4.1.674.10892.1.200.10.1 instance 50.1 ;3 = OK

    CMOS battery 1.3.6.1.4.1.674.10892.1.200.10.1 instance 52.1 ;3 = OK

    RAID CONTR CH0 1.3.6.1.4.1.674.10893 Instance 1.20.130.2.1.7.1 ;3 = OK

    RAID CONTR CH1 1.3.6.1.4.1.674.10893 Instance 1.20.130.2.1.7.2 ;3 = OK

    RAID CONTR CH2 1.3.6.1.4.1.674.10893 Instance 1.20.130.2.1.7.3 ;3 = OK

    RAID CONTR CH3 1.3.6.1.4.1.674.10893 Instance 1.20.130.2.1.7.4 ;3 = OK

    Raid Battery0 1.3.6.1.4.1.674.10893 Instance 1.20.130.15.1.5.1 ;1 = OK

    Raid Battery1 1.3.6.1.4.1.674.10893 Instance 1.20.130.15.1.5.2 ;1 = OK


    Thanks

    Kaps




  • 2.  Re: Extension script via VAIM for hardware monitoring
    Best Answer

    Broadcom Employee
    Posted Sep 14, 2015 01:30 PM

    Kapil,

    A couple of things to keep in mind.

    An extension can only monitor 1 thing or return 1 value.

    In its simplest form this should work as a snmpget extension,

    $pname = "c:\program files\ca\systemedge\bin\snmpget.exe"

    $VarName = $(&$pname -p 1691 -c YourCommunity -o 1.3.6.1.4.1.546.15.1.1.28.1000000).split("` ")[-1]

    echo $VarName

     

    $pname identifies where sysedge is installed (update to your standard location).

    $varname is the variable you want set. -o Set the oid like 1.3.6.1.4.1.674.10892.1.200.10.1.9 (for power supply).


    You can obviously make this more nested by passing a variable for the VAIM extensions so its all handled by 1 script please let me know if you wish to discuss that further.

    But either you would have to nest the script to read the input variable OR you would have to have individual scripts similar to above for each attribute you want to monitor.

     

    The echo $VarName basically should return this to sysedge as the value to be stored.

     

    You can also use VAIM to push down custom data, by storing it in programdata as in the below tech doc,

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec559385.aspx

     

    Please let me know if you need more assistance on this topic.

    Charlie.