The VWPEXUNX program remotely issues a command or runs a program. VWPEXUNX runs on Windows NT, Windows 2000, and UNIX.
If you are running the VWPEXUNX program on Windows NT or Windows 2000, the REXECD program must also be running on the workstation.
Table 121 shows the parameter list for the VWPEXUNX
program. The list includes the predefined token for a parameter if one
exists.
Table 121. Parameters for VWPEXUNX
Order | Description |
---|---|
1 | The remote host name. |
2 | The remote user ID. |
3 | The remote program to execute. |
4 | The remote error file. |
5 | The remote warning file. If there is no warning file, specify - (the not-applicable symbol). |
6 | The remote log (summary) file. If there is no log file, specify - (the not-applicable symbol). |
7 | The remote operating system type. Specify either UNIX, WINNT, or WIN2000. |
8 | The password type. Specify either PasswordNotRequired, EnterPassword, or GetPassword. |
9 | The password value if the password type is EnterPassword.
- (not-applicable symbol) if the password type is PasswordNot Required. The password program if password type is GetPassword. The password program must reside on the agent site that is selected for the step. The program must write a file that contains the password to use in the first line of the file. It must return 0 if it runs correctly. |
10 | The password program parameters if the password type is GetPassword |
The following example shows how to start the VWPEXUNX program from a command prompt. The command must be typed all on one line. The line break shown in this example is not significant.
vwpexunx tomari labriejj db2cmd \usr\labriejj\db2cmd.err - - UNIX EnterPassword mypass
The VWPEXUNX program uses the remote error file to determine the success or failure of the remote command or program:
The VWPEXUNX program does not check the contents of the remote error file.
Table 122 lists the return codes for the VWPEXUNX program.
Table 122. Return codes for the VWPEXUNX program
Return code | Description |
---|---|
0 | The program ran successfully. |
4 | The program ran with a warning.
The program could not erase the password file after the password program ran. |
8 | Parameter error.
Too few or too many parameters were supplied to the program, or an invalid value was supplied for a parameter. |
16 | Internal error.
The program detected an internal error, such as the inability to open, create, or write to a temporary file. |
48 | Environment variable error.
The VWS_LOGGING environment variable was not set. |
52 | Get password program error.
The program detected a password program error, such as a missing program, an invalid name, or the wrong number of parameters |
56 | Remote execution error.
The program detected a remote execution error, such as the following errors:
|
The VWPEXUNX program writes a trace file to the directory that the VWS_LOGGING environment variable specifies.