| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2008 Sun Microsystems, Inc. |
| | | ! Copyright 2008-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <!-- SNMP Get --> |
| | |
| | | cp = 'CLASSPATH=%s%s%s%s.' \ |
| | | % (opends_jarfile,separator,jdmk_jarfile,separator) |
| | | |
| | | env = ['JAVA_HOME=%s' % JAVA_HOME, '%s' % cp] |
| | | env = ['%s' % cp] |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | cp = 'CLASSPATH=%s%s%s%s.' \ |
| | | % (opends_jarfile,separator,jdmk_jarfile,separator) |
| | | |
| | | env = ['JAVA_HOME=%s' % JAVA_HOME, '%s' % cp] |
| | | env = ['%s' % cp] |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="knownIssue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | | <call function="'ResolveVar'" > |
| | | { |
| | | 'location' : location , |
| | | 'type' : 'STRING', |
| | | 'name' : 'STAF/Config/STAFRoot' |
| | | } |
| | | </call> |
| | | <script> |
| | | if is_windows_platform(location): |
| | | jstaf_jarfile='%s\\bin\\JSTAF.jar' % STAFResult |
| | | jstaf_jarfile='%s\\bin\\JSTAF.jar' % REMOTE_STAF_ROOT |
| | | else: |
| | | jstaf_jarfile='%s/lib/JSTAF.jar' % STAFResult |
| | | jstaf_jarfile='%s/lib/JSTAF.jar' % REMOTE_STAF_ROOT |
| | | </script> |
| | | |
| | | <!-- Build the command --> |
| | |
| | | else: |
| | | separator=':' |
| | | |
| | | opends_jarfile='%s/%s' % (DIRECTORY_INSTANCE_BIN,SNMP_OPENDS_JARFILE) |
| | | snmpPath='%s/snmp' % remote.java |
| | | jdmk_jarfile='%s/jdmkrt.jar' % snmpPath |
| | | cp = 'CLASSPATH=%s%s%s%s%s%s.' \ |
| | | % (opends_jarfile,separator,jdmk_jarfile,separator,jstaf_jarfile,separator) |
| | | cp = 'CLASSPATH=%s%s%s%s.' \ |
| | | % (jdmk_jarfile,separator,jstaf_jarfile,separator) |
| | | |
| | | env = ['JAVA_HOME=%s' % JAVA_HOME, '%s' % cp] |
| | | env = ['%s' % cp] |
| | | </script> |
| | | |
| | | <message> |
| | |
| | | 'path' : snmpPath , |
| | | 'envCmd' : env , |
| | | 'outputFile' : outputFile , |
| | | 'expectedRC' : expectedRC |
| | | 'expectedRC' : expectedRC , |
| | | 'knownIssue' : knownIssue |
| | | } |
| | | </call> |
| | | |