![](https://secure.gravatar.com/avatar/06aa7c7b7c1aceeb9f755fe9380d301a.jpg?s=120&d=mm&r=g)
editing html/pages/device/edit/ports.inc.php and changing echo("<td>". $port['ifIndex']."</td>");
to echo("<td><a href="device/device=". $device ['device_id']."/tab=edit/section=single_port/port=".$port['port_id']."">". $port['ifIndex']."</a></td>");
will give us a hyperlink to single_port.inc.php (which doesn't exist yet) and that works a treat, but is propably not the correct way to change pages.
what i need to know next, is how to get the port_id off the command line and into the php - OR - how to change pages so that port_id is valid.
looking at snmp.inc.php, device_id is just magically there. I'm guessing it is handed in by another process. $device = device_by_id_cache($device['device_id'], $ok);
for us to use anything, we will propbably need something like $port = get_port_by_id_cache($port_id);
I have some fibre switches which have no ifAlias entries at all, and it would be nice to be able to fill out the info without having to learn the DB structure and inject sql commands.
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************