- Table of Contents
-
- 20-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-SNMP commands
- 04-RMON commands
- 05-NETCONF commands
- 06-EAA commands
- 07-Process monitoring and maintenance commands
- 08-Flow log commands
- 09-Fast log output commands
- 10-Packet capture commands
- 11-Mirroring commands
- 12-UCC commands
- 13-SQA commands
- 14-SmartMC commands
- Related Documents
-
Title | Size | Download |
---|---|---|
14-SmartMC commands | 105.30 KB |
Self-mesh SmartMC
autonet enable
Use autonet enable to enable AUTONET.
Use undo autonet enable to disable AUTONET.
Syntax
autonet enable
undo autonet enable
Default
AUTONET is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Application scenarios
Devices supporting self-mesh SmartMC come with the SmartMC feature enabled. Through auto election, the member devices select a TM and other devices become TCs, which will be managed by the TM. With AUTONET enabled, the TM automatically issues wireless-related configuration in the SmartMC network to the TCs.
Restrictions and guidelines
In a self-mesh SmartMC network, you must enable AUTONET and SmartMC at the same time.
When a device starts up with the factory settings, if AUTONET is enabled, the firmware upgrade feature (firmware-upgrade) configured in global configuration view is automatically disabled. Once the SmartMC network is deployed or the save command is executed, the enabling status of the firmware upgrade feature in global configuration view will be restored.
When a device starts up with the factory settings, if AUTONET is enabled and the total startup time of the device is shorter than or equal to 30 days, the AP can connect to the AC and provide wireless services without licenses. This helps the SmartMC network to complete deployment. However, once the SmartMC network is deployed or the save command is executed, the AP must obtain a license to connect to the AC.
Examples
# Enable AUTONET.
<Sysname> system-view
[Sysname] autonet enable
display autonet wired-client
Use display autonet wired-client to display information of wired clients that come online through the AutoNet service module.
Syntax
display autonet wired-client [ ip ipv4-address ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ip ipv4-address: Specifies a wired client by its IPv4 address. If you do not specify this option, the command displays information about all online IPv4 wired clients.
Usage guidelines
Executing this command on the TM in the self-mesh SmartMC network displays information about wired clients in the entire self-mesh SmartMC network. If you execute this command on a TC, no information is displayed.
Examples
# Display information of wired clients that come online through the AutoNet service module.
<Sysname> display autonet wired-client
Wired clients: 2
Wired client summary information:
AccessDevID IP VPN MAC VLAN
2 2.2.2.2 N/A 000d-88f8-0eab 4
3 2.2.2.3 N/A 000d-88f8-0eac 4
# Display detailed information of wired clients that come online through the AutoNet service module.
<Sysname> display autonet wired-client verbose
AccessDevID IP VPN MAC VLAN
2 2.2.2.2 N/A 000d-88f8-0eab 4
Wired client verbose information:
HostName: a
ClientReqDHCPOption55: N/A
ClientReqDHCPOption60: cd
AccessDevSerialNumber: N
display smartmc configuration
Use display smartmc configuration to display the SmartMC configuration.
Syntax
display smartmc configuration
Views
Any view
Predefined user roles
network-admin
Usage guidelines
Both the TM and TC devices support this command.
Examples
# Display the SmartMC configuration on the TM.
<Sysname> display smartmc configuration
Device role : TM(auto)
FTP server IP : 192.168.22.103
FTP server username : admin
Topology-refresh interval : 60(s)
Backup startup-configuration interval : N/A
Sync backup number : 5
Device status : Lack
Some configurations are absent on the TM, such as Telnet or LLDP configuration.
# Display commander information on a TC.
<Sysname> display smartmc configuration
Device role : TC(auto)
TM IP : 192.168.22.103
TM MAC : 8288-468d-0100
TM sysname : Sysname
Table 1 Command output
Field |
Description |
Device role |
Role of the device. · TM—TM manually set by using a command. This option is supported only by non-self-mesh SmartMC. · TC—TC manually set by using a command. · TM(auto)—TM automatically selected through role election. This option is supported only by self-mesh SmartMC. · TC(auto)—TC automatically selected through role selection. This option is supported only by self-mesh SmartMC. |
FTP server IP |
IP address of the FTP server. If no FTP server IP address is configured, this field displays N/A. |
FTP server username |
FTP server username. If no username is configured, this field displays N/A. |
Topology-refresh interval |
Topology refresh interval, in seconds. |
Backup startup-configuration interval |
Automatic configuration file backup interval, in hours. If no interval is set, this field displays N/A. |
Sync backup number |
Number of TCs that can perform configuration backup at the same time. |
Device status |
Commander status: · Normal. · Lack—Lack of required configuration, such as NETCONF, Telnet, local user, and LLDP. |
TM IP |
IP address of the TM. If the TC failed to obtain the TM IP address, this field displays N/A. |
TM MAC |
MAC address of the TM, If the TC failed to obtain the TM MAC address, this field displays N/A. |
TM sysname |
Name of the TM. If the TC failed to obtain the TM name, this field displays N/A. |
Some configurations are absent on the TM, such as XXX. |
This field is available only when the Device status field displays Lack. Lack of configuration will affect SmartMC functions. Please follow the prompt to complete the configuration. |
display smartmc device-link
Use display smartmc device-link to display connections between devices in the SmartMC network.
Syntax
display smartmc device-link
Views
Any view
Predefined user roles
network-admin
Usage guidelines
This command is supported only on the TM.
Examples
# Display connections between the devices in the SmartMC network.
<Sysname> display smartmc device-link
(TM IP)[192.168.56.20]
ID Hop LocalPort LocalIP PeerPort PeerIP
0 0 GigabitEthernet1/0/2 192.168.56.20 GigabitEthernet1/0/1 192.168.56.30
1 1 GigabitEthernet1/0/1 192.168.56.30 GigabitEthernet1/0/2 192.168.56.20
1 2 GigabitEthernet1/0/2 192.168.56.30 GigabitEthernet1/0/1 192.168.56.40
2 3 GigabitEthernet1/0/1 192.168.56.40 GigabitEthernet1/0/2 192.168.56.30
Table 2 Command output
Field |
Description |
TM IP |
IP address of the TM. |
ID |
ID of the TM or TC. |
Hop |
Number of hops between the TM and TC. |
LocalPort |
Local port. |
LocalIP |
IP address of the local device. |
PeerPort |
Peer port. |
PeerIP |
IP address of the peer port. |
display smartmc tc
Use display smartmc tc to display TC information.
Syntax
display smartmc tc [ tc-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
Parameters
tc-id: Specifies a TC by its ID in the range of 1 to 255. If you do not specify a TC, this command displays information about all TCs.
verbose: Displays detailed TC information. If you do not specify this keyword, the command displays brief TC information.
Usage guidelines
This command is supported only on the TM.
Examples
# Display brief information about all TCs.
<Sysname> display smartmc tc
TCID DeviceType Sysname IpAddress MacAddress Status Version
1 MSR3600 S1 192.168.22.104 201c-e7c3-0300 Normal COMWAREV700R001
Table 3 Command output
Field |
Description |
TCID |
ID of the TC. |
DeviceType |
Device type of the TC. |
Sysname |
Device name of the TC. |
IpAddress |
IP address of the TC. |
MacAddress |
MAC address of the TC. |
Status |
Operating status of the TC: · Normal—The TC is operating correctly. · Offline—The TC is offline. |
Version |
Software version of the TC. |
# Display detailed information about all TCs.
<Sysname> display smartmc tc verbose
TC ID : 1
Adding method : Manual
Device role : TC(auto)
Sysname : S1
Model : MSR3620-WiNet
Device type : MSR3600
SYSOID : 1.3.6.1.4.1.25506
MAC address : 0e74-e2fb-0400
IP address : 192.168.56.103
Boot image :
Boot image version :
System image :
System image version :
Current-configuration file :
Uptime : 2 days, 3 hours, 4 minutes
System CPU usage : 0%
System memory usage : 0%
Status : Offline
Boot-loader file :
Startup-configuration file :
Table 4 Command output
Field |
Description |
TC ID |
ID of the TC. |
Adding method |
Method through which the TC is added to the SmartMC network: · Manual. · Auto. |
Device role |
Role of the device. · TC—TC manually set by using a command. · TC(auto)—TC elected by devices automatically. |
Sysname |
Device name of the TC. |
Model |
Device model of the TC. |
Device type |
Device type of the TC. |
SYSOID |
MIB node ID of the TC, which represents the device manufacturer. |
MAC address |
MAC address of the TC. |
IP address |
IP address of the TC. |
Boot image |
Boot image file that the TC runs. |
Boot image version |
Version of the boot image file. |
System image |
System image file that the TC runs. |
System image version |
Version of the system image file. |
Current-configuration file |
Current startup configuration file used by the TC. |
Uptime |
Operation duration of the TC. |
System CPU usage |
CPU usage on the TC. |
System memory usage |
Memory usage on the TC. |
Status |
Operating status of the TC: · Normal—The TC is operating correctly. · Offline—The TC is offline. |
Boot-loader file |
Upgrade startup software files. |
Startup-configuration file |
Upgrade configuration file. |
smartmc enable
Use smartmc enable to enable SmartMC and enter the self-mesh mode.
Use undo smartmc enable to disable SmartMC and restore the default settings of SmartMC.
Syntax
smartmc enable [ auto tm ]
undo smartmc enable
Default
SmartMC is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
auto tm: Specifies the TM role.
Usage guidelines
Application scenarios
Smart Management Center (SmartMC) allows centralized management and maintenance of a large number of network devices at the network edge. Enabling SmartMC allows devices to build a SmartMC network with other devices, which can be centrally managed by SmartMC.
Operating mechanism
The SmartMC network contains the following device roles:
· 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.
In self-mesh mode, devices automatically elect TM or TC roles in the network and use factory settings to form a SmartMC network. Devices of different types come with different priorities in role election. The device with the highest priority is elected as the TM. For a device to act as the TM, execute the smartmc enable auto tm command on the device. The other devices automatically run as TCs. If the specified TM fails, the TCs automatically elect a new TM to manage the SmartMC network.
Restrictions and guidelines
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 Security Configuration Guide.
SmartMC fails to be enabled if ports 80 and 443 have been used.
Examples
# Enable SmartMC and enter the self-mesh mode.
<Sysname> system-view
[Sysname] smartmc enable
smartmc ftp-server
Use smartmc ftp-server to configure the FTP server information.
Use undo smartmc ftp-server to delete the FTP server information.
Syntax
smartmc ftp-server server-address username username password { cipher | simple } string
undo smartmc ftp-server
Default
No FTP server information is configured.
Views
System view
Predefined user roles
network-admin
Parameters
server-address: Specifies an FTP server by its IP address.
username username: Specifies the FTP server username, a case-sensitive string of 1 to 55 characters.
password: Specifies the FTP server password.
cipher: Specifies a password in encrypted form.
simple: Specifies a password in plaintext form.
string: Specifies the password. Its plaintext form is a case-sensitive string of 1 to 63 characters. Its encrypted form is a case-sensitive string of 1 to 117 characters.
Usage guidelines
This command is supported only on the TM.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Set the FTP server IP address, username, and password to 192.168.22.19, admin, and hello12345, respectively.
<Sysname> system-view
[Sysname] smartmc ftp-server 192.168.22.19 username admin password simple hello12345
Related commands
display smartmc configuration
smartmc password
Use smartmc password to set the network-wide SmartMC password.
Use undo smartmc password to restore the default.
Syntax
smartmc password [ cipher ] string
undo smartmc password
Default
The default password is h3capadmin for APs and the default password is admin for devices of other types. The default TC username is admin.
Views
System view
Predefined user roles
network-admin
Parameters
cipher: Specifies a password in ciphertext format. If you do not specify this keyword, the command sets the password in plaintext format but saves the password in encrypted format.
string: Specifies the password, a case-sensitive string of 1 to 63 characters in plaintext format or 1 to 117 characters in ciphertext format.
Usage guidelines
Application scenarios
To manage and maintain a SmartMC network, the TM establishes a NETCONF channel with each TC by using the local username (admin) and the default password. To increase device security, you can perform this task to change the password used for NETCONF channel establishment.
Operating mechanism
After you configure the SmartMC network-wide password on TM, the TM deploys the configuration to all TCs, and the password will take effect on all TCs. The TM and TCs will use this password to rebuild the NETCONF channels.
Recommended configuration
As a best practice for security purposes, change the network-wide password on the TM once the SmartMC network is established.
Restrictions and guidelines
Both TM and TC roles support this command:
· After you execute this command on the TM, the TM immediately synchronizes the configuration to all TCs. The local stored network password will also be synchronized to all TCs according to a set interval.
· Executing this command on a TC only modifies the NETCONF channel authentication password for that TC. For a TC, the most recent action is effective, whether it be locally configuring the NETCONF channel authentication password or synchronizing with the TM.
Examples
# Set the network-wide SmartMC password to hello123.
<Sysname> system-view
[Sysname] smartmc enable
[sysname] smartmc password hello123