setv3.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:2k
源码类别:

SNMP编程

开发平台:

C/C++

  1. #!/bin/sh
  2. # This script when executed sets the CLASSPATH for the encryption packages and
  3. # associated  classes. The script can be used when the SNMP V3 funtionality is 
  4. # used.
  5. . setallEnv.sh
  6. cd ..
  7. # Uncomment (remove the hash) the appropriate lines accordingly based on 
  8. # the encryption package used and the PATH in which it can be found
  9. # Set the path in which the encryption package is present. For eg if the 
  10. # package is Cryptix3.1.1 and is present in the parent directory(../) then
  11. # uncomment and set as CRYPTIX3_1_1DIR=$SNMP_HOME 
  12. # Absolute paths can also be given like CRYTPIX3_1_1DIR=/home/guest/cryptix3.1.1/classes
  13. # In addition to this if the Cryptix package (any of the versions) is used add
  14. # the line:
  15. # security.provider.2=cryptix.provider.Cryptix 
  16. # to the jre/lib/security/java.security file in the Java Home directory.
  17. # If the JCE package (any version) is used then add the line:
  18. # security.provider.2=com.sun.crypto.provider.SunJCE 
  19. # to the jre/lib/security/java.security file in the Java Home directory. 
  20. #CRYPTIX3_1_1DIR=
  21. #CRYPTIX3_1_3DIR=
  22. #CRYPTIX3_2DIR=
  23. #JCE1_2DIR=
  24. #JCE1_2_1DIR=
  25. # For Cryptix3.1.1  uncomment the following line
  26. #export CLASSPATH=$CRYPTIX3_1_1DIR/ALG_0-1-1.jar:$CRYPTIX3_1_1DIR/IJCE_0-1-1.jar:$CRYPTIX3_1_1DIR/SPT_0-1-1.jar
  27. # For Cryptix3.1.3 uncomment the following line
  28. #export CLASSPATH=$CRYPTIX3_1_3DIR/cryptix31.jar
  29. # For Cryptix3.2 uncomment the following line
  30. #export CLASSPATH=$CRYPTIX3.2DIR/cryptix32.jar
  31. # For JCE1.2 uncomment the following line
  32. #export CLASSPATH=$JCE1_2DIR/jce12-rc1-dom.jar
  33. # For JCE1.2.1 uncomment the following line
  34. #export CLASSPATH=$JCE1_2_1DIR/US_export_policy.jar:$JCE1_2_1DIR/local_policy.jar:$JCE1_2_1DIR/jce1_2_1.jar:$JCE1_2_1DIR/sunjce_provider.jar
  35. export CLASSPATH=$CLASSPATH:$SNMP_HOME/jars/AdventNetSnmp.jar:$SNMP_HOME/jars/AdventNetLogging.jar:.