Jump to content

Almost there - but need help from a expert.


fanta1066

Recommended Posts

I have already posted something similar. However what I did not post was the entire problem, which I have described below. This is far more complicated then my prior post.

 

As explained, I am not a developer. I am a network engineer.

 

I have the following output (below), all that data has been sent to arrays. Each set of output has approximately 1000 entries, some have slightly more.

I need some php code which will iterate through each array and (where the BOLD numbers match in all of the arrays, to pull out the data after the  Value=

 

 

Array name = alpha1

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.52, Type=OctetString, Value= 84 B1 E4 6E 93 4F

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.53, Type=OctetString, Value= 1C 6A 76 41 09 B9

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.65, Type=OctetString, Value= 1C 6A 76 45 D6 5D

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.67, Type=OctetString, Value= CE B9 5E 32 17 61

 

Array name = alpha2

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.52, Type=OctetString, Value=svc_rover@gstt.local

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.53, Type=OctetString, Value=svc_rover@gstt.local

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.65, Type=OctetString, Value=svc_rover@gstt.local

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.67, Type=OctetString, Value=svc_rover@gstt.local

 

Array name = alpha3

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.52, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.53, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.65, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.67, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI

 

Array name = alpha4

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.52, Type=TimeTicks, Value=4 days, 0:35:49.00

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.53, Type=TimeTicks, Value=3 days, 7:32:33.00

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.65, Type=TimeTicks, Value=8:20:48.00

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.67, Type=TimeTicks, Value=3 days, 7:26:52.00

 

Array name = alpha5

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.52, Type=Integer, Value=4

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.53, Type=Integer, Value=4

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.65, Type=Integer, Value=4

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.67, Type=Integer, Value=4

 

Array name = alpha6

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.52, Type=OctetString, Value=HH.Porters.2022

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.53, Type=OctetString, Value=F.11.P.G

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.65, Type=OctetString, Value=F.2.P.G

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.67, Type=OctetString, Value=HH.MAPLE.WARD.DOSA.BEDS

 

 

Array name = alpha7

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.52, Type=Integer, Value=3240

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.53, Type=Integer, Value=3240

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.65, Type=Integer, Value=3240

OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.67, Type=Integer, Value=3240

 

 

Thank you for all your help.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.