Configure Network Configuration Protocol (NETCONF) to implement remote communication between the network management system (NMS) and devices.
Networking Diagram
As shown in Figure 1, when NETCONF is configured, the NETCONF Manager functions as the client and the NMS is deployed. The NETCONF Agent functions as the SSH server and receives the connection from the NETCONF Manager that functions as the SSH client. In this way, the configuration file can be managed through NETCONF.
Figure 1 NETCONF Scenario
Procedure
Run the sysman server source command to bind a specified source interface.
In V100R018C00SPC600, V100R019C11SPC300, V100R020C00, and later versions, you must perform this step for the NETCONF function to take effect.
Enable NETCONF on the NETCONF agent and create a device user.
Deploy the NMS on the NETCONF Manager.
Log in to the NETCONF Agent from the NETCONF Manager using the NMS.
Verify the configuration.
Example
Example:
Bind the NETCONF service protocol to a specified source port. Set the port type to vlanif and the port index to 300.
Enable NETCONF and set the user name and password. Here, V100R020C10 is used as an example. For other versions, the actual display prevails.
huawei#sysman server source netconf vlanif 300huawei(config)#sysman service netconf enable Please enter the username and password to create a netconf administrator user
User Name(length<6,15>):huawei-user1
User Password(length<12,15>):
Confirm Password(length<12,15>):
Adding user successfully
Configure Network Configuration Protocol (NETCONF) to implement remote communication between the network management system (NMS) and devices.
Networking Diagram
As shown in Figure 1, when NETCONF is configured, the NETCONF Manager functions as the client and the NMS is deployed. The NETCONF Agent functions as the SSH server and receives the connection from the NETCONF Manager that functions as the SSH client. In this way, the configuration file can be managed through NETCONF.
Figure 1 NETCONF Scenario
Procedure
Run the sysman server source command to bind a specified source interface.
In V100R018C00SPC600, V100R019C11SPC300, V100R020C00, and later versions, you must perform this step for the NETCONF function to take effect.
Enable NETCONF on the NETCONF agent and create a device user.
Deploy the NMS on the NETCONF Manager.
Log in to the NETCONF Agent from the NETCONF Manager using the NMS.
Verify the configuration.
Example
Example:
Bind the NETCONF service protocol to a specified source port. Set the port type to vlanif and the port index to 300.
Enable NETCONF and set the user name and password. Here, V100R020C10 is used as an example. For other versions, the actual display prevails.
huawei#sysman server source netconf vlanif 300huawei(config)#sysman service netconf enable Please enter the username and password to create a netconf administrator user
User Name(length<6,15>):huawei-user1
User Password(length<12,15>):
Confirm Password(length<12,15>):
Adding user successfully
Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
Politically sensitive content
Content concerning pornography, gambling, and drug abuse
Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."