Open-AudIT
https://www.open-audit.org/phpBB3/

Device details ip address not upgrade
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6456
Page 1 of 1

Author:  omega4471 [ Fri Aug 14, 2015 8:58 pm ]
Post subject:  Device details ip address not upgrade

When i run the audit script on a pc, the ip address in device detail isn't correct while in the details of the network is correct.

Attachments:
Cattura.JPG
Cattura.JPG [ 128.04 KiB | Viewed 3922 times ]

Author:  jpa [ Sat Aug 15, 2015 3:31 am ]
Post subject:  Re: Device details ip address not upgrade

This is by design. See here for a way to work around the behavior.

Author:  omega4471 [ Sat Aug 15, 2015 10:03 pm ]
Post subject:  Re: Device details ip address not upgrade

Thanks :D

Author:  omega4471 [ Fri May 06, 2016 1:07 am ]
Post subject:  Re: Device details ip address not upgrade

In the older version of OA , i follow tis step:

"The audit result is posted to system -> add_system
Line 739 in controllers/system.php calls a function to set the address, as below.
Code:
$this->m_ip_address->set_initial_address($details->system_id);

Look at the file models/m_ip_address.php and that function to see the logic.
It is below.
I have commented out the print_r that some idiot left in there.... It's difficult to get good help these days :oops:

You could force the setting of the address with each audit submission by changing line 739 to
Code:
$this->m_ip_address->set_initial_address($details->system_id, 'y'); "

In the new version 1.12.4 how can do it?

Thanks

Author:  jpa [ Fri May 06, 2016 6:31 am ]
Post subject:  Re: Device details ip address not upgrade

Is the 1.12.14 ip address behavior still a problem for you? It looks like OpenAudit uses the man_ip_address audit data to update the system and ip tables when processing an audit.

Author:  Mark [ Fri May 06, 2016 10:05 am ]
Post subject:  Re: Device details ip address not upgrade

In 1.12.4, controllers/system.php you can change line 463 to:
Code:
        $this->m_devices_components->set_initial_address($details->system_id, 'y');

Author:  omega4471 [ Fri May 06, 2016 4:57 pm ]
Post subject:  Re: Device details ip address not upgrade

Thanks
:)

Author:  jpa [ Sat May 07, 2016 3:19 am ]
Post subject:  Re: Device details ip address not upgrade

Huh, looks like I need to try harder. I did take a look and this is at line 451 in 1.12.4.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/