Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also, You will need to create a folder named "fix-scripts" somewhere on your local machine. In my case I had it under "C:\Users\Omar\projects\fix-scripts". This is the folder where all scripts will be loaded to.

Tip: "application.properties" file needs to be created in "/msr-cacti-utilisation/src/main/resources" inside that file it should have this line "files.outputdirectory=C:\\Users\\Omar\\projects\\fix-scripts\\ " This is the path for "fix-scripts" folder. 

Steps to follow:

  1. Open Eclipse/IntelliJ and browse to "msr-cacti-utilisation" - As mentioned above, this is in Git https://gitlab.geant.net/msr-automation/cacti-utilisation 
  2. Make sure to change the month and year in the "Main" class "cacti-utilisation\src\main\java\org\geant\msr\utilisation\Main.java" Lines 36 and 37
  3. Run the maven project (cacti utilisation) from Eclipse/IntelliJ. This will generate the script files and will save them in ""fix-scripts" folder.
  4. Copy the produced files (C:\Users\Omar\projects\fix-scripts) to your home directory on "prod-cacti01-fra-de.geant.net". You can use WinSCP client from Windows machine.
  5. Log into prod-cacti01-fra-de.geant.net as yourself 
  6. Copy the scripts from your home directory to "/home/cactiuser/scripts" on "prod-cacti01-fra-de.geant.net". To copy multiple files:  sudo cp fix_* /home/cactiuser/scripts/  

...

Results will be shown on this page:  http://test-msr.geant.net:8888/msr/ip_util_ip.jsp

The scripts below are what you've already generated from cacti-utilisation application and copied them from fix-scripts folder.

...