[racktables-users] Re: Cablingplan.php Plugin

  • From: Mark Wilkinson <Mark.Wilkinson@xxxxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Wed, 13 Mar 2013 11:51:31 +0000

Hi James, Steven,
   I've been playing with this as well...
I got it to work as follows on Racktables version 2.20.3
        Cablingplan.php goes to the plugins directory
        Cablingplan.png goes to the wwwroot/pix directory
               Patch the wwwroot/index.php with this :-
Line 263 to 268 :-
                renderInstallerHTML();
                break;
        case 'rendercablingplan' == $_REQUEST['module']:
                require_once 'inc/init.php';
                renderCablingPlan();
        break;

then on the Main page of Racktables you should see a new block called 
'Cablingplan' (mine appears on the 3rd row after Virtual Resources)

If you have objects with ports that are Linked then the Cabling plan page 
should draw you a pretty Graphviz picture (please note that you also need the 
PEAR GraphViz module installed for this to work).

Hope this helps.
Regards
Mark Wilkinson




                Mark Wilkinson
                UNIX Systems Administrator/Developer

                T: +44 333 240 3207
                M: +44 7848 016 221

                E: Mark.Wilkinson@xxxxxxxxxxx
                W: http://www.gamma.co.uk

This is an email from Gamma Telecom Ltd, trading as "Gamma". The contents of 
this email are confidential to the ordinary user of the email address to which 
it was addressed. This email is not intended to create any legal relationship. 
No one else may place any reliance upon it, or copy or forward all or any of it 
in any form (unless otherwise notified). If you receive this email in error, 
please accept our apologies, we would be obliged if you would telephone our 
postmaster on +44 (0) 808 178 9652 or email postmaster@xxxxxxxxxxx

Gamma Telecom Limited, a company incorporated in England and Wales, with 
limited liability, with registered number 04340834, and whose registered office 
is at 5 Fleet Place London EC4M 7RD and whose principal place of business is at 
Kings House, Kings Road West, Newbury, Berkshire, RG14 5BY.


-----Original Message-----
From: racktables-users-bounce@xxxxxxxxxxxxx 
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of James Bensley
Sent: 13 March 2013 10:55
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Re: Cablingplan.php Plugin

On 7 March 2013 22:45, Steven Brown <sbrown@xxxxxxxxxxxxx> wrote:
> Does this plugin work?
>
> I have installed it without issue but when I click on the item from
> the main page, it comes up with no diagram on either the PNG or SVG tab.

You got that? :) I got nothing!

I have copied the .php and .png file into inc/ and pix/ respectively.
I had also patched index.php manually (as the patch isn't valid for the latest 
version of RackTables). I don't get any logo or image on the front page, or 
anywhere. How do I even access this plugin?

Cheers,
James.


Other related posts: