Menu

Subnet - IP Usage enhancement

2012-05-06
2012-12-19
  • michal.bruncko

    michal.bruncko - 2012-05-06

    Hello all,
    I am using Subnets section in iTop. But when I click on defined network I see on "IP Usage" tab only interfaces with IP addresses (of servers) from that subnet, BUT not the network devices itself.
    I.e. imagine the classic manageable switch - you will define the management IP only on device itself and not on specific switch port/interface (of course… because switch is reachable on management via any used port in default) - and this is the issue - I cannot see in "IP Usage" tab also network devices. Please can anyone navigate me with modifying iTop to displaying also devices in "IP Usage" tan in case of their management IPs are memeber of that subnet?

    many thanks

     
  • michal.bruncko

    michal.bruncko - 2012-05-07

    Done,
    into "DisplayBareRelations" function of Subnet class included:

                            $oNetDevFilter = DBObjectSearch::FromOQL("SELECT NetworkDevice AS netdev WHERE INET_ATON(netdev.management_ip) >= INET_ATON('$sIPMin') AND INET_ATON(netdev.management_ip) <= INET_ATON('$sIPMax')");
                            $oNetSet = new CMDBObjectSet($oNetDevFilter);
                            $oBlock = new DisplayBlock($oNetDevFilter, 'list', false);
                            $oBlock->Display($oPage, 'management_ip', array('menu' => false));
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.