Spring 2010
ENSC 427: COMMUNICATION NETWORKS

OPNET (version 14.0) environment info

  • 1. Login to any of the seven ENSC Sun workstation (Solaris OS) in the ENSC Undergraduate Computer room: ESIL Lab ASB 1000B/ASB 10803. If you use a workstation from a different location, please ssh to payette.ensc.sfu.ca.
    Do not run OPNET without setting your environment first. Type "which opnet" to ensure that there is no path to older versions of OPNET.

  • 2. In order to properly set your environment, add lines to your ".login" file:
        if ( -e /ensc/local2/opnet/14.0.A/sys/unix/bin) then
        setenv OPNETHOME /ensc/local2/opnet/14.0.A/sys/unix
        setenv PATH ${PATH}:${OPNETHOME}/bin
        endif

  • 3. logout and login
    or
    source .login

  • 4. mkdir op_admin
    NOTE: op_admin directory must be directly under the user's home directory and with the correct permissions. (Do chmod 755 op_admin if necessary".)

  • 5. cd op_admin
    Copy to the op_admin directory file env_db14.0 .
    Edit the first line in "mod_dirs" section of the file "env_db14.0" and replace "/ensc/dept1/ljilja/op_models" with the path of your own "op_models" directory.
    NOTE: Make sure that you are the owner of the file "env_db14.0", and that the file has correct permissions. (Do chmod 644 env_db14.0 if necessary.)

  • 6. Run Opnet by typing opnet.

  • 7. If you wish to construct your own models, you need to edit file "env_db14.0" located in the directory "op_admin". Add your own home directory paths in the section "mod_dirs".
    NOTE: Please make sure that your own model directories are listed as the first entries in the file "env_db14.0" in the section "mod_dirs".

  • 8. Ignore the error messages in the command line if Opnet works fine.
    They are from commercial packages that are not available to us.

    REMINDER: Remove any reference to earlier versions of OPNET from your .login file (such as refernces to opnet 12.0.A).


    Last modified: Monday, January 5, 2009 8:10:55 PM PST.