!unlike has asked for the wisdom of the Perl Monks concerning the following question:

Hello there my pot bellied, balding bretheren,

I am currently trying to investigate a problem with a RADIUS server. To solve this problem the server's admin has requested I send the RADIUS packet data in a hex format.

Unfortunately Net::Radius::Packet does not have a method that will allow me to do this. The method dump() just prints that RADIUS packet in plain text and pack() returns it in a format ready to send to a server/client, but it is not in a hex format.

A google search and "Super Search" have not discolvered anything of use. Nor have my attempts at producing the hex output from the Net::Radius::Packet object.

Is there any amoungst you who can help me on this path of "enlightenment"?

cheers

!unlike

I write my Perl code like how I like my sex: fast and dirty. ;)

Replies are listed 'Best First'.
Re: hex output for RADIUS packet
by Anonymous Monk on Sep 23, 2003 at 10:52 UTC
    print unpack("H*", $packet);

      Thanks!

      I tend not to dabble with pack/unpack and so forget its existance, let alone it usefulness!

      Cheers

      !unlike

      I write my Perl code like how I like my sex: fast and dirty. ;)