- Table of Contents
-
- 13-Network Management and Monitoring Configuration Guide
- 00-Preface
- 01-System maintenance and debugging configuration
- 02-NQA configuration
- 03-NTP configuration
- 04-PTP configuration
- 05-SNMP configuration
- 06-RMON configuration
- 07-Event MIB configuration
- 08-NETCONF configuration
- 09-Ansible configuration
- 10-SmartMC configuration
- 11-CWMP configuration
- 12-EAA configuration
- 13-Process monitoring and maintenance configuration
- 14-Sampler configuration
- 15-Mirroring configuration
- 16-sFlow configuration
- 17-Information center configuration
- 18-GOLD configuration
- 19-Packet capture configuration
- 20-VCF fabric configuration
- 21-eMDI configuration
- 22-SQA configuration
- 23-Cloud connection configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
10-SmartMC configuration | 216.15 KB |
Restrictions and guidelines: SmartMC configuration
Configuring an outgoing interface for the SmartMC network
Enabling automatic Ethernet link aggregation
Modifying the password of the default user for members
Deploying a batch file to members
Configuring a batch file for ports connecting APs or IP phones
Backing up configuration files
Configuring resource monitoring
Upgrading the startup software and configuration file on members
About upgrading the startup software and configuration file on members
Restrictions and guidelines for startup software and configuration file upgrade
Upgrading the startup software and configuration file on members
Upgrading the startup software and configuration file on all members in SmartMC groups
Refreshing the network topology
Display and maintenance commands for SmartMC
SmartMC configuration examples
Configuring SmartMC
About SmartMC
Smart Management Center (SmartMC) centrally manages and maintains dispersed network devices at network edges. In a SmartMC network, only one device acts as the commander and the remaining devices all act as members. SmartMC provides the following features for you to manage the members from the commander:
· Configuration file backup and download.
· Software upgrade.
· Configuration deployment.
· Faulty member replacement.
SmartMC network framework
Figure 1 shows the basic framework of a SmartMC network.
Figure 1 SmartMC network framework
The SmartMC network contains the following elements:
· Commander—Also called topology master (TM), which manages all members in the SmartMC network.
· Member—Also called topology client (TC), which is managed by the commander.
· File server—Stores startup software images and configuration files for the commander and members.
SmartMC network establishment
A SmartMC network can be established automatically or manually. In an automatically established SmartMC network, the commander obtains member information through NETCONF sessions to form the network topology. The member information includes port information, LLDP neighbor information, STP information, device type, and software version. In a manually established SmartMC network, the commander obtains member's LLDP neighbor information through NETCONF sessions and member's hardware information through SNMP Get operations.
Automatic SmartMC network establishment
The commander and members use the following procedure to establish a SmartMC network:
1. After SmartMC is enabled, the commander broadcasts a SmartMC packet at an interval of 15 seconds to detect members in the network. The SmartMC packet contains information of the commander, such as its bridge MAC address and the IP address of VLAN-interface 1.
2. When a member receives the packet, it records the commander information, and returns a response packet to the commander. The response packet contains information of the member, such as its bridge MAC address and the IP address of VLAN-interface 1.
3. When the commander receives the response packet, it initiates a NETCONF session to the member with the default username admin and the default password admin. The commander then obtains detailed information about the member through the session, including port information, LLDP neighbor information, STP information, device type, and software version.
4. The commander establishes a connection to the member for tracking the liveliness of the member, and adds the member to the SmartMC network.
5. Based on the LLDP neighbor information obtained from all members, the commander forms a SmartMC topology.
After the SmartMC network is established, the commander and members check for the existence of each other by exchanging SmartMC packets.
· When a member receives a SmartMC broadcast packet from the commander, it compares the bridge MAC address in the packet with the recorded bridge MAC address. If the two bridge MAC addresses are the same, the member returns a response packet to the commander. If the member does not receive a broadcast packet from the commander within the time limit, the member determines that the commander does not exist in the network anymore. Then, the member clears the commander information. The time limit is a random value in the range of 60 to 120 seconds.
· When the commander receives a response packet from a member, it compares the bridge MAC address in the packet with the recorded bridge MAC address. If the two bridge MAC addresses are the same, the commander determines that the member still exists in the network. If the commander does not receive a response packet from a member within 150 seconds, the commander determines that the member is offline. Then, the commander sets the status of the member to offline.
Manual SmartMC network establishment
You can log in to the Web interface of the commander, and enter the IP address, username, and password of the members to manually add them to the network. The members can join the network without exchanging SmartMC packets with the commander. For more information, see Comware 7 Web-Based Products User Guide.
After you specify the information of a member on the commander, the commander performs the following operations to add the member to the network:
· Verify that the member can be accessed through Telnet.
· Obtain basic member information, including LLDP neighbor information through NETCONF.
· Obtain hardware information through SNMP Get operations.
SmartMC features
Bulk configuration deployment for members
This feature allows you to deploy multiple command lines to members from the commander, eliminating the need to log in to members and configure the command one by one.
The procedure for bulk configuration deployment is as follows:
1. The commander acts as a Telnet client and establishes Telnet connections to the members.
2. The commander deploys a batch file to the members through Telnet connections. The batch file is created on the commander and contains command lines to be deployed.
3. The members run the command lines in the file.
Bulk configuration deployment for ports connecting APs and IP phones
With batch file deployment enabled, the commander automatically deploys configurations in the specified batch file to a port connecting an AP or IP phone, simplifying access port configuration.
When the commander first detects the association of an AP or IP phone on a port through LLDP, it deploys the command lines in the specified batch file to the port. If no batch file is specified for the device type, the configurations on the port remain unchanged.
If the AP or IP phone disconnects from the port, the configurations on the port remain. When a new device comes online from the port, configurations used by the port depend on the new device type.
· If the new device is an AP or IP phone and has the same type as the disconnected device, the configurations on the port remain unchanged.
· If the new device is an AP or IP phone but has a different type as the disconnected device, the commander deploys the command lines in the specified batch file to the port. If no batch file is specified for the device type, the configurations on the port remain unchanged.
· If the new device is neither an AP nor an IP phone, the configurations on the port remain unchanged.
To disable the commander from deploying a batch file to ports, remove the specified batch file or execute the undo smartmc batch-file-apply enable command to disable batch file deployment.
Configuration file backup
You can use the following methods to back up the next-startup configuration file on the commander and members:
· Automatic backup—Enable this feature for the commander and all members in the network to immediately perform a backup. After that, the commander and members back up the configuration file at a user-specified interval.
· Manual backup—Manually trigger a backup on the commander or the specified members or SmartMC groups.
To back up the configuration file on a member, the commander instructs the member by unicasting a SmartMC packet. When a member receives the packet, it saves the running configuration to the next-startup configuration file and uploads the file to the file server.
Startup software and configuration file upgrade
This feature enables users to upgrade startup software and the configuration file of member devices from the commander.
Before upgrade, you must upload the upgrade files from the commander to the file server and specify the upgrade files on the file server for the members to download.
The procedure for startup software and configuration file upgrade is as follows:
1. The commander instructs the members (or SmartMC group) to download the upgrade files from the file server.
2. The members download the upgrade files from the file server.
3. The members upgrade the startup software and configuration file as follows:
¡ Startup software upgrade—Performs an ISSU with the upgrade startup software files. The members might be restarted during the upgrade process.
¡ Configuration file upgrade—Replaces the current configuration file with the upgrade configuration file. The members will not be restarted during the upgrade process.
Faulty member replacement
You can use the following methods to replace a faulty member:
· Automatic replacement—Enables the commander to record the positions of all members in the topology for replacement. When the commander discovers that the new member has physically replaced the faulty member, it compares the new member with the faulty one. The commander performs a replacement if the following requirements are met:
¡ The new member is deployed at the same topological position as the faulty one.
¡ The models of the new member and faulty member are the same.
The commander then instructs the new member to download the configuration file of the faulty member from the file server. After downloading the configuration file, the new member runs the configuration file to complete the replacement.
· Manual replacement—After the faulty member is physically replaced, you manually trigger a configuration replacement. The new member will download the configuration file of the faulty member from the file server and run the file to complete the replacement.
Outgoing interface for a SmartMC network
The outgoing interface feature allows hosts connecting to an outgoing interface to access all the members in a SmartMC network. You can configure multiple outgoing interfaces for a SmartMC network.
As shown in Figure 2, the host is connected to port 1 on the TM and TC 1 and TC 2 are in a different network segment than the host. The host can access the Web interface of the TM but cannot access the Web interface of any member.
If port 1 on the TM is configured as the outgoing interface, the system mirrors the IP address of each member to a new address. The new address contains the IP address of the outgoing interface and the port number assigned by the commander to the member in the format of IP address:Port number. This enables the host to access the Web interfaces of members from the Web interface of the TM.
To access the Web interface of a member, enter the Web interface of the commander, and click Visibility from the navigation pane. Then, click the Topology tab, select the target member, and click Login to Web interface.
Automatic link aggregation
Automatic link aggregation automatically bundles multiple physical Ethernet links between two members into one logical link, called an aggregate link. This feature provides increased link bandwidth and improved link reliability.
|
NOTE: · Automatic link aggregation cannot be performed between the commander and a member, or between a member and a device outside the SmartMC network. You can aggregate the links between the commander and a member manually. For more information about manual link aggregation, see Ethernet link aggregation in Layer 2—LAN Switching Configuration Guide. · If a member enabled with automatic link aggregation joins a SmartMC network whose commander is disabled with the aggregation feature, the feature will be disabled for the member as well. This might affect service traffic forwarding on the member. |
VLAN creation for members
To simplify configuration and management, you can create a VLAN for members. Then, all access ports on a member that are not connected to other members or the commander are assigned to the VLAN.
If a member has access ports that are connected to offline devices, you must remove the offline devices before creating a VLAN for the member.
The VLAN creation fails for a member if one or more access ports cannot be assigned to the VLAN. If the VLAN creation fails, the VLAN memberships for the access ports are restored to the state before the VLAN was created.
The failure to create a VLAN for a member does not affect the VLAN creation for other members.
Resource monitoring
Resource monitoring allows you to view CPU usage, memory usage, temperature information, and packet dropping information of commanders and members on the commander. Packet dropping monitoring monitors packet dropping on members and on interfaces.
You can view the usage and temperature information on the commander, and view packet dropping information from the SmartMC > Intelligent O&M > Resource monitoring page of the commander's Web interface.
Restrictions and guidelines: SmartMC configuration
SmartMC is supported only on the default MDC.
Only users with the network-admin role can configure SmartMC. For more information about user roles, see RBAC in Fundamentals Configuration Guide.
A SmartMC network is established in VLAN 1. For the network to work correctly, do not configure security settings in VLAN 1.
You need to enable SmartMC on both the commander and members and perform all the other SmartMC tasks only on the commander.
The following features take effect only on members added to the SmartMC network automatically:
· Configuration file backup.
· Faulty member replacement.
· Startup software and configuration file upgrade.
· Automatic link aggregation.
SmartMC tasks at a glance
To configure SmartMC, perform the following tasks:
This task is required for configuring automatic configuration file backup, replacing faulty members, and upgrading the startup software and configuration file on members.
3. (Optional.) Configuring an outgoing interface for the SmartMC network
4. (Optional.) Enabling automatic Ethernet link aggregation
5. (Optional.) Modifying the password of the default user for members
This task is required for upgrading the startup software and configuration file on members and deploying a batch file to a SmartMC group.
7. (Optional.) Deploying and managing configuration
¡ Deploying a batch file to members
¡ Configuring a batch file for ports connecting APs or IP phones
¡ Backing up configuration files
8. (Optional.) Monitoring and maintaining the SmartMC network
¡ Configuring resource monitoring
¡ Upgrading the startup software and configuration file on members
¡ Managing the network topology
Prerequisites for SmartMC
Before you configure SmartMC, perform the following tasks on the commander and members:
· Enable the Telnet service, and configure scheme authentication for VTY user lines. For information about Telnet service and VTY user lines, see CLI login configuration in Fundamentals Configuration Guide.
· Configure a local user.
¡ Specify the username and password.
- On the commander, make sure the username and password are the same as the username and password configured by using the smartmc tm username username password { cipher | simple } string enable command.
- On a member, set both the username and password to admin, and execute the password-control length 4, password-control composition type-number 1 type-length 1, and undo password-control complexity user-name check commands to lower the password complexity requirements.
This is because SmartMC requires that the commander uses username admin and password admin to communicate with members, which does not meet the default password complexity requirements. For more information about these commands, see password control commands in Security Command Reference.
After the SmartMC network is established, you can increase the password complexity requirements and use the smartmc tc password command to modify the username and password.
¡ Specify the Telnet, HTTP, and HTTPS services for the user.
¡ Set the RBAC role of the local user to network-admin.
For information about local users, see AAA configuration in Security Configuration Guide. For information about user roles, see RBAC configuration in Fundamentals Configuration Guide.
· Enable NETCONF over SOAP over HTTP. For information about NETCONF over SOAP, see NETCONF configuration in Network Management and Monitoring Configuration Guide.
· Enable LLDP globally. For information about LLDP, see Layer 2—LAN Switching Configuration Guide.
· To manage the commander and members through a Web interface, you must enable the HTTP and HTTPS services, and set the service type to HTTP and HTTPS for the local user. For information about Web login, HTTP, and HTTPS, see Fundamentals Configuration Guide.
· To manually establish a SmartMC network, you must configure the snmp-agent community read public and snmp-agent sys-info version v2c commands on the members. For information about SNMP, see Network Management and Monitoring Configuration Guide.
Enabling SmartMC
About this task
Enable this feature on both the commander and members to enable management of members from the commander.
Restrictions and guidelines
A SmartMC network must have one and only one commander.
If you change the role of the commander to member or disable SmartMC on the commander, all SmartMC settings in its running configuration will be cleared.
SmartMC fails to be enabled if ACL resources are insufficient. If ACL resources are insufficient, use the undo acl command to delete unnecessary ACLs and then enable SmartMC. You can execute the display acl command to view ACL configuration and match statistics. For more information about ACLs, see ACL and QoS Configuration Guide.
SmartMC fails to be enabled if ports 80 and 443 have been used.
If you execute the smartmc enable command multiple times, the most recent configuration takes effect. You can execute the command to change the device role or the password.
Procedure
1. Enter system view.
system-view
2. Enable SmartMC and set the device role.
smartmc { tc | tm username username password { cipher | simple } string } enable
By default, SmartMC is disabled.
Specifying a file server
About this task
In a SmartMC network, a file server is used to store the following files:
· Upgrade startup software files and upgrade configuration file for members.
· Backup configuration files of the commander and members.
The system supports using an FTP or SFTP server as the file server. For information about FTP servers, see configuring FTP in Fundamentals Configuration Guide. For information about SFTP servers, see configuring SSH in Security Configuration Guide.
Restrictions and guidelines
You can use the following methods to specify a file server:
· Specify the IP address of a file server.
· Specify the IP address of the commander. The commander will act as a file server.
To configure the commander to act as a file server, make sure the commander has enough storage space for storing the files required by members.
To use an independent file server, connect the file server to the commander instead of the members as a best practice. The file server uses VLAN 1 to communicate with the SmartMC network. If you connect the file server to members, creating a VLAN for members will assign member interfaces connecting to the file server to the created VLAN, causing file server disconnection. For more information about member VLAN creation, see "Creating a VLAN for members."
Procedure
1. Enter system view.
system-view
2. Specify a file server.
smartmc { ftp-server | sftp-server } { ipv4-address | ipv6 ipv6-address } [ port port ] [ vpn-instance vpn-instance-name ] [ directory directory ] username username password { cipher | simple } string
By default, no file server is specified.
Configuring an outgoing interface for the SmartMC network
Restrictions and guidelines
VLAN-interface 1 cannot be used as an outgoing interface, because the SmartMC network is established in VLAN 1.
A member port of a Layer 3 aggregation group cannot be used as an outgoing interface for SmartMC, and vice versa. If a configured outgoing interface is a member port of a Layer 3 aggregation group, the outgoing interface does not take effect. For more information about Layer 3 aggregation groups, see Ethernet link aggregation in Layer 2—LAN Switching Configuration Guide.
If you specify a VLAN interface as the outgoing interface, the system issues the service slot slot-number command to the outgoing interface and VLAN-interface 1. The slot-number argument represents the slot number of the active MPU. If you specify a Layer 3 Ethernet interface as the outgoing interface, the system issues the command only to VLAN-interface 1. If you remove the outgoing interface configuration, the service slot slot-number configuration remains, and you can modify the configuration manually as needed. (In standalone mode.)
If you specify a VLAN interface as the outgoing interface, the system issues the service chassis chassis-number slot slot-number command to the outgoing interface and VLAN-interface 1. The chassis-number argument represents the member ID of the master device and the slot-number argument represents the slot number of the global active MPU. If you specify a Layer 3 Ethernet interface as the outgoing interface, the system issues the command only to VLAN-interface 1. If you remove the outgoing interface configuration, the service slot slot-number configuration remains, and you can modify the configuration manually as needed. (In IRF mode.)
For more information about the service command, see VLAN commands in Layer 2—LAN Switching Command Reference.
Procedure
1. Enter system view.
system-view
2. Enter VLAN interface view or Layer 3 Ethernet interface view.
¡ Enter VLAN interface view.
interface vlan interface-number
¡ Enter Layer 3 Ethernet interface view.
interface interface-type interface-number
3. Configure the interface as an outgoing interface.
smartmc outbound
By default, no interface is used as an outgoing interface.
Enabling automatic Ethernet link aggregation
Restrictions and guidelines
Enabling or disabling automatic link aggregation might cause network flapping, and the members might go offline for a short period of time.
Procedure
1. Enter system view.
system-view
2. Enable automatic Ethernet link aggregation.
smartmc auto-link-aggregation enable
By default, automatic Ethernet link aggregation is disabled.
Modifying the password of the default user for members
About this task
During SmartMC network establishment, the commander uses the default username and password to establish NETCONF sessions to members automatically added to the network. The default username and password of the members for NETCONF session establishment are admin and admin.
To enhance security, you can perform this task to change the password for the default user admin of the members after the commander adds the members to the network.
Restrictions and guidelines
Do not modify the password for members that are manually added to the SmartMC network. If you modify the password for a manually added member, you will not be able to manage that member from the commander.
You can use the display smartmc tc verbose command to identify the method used to add the members.
Procedure
1. Enter system view.
system-view
2. Modify the password of the default user for members.
smartmc tc password [ cipher ] string
Creating a SmartMC group
About this task
This feature allows you to create a SmartMC group on the commander and add members to the group. When you perform the following operations, you can specify a SmartMC group to apply the operations to all members in the group:
· Startup software upgrade.
· Configuration file upgrade.
· Configuration deployment.
Procedure
1. Enter system view.
system-view
2. Create a SmartMC group and enter its view.
smartmc group group-name
3. (Optional.) Display predefined device types.
match device-type ?
4. Set a match criterion.
match { device-type device-type | ip-address ip-address { ip-mask-length | ip-mask } | mac-address mac-address mac-mask-length }
By default, no match criterion is set.
5. If the device type of the members is not predefined on the commander, perform the following tasks to manually define the device type on the commander:
a. Return to system view.
quit
b. Define a device type on the commander.
smartmc tc sysoid sysoid device-type device-type
To obtain the SYSOID of a member, execute the display smartmc tc verbose command.
You cannot define a predefined member type as another type.
Creating a VLAN for members
Restrictions and guidelines
If you perform this task multiple times to create a VLAN for members, the most recent configuration takes effect.
Procedure
1. Enter system view.
system-view
2. Creating a VLAN for members and assign access ports on the members to the VLAN.
smartmc vlan vlan-id { group group-name-list | tc tc-id-list }
Deploying a batch file to members
1. Execute the following command in user view to create a batch file and edit the command lines to be deployed to members.
create batch-file cmd-filename
Each command occupies a line in the batch file. When you finish editing, enter a percent sign (%) to return to user view.
Make sure the command lines that you enter are correct because the system does not verify whether the command lines are correct.
2. Enter system view.
system-view
3. Deploy the batch file to a list of members or SmartMC groups.
smartmc batch-file cmd-filename deploy { group group-name-list | tc tc-id-list }
Configuring a batch file for ports connecting APs or IP phones
Restrictions and guidelines
All commands in the batch file must be commands used in interface view.
The size of the batch file cannot exceed 8190 characters.
Make sure the file name is correct when specifying the batch file because the system does not verify whether the file name is correct. After specifying the batch file, do not delete the file or rename the file.
Procedure
1. (Optional.) Execute the following command in user view to create a batch file and edit the command lines to be deployed to members.
create batch-file cmd-filename
Each command occupies a line in the batch file. When you finish editing, enter a percent sign (%) to return to user view.
Make sure the command lines that you enter are correct because the system does not verify whether the command lines are correct.
2. Enter system view.
system-view
3. Specify the batch file for ports connecting APs or IP phones.
smartmc batch-file batch-file-name apply { ap | phone }
4. (Optional.) Disable batch file deployment.
undo smartmc batch-file-apply enable
By default, batch file deployment is enabled.
Backing up configuration files
About this task
Perform this task to back up the configuration file of the commander or the specified members. Configuration files automatically backed up to the file server are named in the format of device_bridge_MAC_address_backup.cfg.
Restrictions and guidelines
When you change the commander in the SmartMC network, make sure the backup configuration file of the original commander on the file server is deleted. If the file still exists, the new commander might download the file and run the settings. This will cause a conflict in the network.
The maximum number of members that can perform automatic configuration at the same time is limited by the performance of the file server. If automatic configuration backup fails, set the maximum number of members to a smaller value.
Prerequisites
Before performing this task, you must specify a file server (see "Specifying a file server").
Procedure
1. Enter system view.
system-view
2. Set the maximum number of members that can perform configuration file backup at the same time.
smartmc backup configuration max-number max-number
By default, a maximum of five members can perform automatic configuration backup at the same time.
3. Back up configuration files.
Choose one option as needed:
¡ Enable automatic configuration file backup and set the backup interval.
smartmc backup startup-configuration interval interval-time
By default, automatic configuration file backup is disabled.
¡ Manually back up the configuration file on the commander or the specified members.
smartmc backup configuration { group group-name-list | tc [ tc-id-list ] }
TC ID 0 represents the commander.
Configuring resource monitoring
1. Enter system view.
system-view
2. Set the interval for the commander to obtain resource monitoring information.
smartmc resource-monitor interval interval
The default setting is 1 minute.
3. Set the aging time for resource monitoring information.
smartmc resource-monitor max-age max-age
The default setting is 24 hours.
4. Enable resource monitoring.
smartmc resource-monitor [ cpu | memory | packet-drop | temperature ] * [ group group-name-list | tc { tc-id-list | mac-address mac-address } | tm ]
By default, resource monitoring is disabled.
If you do not specify a resource type, this command enables resource monitoring for all resource types.
If you do not specify a device to monitor (member or commander), this command enables resource monitoring on the commander and all members.
Upgrading the startup software and configuration file on members
About upgrading the startup software and configuration file on members
You can use the following methods to upgrade the startup software and configuration file on members:
· Schedule an upgrade by specifying an upgrade time or upgrade delay.
· Upgrade immediately by not specifying an upgrade time or upgrade delay.
Restrictions and guidelines for startup software and configuration file upgrade
A member can perform only one upgrade task at a time.
An immediate upgrade cannot be cancelled. If you specify a delay time or upgrade time to perform a scheduled upgrade, the upgrade operation can be cancelled by using the undo smartmc upgrade command before it starts.
Prerequisites
Before performing this task, you must specify a file server (see "Specifying a file server").
Upgrading the startup software and configuration file on members
Upgrading the startup software and configuration file in one step
1. Enter system view.
system-view
2. Upgrade the startup software on members in one step.
smartmc upgrade boot-loader tc { tc-id-list { boot boot-filename system system-filename | file ipe-filename } }&<1-40> [ delay delay-time | time in-time ]
3. Upgrade the configuration file on members in one step.
smartmc upgrade startup-configuration tc { tc-id-list cfg-filename }&<1-40> [ delay delay-time | time in-time ]
Configuring startup software and configuration file upgrade step by step
1. Enter system view.
system-view
2. Configure startup software upgrade for members step by step:
a. Specify the upgrade startup software files.
smartmc tc tc-id boot-loader { ipe-filename | boot boot-filename system system-filename }
b. Upgrade the startup software on members.
smartmc upgrade boot-loader tc tc-id-list
3. Configure configuration file upgrade for members step by step:
a. Specify the upgrade configuration file.
smartmc tc tc-id startup-configuration cfg-filename
b. Upgrade the configuration file on members.
smartmc upgrade startup-configuration tc tc-id-list
Upgrading the startup software and configuration file on all members in SmartMC groups
Upgrading the startup software and configuration file in one step
1. Enter system view.
system-view
2. Upgrade the startup software on all members in SmartMC groups in one step.
smartmc upgrade boot-loader group { group-name-list [ boot boot-filename system system-filename | file ipe-filename ] }&<1-40> [ delay minutes | time in-time ]
3. Upgrade the configuration file on all members in SmartMC groups in one step.
smartmc upgrade startup-configuration group { group-name-list cfg-filename }&<1-40> [ delay minutes | time in-time ]
Configuring startup software and configuration file upgrade step by step
1. Enter system view.
system-view
2. Enter SmartMC group view.
smartmc group group-name
3. Specify the upgrade startup software files for the SmartMC group.
boot-loader file { ipe-filename | boot boot-filename system system-filename }
By default, no upgrade startup software files are specified for a SmartMC group.
4. Specify the upgrade configuration file for the SmartMC group.
startup-configuration cfgfile
By default, no upgrade configuration file is specified for a SmartMC group.
5. Return to system view.
quit
6. Upgrade the startup software and configuration file on all members in the SmartMC group.
Choose one option as needed:
¡ Upgrade the startup software.
smartmc upgrade boot-loader group group-name-list [ delay minutes | time in-time ]
¡ Upgrade the configuration file.
smartmc upgrade startup-configuration group group-name-list [ delay minutes | time in-time ]
Managing the network topology
Refreshing the network topology
About this task
You can use the following methods to refresh the network topology:
· Automatic topology refresh—Specify the refresh interval to allow the commander to refresh the network topology periodically.
· Manual topology refresh—Execute the smartmc topology-refresh command to manually refresh the network topology.
Restrictions and guidelines
The topology refresh time depends on the number of members in the network.
Procedure
Choose one option as needed:
· Manually refresh the network topology in any view.
smartmc topology-refresh
· Configure automatic network topology refresh.
a. Enter system view.
system-view
b. Set the automatic topology refresh interval.
smartmc topology-refresh interval interval
By default, the automatic topology refresh interval is 60 seconds.
Saving the network topology
About this task
This task allows you to save the current network topology to the topology.dba file in the flash memory. After the commander reboots, it uses the topology.dba file to restore the network topology.
Procedure
1. Enter system view.
system-view
2. Save the network topology.
smartmc topology-save
Replacing faulty members
Restrictions and guidelines
Make sure the new member for replacement and the faulty member have the same neighbor relationship and device model.
Make sure the new member has a different member ID than all the members in the SmartMC network, including offline members. Faulty members are considered offline.
To automatically replace a faulty member, first enable automatic replacement, and then install the new member at the location where the faulty member was installed and connect all cables.
To manually replace a faulty member, first install the new member at the location where the faulty member was installed, connect all cables, and then execute the manual replacement command.
Prerequisites
Before you replace a faulty member, specify a file server (see "Specifying a file server").
Procedure
1. Enter system view.
system-view
2. Replace faulty members.
Choose one option as needed:
¡ Enable automatic faulty member replacement.
smartmc auto-replace enable
By default, automatic faulty member replacement is disabled.
¡ Manually replace a faulty member.
smartmc replace tc tc-id1 faulty-tc tc-id2
Display and maintenance commands for SmartMC
Execute display commands in any view.
Task |
Command |
Display the backup status on members. |
display smartmc backup configuration status |
Display the batch file execution results. |
display smartmc batch-file status [ ap | last number | phone ] |
Display SmartMC configuration. |
display smartmc configuration |
Display connections between the devices in the SmartMC network. |
display smartmc device-link |
Display SmartMC group information. |
display smartmc group [ group-name ] [ verbose ] |
Display the faulty member replacement status. |
display smartmc replace status |
Display resource monitoring information. |
display smartmc resource-monitor [ cpu | memory | temperature ] * [ tc tc-id | tm ] |
Display resource monitoring configuration. |
display smartmc resource-monitor configuration |
Display member information. |
display smartmc tc [ tc-id ] [ verbose ] |
Display log information in the log buffer on a member. |
display smartmc tc tc-id log buffer [ module module-name [ mnemonic mnemonic-value ] ] |
Display restart log information for a member. |
display smartmc tc tc-id log restart |
Display VLAN creation results for members. |
display smartmc vlan |
Display member upgrade status. |
display smartmc upgrade status |
SmartMC configuration examples
Example: Configuring SmartMC
Network configuration
As shown in Figure 3, member 1, member 2, and member 3 belong to the same device type: S12500G-AF series. The IP address of the file server is 192.168.2.1. The username and password for accessing the file server are admin and hello12345, respectively.
Perform the following tasks to establish a SmartMC network and upgrade the configuration file on the members:
1. Configure the commander and members to automatically establish a SmartMC network.
2. Configure interface HundredGigE 3/0/1 as the outgoing interface for the SmartMC network.
3. Create a SmartMC group and add the members to the group.
4. Upgrade the configuration file on all members in the SmartMC group.
5. Save configuration file startup.cfg on the file server.
Procedure
1. Configure TC 1:
# Configure VLAN-interface 1.
<TC1> system-view
[TC1] interface vlan-interface 1
[TC1-Vlan-interface1] ip address 192.168.2.3 24
[TC1-Vlan-interface1] quit
# Enable HTTP and HTTPS.
[TC1] ip http enable
[TC1] ip https enable
# Enable the Telnet service.
[TC1] telnet server enable
# Enable NETCONF over SOAP over HTTP.
[TC1] netconf soap http enable
# Enable LLDP globally.
[TC1] lldp global enable
# Lower password complexity requirements. For more information about these commands, see password control commands in Security Command Reference.
[TC1] password-control length 4
[TC1] password-control composition type-number 1 type-length 1
[TC1] undo password-control complexity user-name check
# Create a user. Set the username and password to admin, add the telnet, http, and https service types, and authorize the user to use the network-admin user role.
[TC1] local-user admin
[TC1-luser-manage-admin] password simple admin
[TC1-luser-manage-admin] service-type telnet http https
[TC1-luser-manage-admin] authorization-attribute user-role network-admin
[TC1-luser-manage-admin] quit
# Set scheme authentication for VTY user lines 0 to 63.
[TC1] line vty 0 63
[TC1-line-vty0-63] authentication-mode scheme
[TC1-line-vty0-63] quit
# Enable SmartMC and set the device role to tc.
[TC1] smartmc tc enable
2. Configure TC 2 and TC 3 in the same way TC 1 is configured. (Details not shown.)
3. Configure the TM:
# Configure HundredGigE 3/0/1.
<TM> system-view
[TM] interface hundredgige 3/0/1
[TM-HundredGigE3/0/1] port link-mode route
[TM-HundredGigE3/0/1] ip address 192.168.52.2 24
[TM-HundredGigE3/0/1] quit
# Configure VLAN-interface 1.
[TM] interface vlan-interface 1
[TM-Vlan-interface1] ip address 192.168.2.2 24
[TM-Vlan-interface1] quit
# Enable HTTP and HTTPS.
[TM] ip http enable
[TM] ip https enable
# Enable the Telnet service.
[TM] telnet server enable
# Enable NETCONF over SOAP over HTTP.
[TM] netconf soap http enable
# Enable LLDP globally.
[TM] lldp global enable
# Create a user. Set the username to admin and the password to hello12345, add the telnet, http, and https service types, and authorize the user to use the network-admin user role.
[TM] local-user admin
[TM-luser-manage-admin] password simple hello12345
[TM-luser-manage-admin] service-type telnet http https
[TM-luser-manage-admin] authorization-attribute user-role network-admin
[TM-luser-manage-admin] quit
# Set scheme authentication for VTY user lines 0 to 63.
[TM] line vty 0 63
[TM-line-vty0-63] authentication-mode scheme
[TM-line-vty0-63] quit
# Enable SmartMC, set the device role to commander, and set the username to admin and the password (plaintext) to hello12345.
[TM] smartmc tm username admin password simple hello12345 enable
# Specify HundredGigE 3/0/1 as the outgoing interface.
[TM] interface hundredgige 3/0/1
[TM-HundredGigE3/0/1] smartmc outbound
[TM-HundredGigE3/0/1] quit
# Set the file server IP address, username, and plaintext password to 192.168.2.1, admin, and hello12345, respectively.
[TM] smartmc ftp-server 192.168.2.1 username admin password simple hello12345
# Create SmartMC group S1 and enter its view.
[TM] smartmc group S1
# Create an IP address match criterion to add all members in the specified network segment to SmartMC group S1.
[TM-smartmc-group-S1] match ip-address 192.168.2.0 24
# Specify the upgrade configuration file startup.cfg for SmartMC group S1.
[TM-smartmc-group-S1] startup-configuration startup.cfg
[TM-smartmc-group-S1] quit
# Upgrade the configuration file on all members in SmartMC group S1.
[TM] smartmc upgrade startup-configuration group S1 startup.cfg
Verifying the configuration
# Display brief information about all members after the SmartMC network is established.
[TM] display smartmc tc
TCID DeviceType Sysname IpAddress MacAddress Status Version
1 S12508G-AF TC1 192.168.2.3 201c-e7c3-0300 Normal 7.1.070 ESS 7593
2 S12508G-AF TC2 192.168.2.4 201c-e7c3-0301 Normal 7.1.070 ESS 7593
3 S12508G-AF TC3 192.168.2.5 201c-e7c3-0302 Normal 7.1.070 ESS 7593
# Display the configuration file upgrade status on the members.
<TM> display smartmc upgrade status
ID IpAddress MacAddress Status UpdateTime UpdateFile
1 192.168.2.3 201c-e7c3-0300 Finished Immediately startup.cfg
2 192.168.2.4 201c-e7c3-0301 Finished Immediately startup.cfg
3 192.168.2.5 201c-e7c3-0302 Finished Immediately startup.cfg