I have this code here
<?php $sys = snmprealwalk("192.168.100.100", "cisco1720", ".126.96.36.199.2.1.17"); $sys = array_flip($sys); print_r ($sys); ?>
Which on execution produces:[pre] [wally@macppc dhcp]$ php test.php
[Hex-STRING: 00 04 DC 0C EA AF ] => SNMPv2-SMI::mib-188.8.131.52.0
)[/pre] My questions are:
how to get rid of "Hex-STRING: " and last space " " from the key and "SNMPv2-SMI::" from the value within the array itself?
I've looked for array functions but could not find right one.
how to insert ":" beween xx xx xx xx xx so I get right mac address notation i.e. xx:xx:xx:xx:xx
Thanks everyone for your help!!!