awk/perl script

Michael Gale michael.gale at pason.com
Tue Jul 18 19:52:27 UTC 2006


Looks like a radius setup ?

You can have radius save this info to a database I believe, then a 
select query would be all you need.

Michael

pons wrote:
> Dear all,
> i want to a awk or perl script filter a file contains the following items
> "Date","Time","RAS-Client","Record-Type","Full-Name","Auth-Type","User-Name","NAS-IP-Address","NAS-Port",,,,,,,,,,"Login-IP-Host","Login-Service","Login-TCP-Port","Callback-Number","Callback-ID", 
> 
> "07/17/2006","07:35:43","WAN","Start","Unknown","Unknown","apmc","10.16.0.2
> ","20000","2","1",,,,,,,,,,,,,,,,,,"9560","53539180",
> "07/17/2006","07:35:43","WAN","Start","Unknown","Unknown","aaac","10.16.0.2
> ","20000","2","1",,,,,,,,,,,,,,,,,,"9560","57532280",..............
> ..................
> 
> I want to have the layput as follow
> Date  Time  Username  Phone_No.  IP_address
> 
> madunix

-- 
Michael Gale

Red Hat Certified Engineer
Network Administrator
Pason Systems Corp.




More information about the redhat-list mailing list