The controller url command configures a URL for iMaster NCE-Campus.
The undo controller url deletes the URL configured for iMaster NCE-Campus.
By default, no URL is configured for iMaster NCE-Campus on the switch.
Parameter | Description | Value |
---|---|---|
url-string |
Specifies a URL for iMaster NCE-Campus. |
The value is a string of 3 to 128 case-sensitive characters. If you need to set one or more consecutive spaces, enclose the URL in double quotation marks ("). |
port port-number |
Specifies a port number. |
The value is an integer in the range 0 to 65535. |
Usage Scenario
In NETCONF over SSH Callhome mode, the switch needs to register with iMaster NCE-Campus for authentication. Before registration authentication, the switch needs to obtain the IP address of iMaster NCE-Campus for communication with iMaster NCE-Campus. The switch can obtain the IP address of iMaster NCE-Campus through DHCP or the registration query center or obtain the IP address by resolving the URL configured using the controller url command.
Precautions
If the switch obtains the URL of iMaster NCE-Campus using all the three methods, the URLs are sorted in descending order of priority as follows: URL obtained using DHCP, URL configured using the command, and URL obtained through the registration query center.
If you run this command multiple times, only the latest configuration takes effect.
When both the controller url command and the controller ip-address command are configured on the switch, only the latest command takes effect. That is, the switch registers with iMaster NCE-Campus using either the IP address of iMaster NCE-Campus or the IP address resolved from the URL of iMaster NCE-Campus.