CL Command Reference - SBMNWSCMD
CL Command List > SBMNWSCMD Reference
Description:
The Submit Network Server Command (SBMNWSCMD) command submits a command to run on the designated server. For SVRTYPE(*WINDOWS) or (*WINDOWSNT), command output is directed as specified by the CMDSTDOUT parameter. For all other types, command output is directed to the job log of the job that issues the command.
Examples:
Example 1: Submitting a Windows Command
SBMNWSCMD CMD(¡¯net config server¡¯) SERVER(WINSVR) CMDSTDOUT(*JOBLOG)
This command will display the Windows Server service settings on the Windows server WINSVR. Standard output from the command is returned to i5/OS and directed to the job log.
Example 2: Submitting a NetWare command
SBMNWSCMD CMD(¡¯CONFIG¡¯) SERVER(NTW01) SVRTYPE(*NETWARE)
This command submits the NetWare CONFIG command to run on the server named NTW01. Output is returned to the job log.