Welcome, Guest. Please login or register.

Author Topic: Nortel-JDM-Integration  (Read 3491 times)

SteffenS

  • Guest
Nortel-JDM-Integration
« on: April 20, 2010, 08:20:01 AM »
Hello,

if you have to manage a lot of Nortel devices, you can insert a link to your local Nortel-JavaDeviceManager in the Devices-Status.php (in /var/www/htdocs/ in NeDiO) by doing like this:

1. get an icon with name nortel16x16.png with 16*16 pixel for your new link and put it in /var/www/htdocs/img/16/
    (images.google.com can help you here)

2. change the Devices-Status.php by adding 2 lines from this
Code: [Select]
<tr><th class="<?=$modgroup[$self]?>2"><?=$manlbl?> IP</th><td class="txtb">
<a href="https://<?=$ip?>" target="window"><img src="img/16/glok.png" align="right" title="HTTPS"></a>
<a href="http://<?=$ip?>" target="window"><img src="img/16/glob.png" align="right"  title="HTTP"></a>
<a href="ssh://<?=$ip?>"><img src="img/16/lokc.png" align="right"  title="SSH"></a>
<a href="telnet://<?=$ip?>"><img src="img/16/loko.png" align="right" title="Telnet"></a>
<?=(Devcli($ip,$dev[16]))?>
</td></tr>
<tr><th class="<?=$modgroup[$self]?>2"><?=$orilbl?> IP</th><td class="txta">
<a href="https://<?=$oi?>" target="window"><img src="img/16/glok.png" align="right" title="HTTPS"></a>
<a href="http://<?=$oi?>" target="window"><img src="img/16/glob.png" align="right"  title="HTTP"></a>
<a href="ssh://<?=$oi?>"><img src="img/16/lokc.png" align="right"  title="SSH"></a>
<a href="telnet://<?=$oi?>"><img src="img/16/loko.png" align="right" title="Telnet"></a>
<?=(Devcli($oi,$dev[16]))?>
</td></tr>
to this
Code: [Select]
<tr><th class="<?=$modgroup[$self]?>2"><?=$manlbl?> IP</th><td class="txtb">
<a href="https://<?=$ip?>" target="window"><img src="img/16/glok.png" align="right" title="HTTPS"></a>
<a href="http://<?=$ip?>" target="window"><img src="img/16/glob.png" align="right"  title="HTTP"></a>
<a href="ssh://<?=$ip?>"><img src="img/16/lokc.png" align="right"  title="SSH"></a>
<a href="telnet://<?=$ip?>"><img src="img/16/loko.png" align="right" title="Telnet"></a>
<a href="jdm://<?=$ip?>"><img src="img/16/nortel16x16.png" align="right" title="Nortel-JDM"></a>
<?=(Devcli($ip,$dev[16]))?>
</td></tr>
<tr><th class="<?=$modgroup[$self]?>2"><?=$orilbl?> IP</th><td class="txta">
<a href="https://<?=$oi?>" target="window"><img src="img/16/glok.png" align="right" title="HTTPS"></a>
<a href="http://<?=$oi?>" target="window"><img src="img/16/glob.png" align="right"  title="HTTP"></a>
<a href="ssh://<?=$oi?>"><img src="img/16/lokc.png" align="right"  title="SSH"></a>
<a href="telnet://<?=$oi?>"><img src="img/16/loko.png" align="right" title="Telnet"></a>
<a href="jdm://<?=$ip?>"><img src="img/16/nortel16x16.png" align="right" title="Nortel-JDM"></a>
<?=(Devcli($oi,$dev[16]))?>
</td></tr>

3. copy your JDM.BAT to a new file named JDMparam.BAT (both in "C:\Program Files\Nortel\JDM\" normaly) and change it so:
    JDMparam.BAT
Code: [Select]
@echo off

echo Launching Java Device Manager ...

SET HOSTIP=%1
echo value from browser: %HOSTIP%
SET HOSTIP=%HOSTIP:~7,-2%
echo filtered IP: %HOSTIP%
SET JDM_HOME=C:\Program Files\Nortel\JDM
SET javaCmd=%JDM_HOME%\jre\bin\java

"%javaCmd%" -Xmx256m -DEMPATH="%JDM_HOME%" -jar "%JDM_HOME%\jdm.jar" %HOSTIP%

@echo on

4. create a new txt-file named jdm.reg, fill it with this:
jdm.reg
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\jdm]
@="URL:jdm Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\jdm\shell]
@="open"

[HKEY_CLASSES_ROOT\jdm\shell\open]

[HKEY_CLASSES_ROOT\jdm\shell\open\command]
@="\"C:\\Program Files\\Nortel\\JDM\\JDMparam.BAT\" \"%1\""
and finaly include it in your windows-registry (double-click)

5. If you want to use firefox (and not the dirty blue "e"  ;D ), open it, go to "about:config" (and accept the question - yes, we know what we do!) and include following options:
Code: [Select]
network.protocol-handler.app.jdm;"C:\Program Files\Nortel\JDM"      (string)
network.protocol-handler.expose.jdm;true                                   (boolean)
network.protocol-handler.external.jdm;true                                  (boolean)
network.protocol-handler.warn-external.jdm;false                         (boolean)

... and TATTAAAAAA....

if you now click on the new link, your JDM comes to open this device

Have a lot of fun!

steffen1

  • Guest
Re: Nortel-JDM-Integration
« Reply #1 on: May 31, 2010, 11:43:52 PM »
sounds nice, next time I will deal with a Nortel network I will try it, Steffen