Description
This command registers the repository server to which the server where this command is executed will connect.
Synopsis
[Windows]
swcfmg_register_repsv.bat wsus -to <Connection destination IP address> [-p <Connection destination port>] [-f] |
Options
This option can only be used with Windows. Specify this option when WSUS is used. Specify the IP address and port number for the connection destination WSUS server.
The system must be restarted if this option is specified when the command is executed.
In environments where WSUS agents have already been set up by executing this command, the following prompt will be displayed when this command is executed.
Overwrite the setting of WUA (Y/N)? |
Entering "Y" sets up the WSUS agent again. Entering a character other than "Y" does not set up the WSUS agent again.
If this option is specified, registry keys will be set up using the data shown in the following table.
Path | Key | Value | Description | Remarks |
---|---|---|---|---|
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate | WUServer | http://<Connection destination IP address>[:<Port number>]/ | Specifies the HTTP URL for the WSUS server. | The "port number" is set only if the "-p" option has been specified. |
WUStatusServer | http://<Connection destination IP address>[:<Port number>]/ | Specifies the HTTP URL for the WSUS server to which report information relating to the business server will be sent. This key is set to the same value as the "WUServer" key. | The "port number" is set only if the "-p" option has been specified. | |
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU | AUOptions | 3: Automatically download and make installation notifications. | Sets up the behavior for automatic updates. | The value for this key will not be changed if it has been set already. Moreover, the value will not be changed even if the user responds with "Y" to the prompt "Overwrite the setting of WUA (Y/N)?". |
UseWUServer | 1: Use a WSUS server. | Enables patch management by WSUS. | The value for this key will not be changed if it has been set already. Moreover, if this key exists, the value will not be changed even if the user responds with "Y" to the prompt "Overwrite the setting of WUA (Y/N)?". | |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate | SusClientId (*1) | Must be reallocated | Identifies WSUS clients in the WSUS system. |
*1: The "SusClientId" is a key for identifying WSUS clients in the WSUS system, and must be unique among all WSUS clients. However, there are cases where multiple WSUS clients share a single SusClientId, so reallocate the ID in such a way that it is unique.
This option is used to suppress prompts and configure WSUS agent settings forcibly.
Return value
Return value | Meaning |
---|---|
0 | The command has terminated normally. |
1 | The command has terminated abnormally. |
2 | Processing was terminated by the user. This value is returned when a character other than "Y" is entered in response to the "Overwrite the setting of WUA (Y/N)?" prompt. |
Command location
Admin server
[Windows]
<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\tools |
[Linux]
/opt/FJSVcfmgm/tools |
Privilege required/execution environment
[Windows]
Administrator privileges are required. Execute as an administrator.
This command can be executed on Windows business servers.
Cautions
This command does not communicate with the WSUS server, and so even after the command has completed, information (such as host names and information about applied patches) for WSUS clients (business servers) will not be registered on the WSUS server. Registration of information on the WSUS server first takes place when the WSUS server communicates with the WSUS clients (business servers).
This command must be executed on a business server. When the command is executed, the "register_repsv.vbs" VB script must be placed in the same directory as the command. The storage location for the "register_repsv.vbs" VB script is shown below.
Admin server
[Windows]
<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\tools |
[Linux]
/opt/FJSVcfmgm/tools |
This command cannot be executed at the same time as other commands. An exclusive control error will occur if a command is executed while another command is executing.
Example
[Windows]
WSUS server connection
swcfmg_register_repsv.bat wsus -to 10.10.10.10 |
WSUS server connection (port specification)
swcfmg_register_repsv.bat wsus -to 10.10.10.10 -p 81 |
WSUS server connection (forced setup)
swcfmg_register_repsv.bat wsus -to 10.10.10.10 -f |