Advertisement
Guest User

Untitled

a guest
Nov 26th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. Hi Maurizio,
  2.  
  3. This is how to install EMON and DAP bridge in your Windows PC:
  4.  
  5. Install EMON and DAP bridge
  6. Download and run installemon-1.09.exe from https://cisco.box.com/s/k83tr1j8uhhf2pys4vn73ewedk1y18zx
  7. If you can’t get access to the box folder, Marco Liri is the owner.
  8. Download and run install_BossHogg_info_model_0.94.exe from https://cisco.box.com/s/k83tr1j8uhhf2pys4vn73ewedk1y18zx
  9. Download and run installDapBridge-1.4.exe from https://cisco.box.com/s/k83tr1j8uhhf2pys4vn73ewedk1y18zx
  10. DAP bridge is just a relay program that sits on top of your actual DAP port on the BossHogg box and provides that DAP access on a local TCP port on your PC. This allows to have multiple DAP clients at the same time, e.g. EMON and Python.
  11. In c:\Program Files (x86)\CiscoOptical\DAP Bridge\ copy default.xml to default.xml.save just to have a backup
  12. Edit default.xml to contain just the following
  13. <?xml version="1.0" encoding="UTF-8"?>
  14. <!--
  15. Default DAP-Bridge configuration file.
  16. $Id: $
  17. -->
  18.  
  19. <DapBridge>
  20. <Server port="20000">
  21. <Forward>
  22. <Connection method="tcp">
  23. <Tcp host="10.58.227.87" port="5445"/>
  24. </Connection>
  25. </Forward>
  26. </Server>
  27. </DapBridge>
  28. 10.58.227.87 and 5445 are just examples, you need to change them to the actual IP address and port number under which DAP is available on your BossHogg box.
  29. Note, usually your text editor needs to have admin rights to save the file where it is. If that is not possible, copy the file to some non-restricted place, edit it there, and move it back to c:\Program Files (x86)\CiscoOptical\DAP Bridge\.
  30. Start DAP bridge by double-clicking the icon on your desktop.
  31. You may leave it open even if the box’s DAP is not available. The DAP bridge will automatically (re-)connect, sometimes is takes some significant time.
  32. You may minimize the DAP bridge’s window, you will then have an icon ‘DAP’ in the system tray that is red if not connected and green if connected. Depending on the Windows version it may be of advantage to select that icon to be permanently displayed and not automatically hidden.
  33. Start EMON by double-clicking the icon on your desktop.
  34. Go to Tools -> Options -> Transport. There, select Tcp connection, and put: Host name: localhost, Port: 20000, Timeout (ms): 100
  35. You can leave EMON open, it will automatically (re-)connect as soon as the target becomes available. You will notice that by the text in the status bar turning from blue to black.
  36.  
  37. Here is what you need to do in order to prepare your Windows PC for using Python on DAP:
  38.  
  39. Install Python2.7, 32-bit version
  40. Download and run python-2.7.15.msi from https://cisco.box.com/s/k83tr1j8uhhf2pys4vn73ewedk1y18zx
  41. Keep the default folder it wants to install to c:\Python27.
  42. If you don’t have already install a subversion (SVN) client
  43. https://tortoisesvn.net/downloads.html
  44. Use the 64-bit version if you PC supports that.
  45. Select installation of the command line version as well (which is per default not being installed).
  46. Check out the SVN repository https://wwwin-svn-sjc.cisco.com/otbu/syt/Krakatoa/trunk to c:\Krakatoa
  47. user: fat password: core2017FAu!
  48. Open a cmd window in c:\Krakatoa\sytpy\ and run SetupForUseWithoutTestInstruments.bat
  49. Open a cmd window in c:\Python27\ and run
  50. python -m pip install --upgrade pip
  51. python -m pip install --upgrade setuptools
  52. python -m pip install -r c:\Krakatoa\sytpy\requirements.txt
  53.  
  54.  
  55.  
  56. This is how to run the actual script:
  57.  
  58. Open a cmd window in c:\Krakatoa\integration\
  59. Make sure c:\Krakatoa is in the PYTHONPATH, e.g. by typing
  60. set PYTHONPATH=c:\Krakatoa
  61. Open c:\Krakatoa\integration\Config_submarine_trial.py in an editor, and revise as needed
  62. Run python.exe Config_submarine_trial.py
  63.  
  64. Please get in contact with me if you run into problems.
  65.  
  66. Best regards,
  67. Soeren
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement