Wednesday, September 26, 2012

Opnet INSTALLATION, OPNET 14.5 Configuration

Hello,
This is my first blog post. Hope it will be interesting to you. I am going to start with network simulator tool OPNET14.5.
So, What is OPNET14.5 ????
OPNET is a network modeler through which one can design any kind of network model and then can simulate it. 14.5 is the version of OPNET and it is freeware.
Here simulation means OPNET will generate the traffic as defined in attributes set by user and will generate results like utilization, collision, load, etc (these analysis parameters are again set defined by user. We will discuss later on how to define each attribute).

Now, first we will discuss about how to install and major part is how to configure the OPNET on MS VS2008.

INSTALLATION
OPNET 14.5 modeler have three packages. So install them in sequence as:
1. First install OPNET Modeler.
2. Second Install OPNET documentation.
3. Then last install OPNET library.
Also,  note that every package is installed in same directory.

CONFIGURATION
Now, after installing one have to set environment variables. So, I think first question will be why we need to set environment variables?? If we don't do what will happen???

Well, I will answer you at the end of this discussion. :) :)

I am considering that MS VS2008 is installed in default directory i.e.( C:\Program Files\Microsoft Visual Studio 9.0\ ). First right click on 'My Computer' choose 'Advanced" tab and the click on 'Environment Variables'. Then in system variables add following variables:
a) PATH
     C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
     C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
     C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
     C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\bin;
     C:\WINDOWS\Microsoft.NET\Framework\v3.5;
     C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
     C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;
     C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
b) LIB
    C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
    C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
    C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;
c) LIBPATH
    C:\WINDOWS\Microsoft.NET\Framework\v3.5;
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
    C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
    C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
d) INCLUDE
    C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
    C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\include; 
e) NetSamplePath
    C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5;
f) DevEnvDir
    C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
g) FrameworkDir
    C:\Windows\Microsoft.NET\Framework;
h) FrameworkSDKDir
    C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5;
i) FrameworkVersion
    v2.0.500727;
j) VCBUILD_DEFAULT_CFG
    Debug^|Win32;
k) VCBUILD_DEFAULT_OPTIONS
    /useenv;
l) VCINSTALLDIR
    C:\Program Files\Microsoft Visual Studio 9.0\VC;
m) VSINSTALLDIR
    C:\Program Files\Microsoft Visual Studio 9.0;

Oops!!!!! lot of variables...:) :)
Now I will answer the question raised at the starting of discussion Why it is required??
So we can design a network in two ways a) Using the Object Pallete and  b) Through coding... Obviously no one wants to do it though coding when everything is graphically done by just setting attributes and code will be generated for same. So whatever you are designing graphically , for same a code  will be generated in C that needed to be compiled before we do simulation so all these variable we defined above will set the path for all header files required for compilation and execution of the network. That's why OPNET requires VS2008 because it uses VS2008 for code compilation and execution. That's why we need to set these environment variables. I think now you got answer of first question that why we did that. Now if we don't do it then we can design the network but cant simulate it.
I think if you go to manual of OPNET you will find the same variable but if it is for VS2005 the directory names will be different for example .Net framework used in VS2005 is v2.0 while in VS2008 it is v3.5 so you need to make changes at all respective places.
Also if you get error during compilation that

gna_email_mgr.pr.tmp.c

c:\opnet\14.5.a\sys\include\vos.h(105) : fatal error C1083: Cannot open include file: 'WinDef.h': No such file or directory.

Then search the Windef.h in my computer. You will get lot of results but you have to select the path as:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;
Copy the address and append it to 'INCLUDE' environment variable value.

I think now we are done with configuration.
uuuhhhhh!!!!!! It seems that we have done a kind of project :) :) but exactly speaking we have just set the environment for our projects :) :).
Hope it gives you enough information to set OPNET 14.5 network modeler. 

Follow this steps instead to configuration files

OPNET 14 installation guide.doc

Configuring OPNET 12.0 with .NET 2005 on Windows 64 XP Professional.doc


see and do

Opnet does not have a compiler. You have to install compilers like VC++ or visual studio 2005 or anyother version. Then you have to change the environment variable of your computer. It will be in properties of your MyComputer

On Windows NT:
Start -> Settings -> Control Panel -> System -> Environment
On Windows 2000 and Win XP:
Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables

Each time a variable is updated, you need to click the Set button for the changes to take effect. Once all of the changes have been made, click OK to close the dialog box.

Note that for some systems, the 8.3 format must be used in order to see proper behavior (e.g. "C:\PROGRA~1\MICROS~1\Common\Tools"). Note also that spaces should not be used immediately after the semicolon (";") character in the environment settings. for further help in setting system environment variables, contact your system administrator.

----------------------------------------------
THE FOLLOWING INSTRUCTIONS ARE FOR Windows NT, Windows 2000 and Win XP:

************* IMPORTANT NOTE *****************
For all of the environment variables below, do not put spaces between the directories.
There should be NO SPACE between the semicolon ";" and the drive letter of the next directory!

For example, the following is CORRECT:
C:\Program Files\Microsoft Visual Studio\Common\msdev98\BIN;C:\Program Files\Microsoft Visual Studio\VC98\BIN;

However, the following is INCORRECT:
C:\Program Files\Microsoft Visual Studio\Common\msdev98\BIN; C:\Program Files\Microsoft Visual Studio\VC98\BIN;
******************************

Add the following items to the PATH environment variable.
C:\Program Files\Microsoft Visual Studio\Common\msdev98\BIN;
C:\Program Files\Microsoft Visual Studio\VC98\BIN;
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT;
C:\Program Files\Microsoft Visual Studio\Common\TOOLS;

Add the following items to the INCLUDE environment variable.
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE;
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE;
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE;

Add the following items to the LIB environment variable.
C:\Program Files\Microsoft Visual Studio\VC98\LIB;
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB;

Add the following item to the MSDevDir environment variable.
C:\Program Files\Microsoft Visual Studio\Common\MSDev98

Note: These instructions assume MSVC was installed in the default location.
If MSVC was installed in a different location on your system you may need to
modify the paths specified above to match your installation.

TO VERIFY THAT THESE SETTINGS ARE CORRECT:

One quick way is to open a new OPNET Console (from the "Start" button, select "Program Files"->"OPNET Modeler" -> "OPNET Console") then type the following and examine the output of "path", "lib" and "include" environment variables.

prompt> set

Another way to check, is to type the following command:

prompt> cl

If it returns the following output:

Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

Then it means that MSVC++ is in your path.

Note: If the instructions in this FAQ do not appear to succeed, in certain very rare cases, it has been reported that the issues may be fixed by using tildes ('~') in the above paths to achieve 8.3 format such as:
C:\PROGRA~1\MICROS~1\Common\MSDev98

If you continue to experience issues, you may also wish to see the paths used by MS Visual C++ by examining the file:
C:\Program Files\Microsoft Visual Studio\VC98\BIN\VCVARS32.bat


Have a nice day

38 comments:

  1. hi thank you for ur wonderful information ...please let me know is this environment settings for windows seven .....i m trying to install opnet 14.5 on windows 7 x 86 but with out no success ... i have downloaded the MSVS 2005 and 2008...so any tips u can give me highly appreciated

    ReplyDelete
  2. :https://enterprise1.opnet.com/tsts/4dcgi/FAQ_SEARCH

    follow the steps for configuration


    1) Install C++ and .net from Visual Studio 2005. (2008 or any other versions are not matching the OPNET V.14


    2) Install the OPNET files with bellow order:
    modeler_140A_PL3_6313_win.exe
    For any question about compiler, choose YES.
    Choose Standalone installation mode.
    models_140A_PL3_17Oct07_win.exe
    modeler_docs_140A_PL2_24-Sep-2007_win.exe



    3) After installing successfully, set system environments. Right click to "my computer" and choose "properties"; In "advanced" tab click "environment variables" and add bellow system environment to it. If your windows directory or program files is different please edit folowing paths. To make sure that bellow env variables are taking affect, rung the CMD (as admin) and type each label. It should show the same edited fields.



    PATH=
    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINNT\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin;C:\WINNT\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages;

    INCLUDE=
    C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;

    LIB=
    C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;

    LIBPATH=
    C:\WINNT\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;NetSamplePath=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;FrameworkDir=C:\WINNT\Microsoft.NET\Framework;FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;FrameworkVersion=v2.0.50727;VCBUILD_DEFAULT_CFG=Debug^|Win32;VCBUILD_DEFAULT_OPTIONS=/useenv;VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC;VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8;


    4) To ensure that the .NET product is installed correctly, open a Command Prompt and type "cl" to invoke the compiler. Then type "link" to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation.




    5) copy files from your \sys\pc_intel_win32\bin\manifest to \sys\pc_intel_win32\bin


    6) For cracking This software only Run "OPNET.Modeler.14.5.License.Maker.exe" the license file will be generated in C driver.
    7) Run the “License Manager” (from start menu) as administrator for license activation. The Opnet main program also will be run after license activation.
    8) To run the Opnet normally, run “Opnet Modeler 14” from start menu as administrator.

    ReplyDelete
  3. hi bro thank you for the reply ...i ll start it again and let u know the results

    ReplyDelete
    Replies
    1. so i should install opnet 14...not 14.5 ??? right ?

      Delete
  4. follow these steps to install opnet 14.5 similar steps above given

    except file name 14.5 instead of 14
    no major change

    ReplyDelete
  5. hi bro im installing 14.5 now ..just have 1 question about the above step 5 (5 copy files from your \sys\pc_intel_win32\bin\manifest to \sys\pc_intel_win32\bin ) ..

    i dint get that part ...i should copy all files from C:\Program Files\opnet\14.5A\sys\pc_intel_win32\bin\ to where exactly .....................

    ReplyDelete
    Replies
    1. in \sys\pc_intel_win32\bin\manifest ...if "manifest" is a folder i dont see it ..please help

      Delete
  6. editions with Windows 7 and I recommend:
    Opnet Modeler 14.5
    This will only work with Visual Studio 2005 (the version I have does anyway). If you are unsure, when entering the environmental variables look at the directory and see if corresponds with VS 2005 / 2008.

    Through trial and error the easiest method was to reformat Windows and install Visual Studio 2005 (turn all windows updates off as it will try update patches that can cause issues with Opnet). This is because its impossible (or very difficult) to remove all traces of newer versions.
    Install Opnet then enter the environment variables.

    ReplyDelete
    Replies
    1. i have windows 7 installed on my computer and opnet 14,5,and virtual studio 2010,but opnet shows me error when i try to make e simulation,i have put the environement variables but it is the same.What can i do ?

      Delete
  7. hi friend i have an error on opnet to run any simulation so plz help .how i run

    External code file (grp_support) compilation failed
    due to error on source line (105)
    Errors given in file (C:\Documents and Settings\dhrm\op_admin\tmp\cc_err_4024)

    ReplyDelete
  8. hello friend
    i have an error in opnet to execute a simulation

    <<< Recoverable Error >>> |
    | Object repository construction failed |
    | due to errors encountered by the binder program (bind_so_msvc) |
    | T (0), EV (-), MOD (NONE), PROC (sim_load_repos_rebuild) |
    |-----------------------------------------------------------------------------|
    |-----------------------------------------------------------------------------|
    | Errors reported by the binder program follow |
    | (these messages have been saved in (C:\Documents and Settings\dhrm\op_admin\tmp\bind_err_2784): |
    | LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' |
    |-----------------------------------------------------------------------------|

    <<< Program Abort >>>
    * Time: 21:41:33 Mon Feb 04 2013
    * Product: modeler (32-bit)
    * Package: Simulation Kernel
    * Function: sim_load_repos_load
    * Error: Error encountered rebuilding repository -- unable to proceed
    T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load)

    |-----------------------------------------------------------------------------|
    | <<< Program Abort >>> |
    | Error encountered rebuilding repository -- unable to proceed |
    | T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load) |
    |-----------------------------------------------------------------------------|

    ReplyDelete
    Replies
    1. hi. I also have this error, I hope there is some sort of solution

      Delete
    2. http://stackoverflow.com/questions/14275853/opnet-simulation

      Delete
  9. me too. krishna Ramtake , can you help me fix this error.??

    ReplyDelete
    Replies
    1. Me too have this error
      Did u guys find any solution??
      If yes, kindly share
      thanks

      Delete
    2. I fixed this error, you should follow clip:
      http://www.youtube.com/watch?v=6CaV12xknug
      It worked for me.

      Delete
  10. hi
    can encrytion algorithm works in opnet 14.5?how?

    ReplyDelete
  11. comp_msvc: Unable to execute compiler (Win32 error code: 2)
    Check that Visual C++ has been installed correctly, and that
    its BIN directory is included in the Path environment variable.
    wt does it mean.???? m using vs2005 and 14.5 opnet version

    ReplyDelete
  12. hi i have an error cc_err_592. On opening the file in notepad it show me oms_string_support.ex.tmp.c
    c:\14.5.a\sys\include\vos.h(98) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
    please help me
    i am using window xp sp3 in vmware
    opnet 14.5 wit vs 2008

    ReplyDelete
  13. Hi
    I would like to know how to design a wdm-pon architectures with opnet modeler 14.5

    ReplyDelete
  14. i have windows 7 installed on my computer and opnet 14,5,and virtual studio 2010,but opnet shows me error when i try to make e simulation,i have put the environement variables but it is the same.What can i do ?

    ReplyDelete
  15. HELLO I HAVE INSTALLED OPNET 14.5, I TRIED TO RUN THE 64 BIT VERSION AS I HAD MY WORK IN UNI DONE IN 64BIT, (WON'T FUNCTION ON 32BIT) BUT EVERY TIME I TRY TO RUN THE 64BIT OF OPNET I KEEP GETTING THIS ERROR AND IT ABORTS

    <<< Program Abort >>>
    * Time: 20:47:49 Fri May 03 2013
    * Product: modeler (64-bit)
    * Program: modeler (Version 14.5.A PL8 Build 7808 64-bit)
    * System: Windows NT 6.1 Build 7601
    * Package: Vos (Virtual Operating System)
    * Function: Vos_Prod_Opt_Dl_Load
    * Error: To run product option (3dnv), shared object (op_3dnv.gui64.i0.ets.dll) must be in your model directories.
    Cannot load product option (3dnv).

    * Function call stack: (builds down)
    ------------------------------------------------------------
    Call Block
    Count Line# Function
    ------------------------------------------------------------
    0) 1 153 0xf0466e0a [name not available]
    1) 1 2211 0x00004c00 [name not available]
    2) 1 1102 0x0000c400 [name not available]
    3) 1 5157 m3_main
    4) 1 173 Vos_Prod_Opt_Dl_Load
    ------------------------------------------------------------

    ReplyDelete
    Replies
    1. i got around this problem re-installing and variables again but then i still get compilation errors and no optimized 64 bit option on the simulation either... just a long lists of errors.. not to mention the fact my original work done in uni is not compatible with 14.5, the log states must be opened with 17.5 :( complete disaster someone please help lol

      Delete
    2. This comment has been removed by the author.

      Delete
  16. hey i m new to opnet. when i try to compile process model. it shows following error:

    comp_msvc: Unable to execute compiler (Win32 error code: 2)
    Check that Visual C++ has been installed correctly, and that
    its BIN directory is included in the Path environment variable.

    please help me overcome this problem.. waiting for help...

    ReplyDelete
    Replies
    1. i have the same problem....please tell me how to fix it if someone tell u how to do

      Delete
  17. installing opnet 14.5 with visual studio professional 2012.......
    plz send me the path detail...
    im getting error for bin using above explained steps..
    mekishan007@gmail.com
    thnx

    ReplyDelete
  18. i m using opnet modeler 14.5 on window 7 (32bit) opertaing system.simulation is run correctly but i add wpan in modeler it accept it but when i search it in object pallate , wpan is not included here..plz tell me about this problem how can i add wpan in modeler. my window is 32bit but start>program> opnet modeler 14.5 (64-bit) appear is this errror which create hurdle to add wpan model directory plz help me

    ReplyDelete
  19. getting error like: comp_msvc: Unable to execute compiler (Win32 error code: 2) Check that Visual C++ has been installed correctly, and that its BIN directory is included in the Path environment variable.

    what 2 do

    ReplyDelete
  20. Install OPNET 14.5 on Windows 7 with Visual Studio 2010

    watch & perform the installation

    http://www.youtube.com/watch?v=6CaV12xknug

    ReplyDelete
  21. i have this error when i installing the first file (modeler_145A_PL8_7808_win):
    error is : {This installation package is not supported by this processor type.Contact your product vendor.
    pleas any one help me ? !!!!!!!!!!!!1

    ReplyDelete
  22. hI...I done with the all steps... But after license activation, I should able to Opnet modeler. Still it saying could not obtain license from license server. I already cracked the license. but still whenever I open Opnet modeler it display like that


    ReplyDelete
  23. I am using Opnet Modeller Academic Edition 14.5.

    Upon opening project 1571_lab1_ref... I get this error message:

    Simulation model (1571_lab1_ref-QPSK) could not be read
    File is of an incompatible version
    Use 'op_manfile -header_print -m 1571_lab1_ref-QPSK to verify file version

    I have also tried it with another project that I have made - same error. What can I do..help me
    from:priyababel2011@gmail.com

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. Hi..
    Iam using riverbed opnet modeler 17.5
    I have validated the license but still i get a warning though I have not used any advanced components in the network.

    Product: Generic Product (32-bit)
    * Package: Vos (Virtual Operating System) / Env (Environment Variable)
    * Function: Function Name Unavailable
    * Error: Attempt to open environment file failed
    File Path: C:\Program Files (x86)\Riverbed EDU\\17.5.A\sys\configs\global_prefs\licensing.ef

    Please help me with this

    ReplyDelete
  26. Hello

    I have downloaded riverbed modeler academic edition 17.5 and have followed all the steps to activating license.But it has failed.It says invalid activation license approval code.i really don't know where the problem is.

    Kindly help me with this.

    Thankyou

    ReplyDelete
  27. does anyone have OPNET 17.5 modeler installation package? thanks

    ReplyDelete