Ad Widget

Collapse

...more of ITEM.VALUE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gbiondi
    Member
    • Nov 2016
    • 75

    #1

    ...more of ITEM.VALUE

    Hi..
    I have a value get on trap (read with item.value1) like this:

    14:40:43 2017/02/17 .1.3.6.1.4.1.31023.1.1.1.0.2 Events” "“Status" xxx-vcenter.xxx.it - SNMP Job completed Job-Name=02 - Adito VM-Name=Adito Source-Host-Name=xxx-vcenter.xxx.it Status=Failed

    I want get the substring after the string "Job-Name="
    .. in this case "02 - Adito"

    In other word, i want the name of failed job.. is possibile extract from item.value1 this substring?

    All the best..
  • gbiondi
    Member
    • Nov 2016
    • 75

    #2
    ...also solution like his can be ok:

    14:40:43 2017/02/17 .1.3.6.1.4.1.31023.1.1.1.0.2 Events” "“Status" xxx-vcenter.xxx.it - SNMP Job completed Job-Name=02 - Adito VM-Name=Adito Source-Host-Name=xxx-vcenter.xxx.it Status=Failed

    ..get characters from 98° to 110°..

    like old mid$ "BASIC" language programming..

    https://www.c64-wiki.com/wiki/MID$

    Comment

    Working...