Hi,
How can I convert the binary form of the ip address returned from the
snmp query below (resolving the ip of a cdp neighbour), to the normal
x.x.x.x form.
Any help greatly appreciated.
Sample prog.
my $SNMPSTR = $community . "@" . $ipAddr . ":::::" . "1";
my @oidInfo = snmpwalk("$SNMPSTR", "1.3.6.1.4.1.9.9.23.1.2.1.1.6");
foreach my $entry (@oidInfo) {
my ( $index, $neighbour ) = split(':', $entry, 2);
my $binIp = snmpget("$SNMPSTR", "1.3.6.1.4.1.9.9.23.1.2.1.1.4.$index");
}
Bernard
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/