Spring 2012
ENSC 427: COMMUNICATION NETWORKS

OPNET (version 16.0.A) environment info


Important notes:
  • OPNET v.16.0.A is installed on a Linux server.
    License server host name for OPNET 16.0.A is "daier".
  • Before switching to OPNET 16.0.A from other OPNET versions, move the "op_admin" and "op_models" directories to other locations.
  • Use command "modeler". (The command "opnet" will only display a notice about the change.)
  • Note that "ssh" to Linux is only available from FASNET machines.

  • Get familiar with Linux/CentOS. The following sites have links to useful Unix tutorials and documentation:
        http://www.cyberciti.biz/tips/linux-unix-commands-cheat-sheets.html
        http://tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html
        http://wiki.centos.org/HowTo

  • 1. Login to any of the 24 Linux Dell PCs in the ENSC Undergraduate Computer room: ESIL Lab ASB 1000B/ASB 10803.
    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" ot ".mylogin" file:
        if ( -e /ensc/apps/opnet/16.0.A/sys/unix/bin) then
        setenv OPNETHOME /ensc/apps/opnet/16.0.A/sys/unix
        setenv PATH ${PATH}:${OPNETHOME}/bin
        endif
    NOTE: Use "chmod 0644 .login" to change the file permission and make it writable.

  • 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_db16.0 . (Remove the extension .txt if you have downloaded the file from the web.)
    Edit the first line in "mod_dirs" section of the file "env_db16.0" and replace "/ensc/fac1/ljilja/op_models" with the path to your own "op_models" directory. Do the same with lines "/ensc/fac1/ljilja/op_admin/ace_logs" and "reports_dir : /ensc/fac1/ljilja/op_reports".
    NOTE: Make sure that you are the owner of the file "env_db16.0", and that the file has correct permissions. (Do chmod 644 env_db16.0 if necessary.)

  • 6. Run Opnet by typing modeler.

  • 7. If you wish to construct your own models, you need to edit file "env_db16.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_db16.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 14.0.A).


    Last modified: Monday, February 20, 2012 10:53:35 PM PST.