Noticed that the .vbs script sends IP addresses in a zero-padded format, ie.g 010.000.000.001, instead of 10.0.0.1. Yet the audit_linux.sh bash script did not. This caused a problem in the report with all audited systems; you could not properly sort that report by IP if your network contained linux systems.
So I wrote a couple of bash functions and added them to the audit_linux.sh script to pad the IP addresses with zeroes. This worked perfectly, and I checked on the server and now the report with all audited systems can be properly sorted by IP because all IPs are properly zero-padded, whether they come from Windows or Linux machines.
Yet there is a problem. When I click on any of the Linux systems on that report, and I get the summary info page, for some reason the IP address is not shown in that page. Even when the IP address appears fine and zero-padded perfectly on the full report, in this info page, right below the OS installation date, the IP and subnet fields are blank. This happens only for linux machines; Windows machines (audited with the .vbs script, however) do get the IP zero padded in the full report, and that same zero-padded IP appears perfectly on the summary page as well.
If I remove the call to my zero-padding in the linux script, the IP address and subnet do show up again on the summary info page of course, but the full report gets the IP sorting messed up again as well.
Why does the IP appear blank in the summary page of a linux audited machine when I zero-pad the IP address from the audit_linux.sh script?
Last edited by rsaavedra on Fri Aug 13, 2010 2:07 am, edited 3 times in total.
|