17-Network Management and Monitoring Command Reference

HomeSupportReference GuidesCommand ReferencesH3C MSR810 2600 3600 Routers Command References(V7)-R0707-6W30217-Network Management and Monitoring Command Reference
19-SmartMC commands
Title Size Download
19-SmartMC commands 150.45 KB

SmartMC commands

boot-loader

Use boot-loader to specify the upgrade startup software files for a SmartMC group.

Use undo boot-loader to restore the default.

Syntax

boot-loader file { ipe-filename | boot boot-filename system system-filename }

undo boot-loader

Default

No upgrade startup software files are specified for a SmartMC group.

Views

SmartMC group view

Predefined user roles

network-admin

Parameters

ipe-filename: Specifies an IPE file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .ipe extension.

boot boot-filename: Specifies a boot image file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .bin extension.

system system-filename: Specifies a system image file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .bin extension.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify IPE file device.ipe for SmartMC group testgroup.

<Sysname> system-view

[Sysname] smartmc group testgroup

[Sysname-smartmc-group-testgroup] boot-loader file device.ipe

Related commands

smartmc group

startup-configuration

create batch-file

Use create batch-file to create a batch file.

Syntax

create batch-file batch-file-name

Default

No batch files exist.

Views

User view

Predefined user roles

network-admin

Parameters

batch-file-name: Specifies a name for the batch file, a case-insensitive string of 1 to 255 characters. If you do not specify a file extension when specifying a file name, the default extension .cmdset is used.

Usage guidelines

After executing this command, you will enter the batch edit mode. In this mode, each command occupies a line. When you finish editing all command lines, 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.

Examples

# Create batch file test.cmdset, and enter the command lines for specifying the device name as Sysname and enabling Telnet.

<Sysname> create batch-file test.cmdset

Begin to edit batch commands, and quit with the character '%'.

system-view

sysname Sysname

telnet server enable%

<Sysname>

Related commands

display smartmc batch-file status

smartmc batch-file deploy

display smartmc backup configuration status

Use display smartmc backup configuration status to display the backup status for TCs.

Syntax

display smartmc backup configuration status

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

This command displays the status of the ongoing backup task or the most recent backup task if the TC is not performing backup.

Examples

# Display the backup status for TCs.

<Sysname> display smartmc backup configuration status

ID     IpAddress        MacAddress          Status       Time

1      192.168.56.30    08d2-38ff-0300      Finished     2017-04-05 11:30:35

2      192.168.56.40    62d2-c21c-0400      Finished     2017-04-05 11:30:40

Table 1 Command output

Field

Description

ID

ID of the TC.

IpAddress

IP address of the TC.

MacAddress

MAC address of the TC.

Status

Backup status:

·     Waiting—The TC is waiting for configuration backup.

·     Processing—The TC is backing up the configuration.

·     Finished—The TC has finished backing up the configuration.

·     Timeout—Configuration backup times out.

·     Failed—The TC failed to back up the configuration.

Time

Time when the TC finished backing up the configuration. If the TC has not finished backing up the configuration, this field displays a hyphen (-).

 

Related commands

smartmc backup configuration

smartmc backup configuration interval

smartmc backup configuration max-number

display smartmc batch-file status

Use display smartmc batch-file status to display the batch file execution result.

Syntax

display smartmc batch-file status [ last number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

last number: Specifies a configuration deployment by its number counting from the most recent configuration deployment, in the range of 1 to 5. If you do not specify this option, the command displays the execution result for the most recent configuration deployment.

Examples

# Display the batch file execution result.

<Sysname> display smartmc batch-file status last 1

TC ID 1

Device MAC         : 201c-e7c3-0300

Start time         : 2017-03-21 10:23:53

End time           : 2017-03-21 10:23:57

Result             :

 

<Sysname>system-view

System View: return to User View with Ctrl+Z.

[Sysname]display smartmc configuration

Device role        : TC

TM IP address      : 192.168.22.103

TM MAC address     : 0ec3-6a94-0100

TM sysname         : Sysname

 

TC ID 2

Device MAC         : 2409-600f-0400

Start time         : 2017-05-06 17:47:20

End time           : 2017-05-06 17:47:25

Result             :

 

<Sysname>system-view

System View: return to User View with Ctrl+Z.

[Sysname]display smartmc configuration

Device role       : TC

TM IP address     : 192.168.22.103

TM MAC address    : 0ec3-6a94-0100

TM sysname        : S1

 

Table 2 Command output

Field

Description

TC ID

ID of the TC.

Device MAC

MAC address of the TC.

Start time

Batch command line execution start time.

End time

Batch command line execution end time.

Result

Batch command line execution result in details.

 

Related commands

create batch-file

smartmc batch-file deploy

display smartmc configuration

Use display smartmc configuration to display the SmartMC configuration.

Syntax

display smartmc configuration

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display the SmartMC configuration on the TM.

<Sysname> display smartmc configuration

Device role                            : TM

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

# Display the TM information on a TC.

<Sysname> display smartmc configuration

Device role       : TC

TM IP             : 192.168.22.103

TM MAC            : 8288-468d-0100

TM sysname        : Sysname

Table 3 Command output

Field

Description

Device role

Role of the device.

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.

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.

 

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

network-operator

Usage guidelines

This command allows you to display the connections between the TM and TCs.

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 4 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.

 

Related commands

smartmc topology-refresh

smartmc topology-refresh interval

display smartmc group

Use display smartmc group to display SmartMC group information.

Syntax

display smartmc group [ group-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

group-name: Specifies a SmartMC group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a SmartMC group, the command displays information about all SmartMC groups.

Verbose: Displays detailed SmartMC group information. If you do not specify this keyword, the command displays brief SmartMC group information.

Examples

# Display detailed information about all SmartMC groups.

<Sysname> display smartmc group verbose

Group name                   : test

TC count                     : 5

Boot-loader file             :

Startup-configuration file   :

Rule:

 Match Device-type S5560-EI

 Match IP-address 192.168.56.0 24

 Match MAC-address 0e74-ea13-0000 32

TCID   DeviceType  IpAddress        MacAddress      Status     Version     Sysname

1      S5560-EI    192.168.56.103   0e74-e2fb-0400  Normal     R1306       S1

2      S5560-EI    192.168.56.102   0e74-ea13-0500  Normal     R1306       S2

3      S5560-EI    192.168.56.104   0e74-db54-0300  Normal     R1306       S3

Table 5 Command output

Field

Description

GroupName

Name of the SmartMC group.

TC count

Number of TCs in the SmartMC group.

Boot-loader file

Names of the upgrade startup software files for upgrading the SmartMC group. If no upgrade startup software files are specified, this field displays null.

Startup-configuration file

Name of the configuration file for upgrading the SmartMC group. If no configuration file is specified, this field displays null.

Rule

Match criteria of the SmartMC group.

Match

Match type and its value. The match types include the following:

·     Device-type—Matches TCs by device type.

·     IP-address—Matches TCs by IP address.

·     MAC-address—Matches TCs by MAC address.

TCID

ID of the TC.

DeviceType

Device type of the TC.

IpAddress

IP address of the TC.

MacAddress

MAC address of the TC.

Version

Software version of the TC.

Status

Operating status of the TC:

·     Offline—The TC is offline.

·     Normal—The TC is online.

Sysname

Device name of the TC.

 

Related commands

match

smartmc group

display smartmc replace status

Use display smartmc replace status to display faulty TC replacement status.

Syntax

display smartmc replace status

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display faulty TC replacement status.

<Sysname> display smartmc replace status

Faulty ID      : 2

Faulty MAC     : 94e2-cdcb-0600

Replacement ID : 3

Replacement MAC: 2443-5f8c-0200

Mode           : Manual

Status         : Successful

Start time     : 2017-03-21 15:01:31

End time       : 2017-03-21 15:01:40

Table 6 Command output

Field

Description

Faulty ID

ID of the faulty TC.

Faulty MAC

MAC address of the faulty TC.

Replacement ID

ID of the new TC.

Replacement MAC

MAC address of the new TC.

Mode

Replacement method, which can be Manual or Auto.

Status

Replacement status:

·     Successful.

·     Failed.

·     Replacing.

·     Timeout.

Start time

Replacement start time

End time

Replacement end time.

 

Related commands

smartmc auto-replace enable

smartmc replace

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

network-operator

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.

Examples

# Display brief information about all TCs.

<Sysname> display smartmc tc

TCID  DeviceType         IpAddress       MacAddress      Status   Version  Sysname

1     S5560-EI           192.168.22.104  201c-e7c3-0300  Normal   R1308    S1

Table 7 Command output

Field

Description

TCID

ID of the TC.

DeviceType

Device type 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.

Sysname

Device name of the TC.

 

# Display detailed information about all TCs.

<Sysname> display smartmc tc verbose

 

TC ID                        : 1

Adding method                : Manual

Sysname                      : S1

Model                        : S5560-54C-PWR-EI

Device type                  : S5560-EI

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 is: 0 week, 0 day, 0 hour, 0 minute

System CPU usage             : 0%

System memory usage          : 0%

Status                       : Offline

Boot-loader file             :

Startup-configuration file   :

Table 8 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.

Sysname

Device name of the TC.

Model

Device model of the TC.

Device type

Device type of the TC.

SYSOID

SYSOID of the TC.

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.

 

display smartmc upgrade status

Use display smartmc upgrade status to display TC upgrade status.

Syntax

display smartmc upgrade status

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display TC upgrade status.

<Sysname> display smartmc upgrade status

ID    IpAddress         MacAddress      Status      UpdateTime        UpdateFile

1     192.168.56.1      82dd-a434-0200  Finished    Immediately       bootloader.ipe

2     192.168.56.103    5caf-2e5f-0100  Finished    Immediately       bootloader.ipe

Table 9 Command output

Field

Description

ID

ID of the TC.

MacAddress

MAC address of the TC.

IpAddress

IP address of the TC.

Status

Upgrade status:

·     Waiting—The TC is waiting for downloading the upgrade file.

·     Download-failed—The TC failed to download the upgrade file.

·     Download-finished—The TC has downloaded the upgrade file.

·     Downloading—The TC is downloading the upgrade file.

·     Updating—The TC is upgrading.

·     Finished—The TC has finished upgrading.

·     Failed—The TC failed to upgrade.

·     Unknown.

Updated File

Name of the upgrade file.

UpdateTime

Upgrade time:

·     Immediately—Upgrade at once.

·     Delay(m)—Upgrade after the specified delay.

·     Time(HH:MM)—Upgrade at the specified time.

 

Related commands

smartmc upgrade group

smartmc upgrade tc

match

Use match to set a match criterion to add all matching TCs to a SmartMC group.

Use undo match to delete a match criterion.

Syntax

match { device-type device-type | ip-address ip-address { ip-mask-length | ip-mask } | mac-address mac-address mac-mask-length }

undo match { device-type device-type | ip-address ip-address { ip-mask-length | ip-mask } | mac-address mac-address mac-mask-length }

Default

No match criterion is set.

Views

SmartMC group view

Predefined user roles

network-admin

Parameters

device-type device-type: Sets a device type match criterion.

ip-address ip-address { ip-mask-length | ip-mask }: Sets an IP address match criterion. The ip-address argument specifies an IP address in dotted decimal notation. The ip-mask argument specifies the subnet mask in dotted decimal notation. The ip-mask-length argument specifies the subnet mask length in the range of 1 to 32.

mac-address mac-address mac-mask-length: Sets a MAC address match criterion. The mac-address argument specifies a MAC address in the format of H-H-H. The mac-mask-length argument specifies the mask length in the range of 1 to 48.

Examples

# Create SmartMC group a and add TCs in subnet 192.168.1.0/24 to the group.

<Sysname> system-view

[Sysname] smartmc group a

[Sysname-smartmc-group-a] match ip-address 192.168.1.0 24

Related commands

smartmc group

display smartmc group

smartmc auto-replace enable

Use smartmc auto-replace enable to enable the automatic faulty TC replacement feature.

Use undo smartmc auto-replace enable to disable the automatic faulty TC replacement feature.

Syntax

smartmc auto-replace enable

undo smartmc auto-replace enable

Default

The automatic faulty TC replacement feature is disabled.

Views

System view

Predefined user roles

network-admin

Usage guidelines

Before you execute this command, perform the following tasks:

1.     Install the new TC at the location where the faulty TC was installed.

2.     Connect all cables to the new TC.

Make sure the new TC and the faulty TC have the same neighbor relationship, device model, and IRF member ID.

Examples

# Enable the automatic faulty TC replacement feature.

<Sysname> system-view

[Sysname] smartmc auto-replace enable

Related commands

smartmc replace

smartmc backup configuration

Use smartmc backup configuration to manually back up the configuration file on TCs.

Syntax

smartmc backup configuration { group group-name-list | tc [ tc-id-list ] }

Views

System view

Predefined user roles

network-admin

Parameters

group group-name-list: Specifies a space-separated list of up to 10 SmartMC group items. Each item specifies a SmartMC group name, a case-sensitive string of 1 to 31 characters.

tc tc-id-list: Specifies a space-separated list of up to 10 TC items. Each item specifies a TC or a range of TCs in the form of tc-id1 to tc-id2. The value for tc-id2 must be greater than or equal to the value for tc-id1. The value range for the tc-id argument is 1 to 255. If you do not specify any TCs, all TCs will perform configuration backup.

Usage guidelines

After you execute this command, the TCs immediately save the running configuration to the next-startup configuration files and upload the configuration files to the FTP server.

The backup configuration files are named in the format of bridge MAC address_backup.cfg.

Examples

# Back up the configuration file on TC 1, TC 2, TC 3, and TC 4.

<Sysname> system-view

[Sysname] smartmc backup configuration tc 1 to 4

# Back up the configuration file on all TCs in SmartMC groups test1, test2, and test3.

<Sysname> system-view

[Sysname] smartmc backup configuration group test1 test2 test3

Related commands

display smartmc configuration

smartmc backup configuration interval

smartmc backup configuration max-number

Use smartmc backup configuration max-number to set the maximum number of TCs that can perform automatic configuration backup at the same time.

Use undo smartmc backup configuration max-number to restore the default.

Syntax

smartmc backup configuration max-number max-number

undo smartmc backup configuration max-number

Default

A maximum of five TCs can perform automatic configuration backup at the same time.

Views

System view

Predefined user roles

network-admin

Parameters

max-number: Specifies the maximum number of TCs that can perform automatic configuration backup at the same time, in the range of 2 to 20.

Examples

# Specify that a maximum of 10 TCs can perform automatic configuration backup at the same time.

<Sysname> system-view

[Sysname] smartmc backup configuration max-number 10

Related commands

display smartmc configuration

smartmc backup configuration

smartmc backup configuration interval

smartmc backup configuration interval

Use smartmc backup configuration interval to enable the automatic configuration file backup feature and set the automatic backup interval.

Use undo smartmc backup configuration interval to restore the default.

Syntax

smartmc backup configuration interval interval

undo smartmc backup configuration interval

Default

The automatic configuration file backup feature is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

Interval: Specifies the automatic configuration file backup interval in the range of 1 to 720 hours.

Usage guidelines

This command enables the TM and TCs to back up their configuration files by saving the running configuration to the files and then uploading them to the FTP server. When you configure this command, the TM and TCs immediately perform a backup. After that, they back up the configuration files at the specified interval. The backup configuration files are named in the format of bridge MAC address_backup.cfg.

Examples

# Enable the automatic configuration file backup feature and set the backup interval to 24 hours.

<Sysname> system-view

[Sysname] smartmc backup configuration interval 24

Related commands

display smartmc configuration

smartmc backup configuration

smartmc batch-file deploy

Use smartmc batch-file deploy to deploy a batch file to a list of TCs or SmartMC groups.

Syntax

smartmc batch-file batch-file-name deploy { group group-name-list | tc tc-id-list }

Views

System view

Predefined user roles

network-admin

Parameters

batch-file-name: Specifies a batch file by its name, a case-insensitive string of 1 to 255 characters.

group group-name-list: Specifies a space-separated list of up to 10 SmartMC group items. Each item specifies a SmartMC group name, a case-sensitive string of 1 to 31 characters.

tc tc-id-list: Specifies a space-separated list of up to 10 TC items. Each item specifies a TC or a range of TCs in the form of tc-id1 to tc-id2. The value for tc-id2 must be greater than or equal to the value for tc-id1. The value range for the tc-id argument is 1 to 255.

Examples

# Deploy batch file startup.cmdset to SmartMC group testgroup.

<Sysname> system-view

[Sysname] smartmc batch-file startup.cmdset deploy group testgroup

Related commands

create batch-file

display smartmc batch-file status

smartmc enable

Use smartmc enable to enable SmartMC and set the device role.

Use undo smartmc enable to disable SmartMC.

Syntax

smartmc { tm [ username username password { cipher | simple } string ] | tc } enable

undo smartmc enable

Default

SmartMC is disabled.

Views

System view

Predefined user roles

network-admin

Parameters

tm: Enables SmartMC and sets the device role to TM.

username username: Specifies a username for the local user, a case-sensitive string of 1 to 55 characters.

password: Specifies a password for the local user.

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.

tc: Enables SmartMC and sets the device role to TC.

Usage guidelines

A SmartMC network must have one and only one TM.

To enable SmartMC, execute this command on both the TM and TCs. To configure the other SmartMC features, execute associated commands only on the TM.

If you change the role of the TM to TC or disable SmartMC on the TM, all SmartMC settings in its running configuration will be cleared.

For manual SmartMC network establishment, the TM preferentially uses the user-specified username and password. If no username and password are specified, the TM uses the default username admin and password admin.

Examples

# Enable SmartMC and set the device role to TM.

<Sysname> system-view

[Sysname] smartmc tm 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

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 admin, respectively.

<Sysname> system-view

[Sysname] smartmc ftp-server 192.168.22.19 username admin password simple admin

Related commands

display smartmc configuration

smartmc group

Use smartmc group to create a SmartMC group and enter its view, or enter the view of an existing SmartMC group.

Use undo smartmc group to delete a SmartMC group.

Syntax

smartmc group group-name

undo smartmc group group-name

Default

No SmartMC groups exist.

Views

System view

Predefined user roles

network-admin

Parameters

group-name: Specifies the name of the SmartMC group, a case-sensitive string of 1 to 31 characters.

Usage guidelines

When you perform the following operations, you can specify a SmartMC group to apply the operations to all TCs in the group:

·     Startup software upgrade.

·     Configuration file upgrade.

·     Configuration deployment.

Examples

# Create SmartMC group testgroup.

<Sysname> system-view

[Sysname] smartmc group testgroup

[Sysname-smartmc-group-testgroup]

Related commands

match

smartmc replace

Use smartmc replace to manually replace a faulty TC.

Syntax

smartmc replace tc tc-id1 faulty-tc tc-id2

Views

System view

Predefined user roles

network-admin

Parameters

tc tc-id1: Specifies the ID of the new TC, in the range of 1 to 255.

faulty-tc tc-id2: Specifies the ID of the faulty TC, in the range of 1 to 255.

Usage guidelines

Before you execute this command, perform the following tasks:

1.     Install the new TC at the location where the faulty TC was installed.

2.     Connect all cables to the new TC.

Make sure the new TC and the faulty TC have the same neighbor relationship, device model, and IRF member ID.

Examples

# Replace faulty TC 5 with new TC 10.

<Sysname> system-view

[Sysname] smartmc replace tc 10 faulty-tc 5

Related commands

display smartmc replace status

smartmc auto-replace enable

smartmc tc boot-loader

Use smartmc tc boot-loader to specify the upgrade startup software files for a TC.

Use undo smartmc tc boot-loader to remove the configuration.

Syntax

smartmc tc tc-id boot-loader { ipe-filename | boot boot-filename system system-filename }

undo smartmc tc tc-id boot-loader

Views

System view

Predefined user roles

network-admin

Parameters

tc tc-id: Specifies a TC by its ID in the range of 1 to 255.

ipe-filename: Specifies an IPE file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .ipe extension.

boot boot-filename: Specifies a boot image file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .bin extension.

system system-filename: Specifies a system image file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .bin extension.

Examples

# Specify boot image file boot.bin and system image file system.bin for TC 1.

<Sysname> system-view

[Sysname] smartmc tc 1 boot-loader boot boot.bin system system.bin

Related commands

display smartmc tc

smartmc tc device-type

Use smartmc tc device-type to define a TC type on the TM.

Use undo smartmc tc device-type to delete a TC type.

Syntax

smartmc tc sysoid sysoid device-type device-type

undo smartmc tc sysoid sysoid device-type device-type

Views

System view

Predefined user roles

network-admin

Parameters

sysoid sysoid: Specifies the SYSOID of a device.

device-type device-type: Specifies a device type.

Usage guidelines

To obtain the SYSOID of a TC, use the display smartmc tc verbose command.

Examples

# Define a TC type by specifying the SYSOID as 1.3.6.1.4.1.25506.1.1588 and the device type as SW.

<Sysname> system-view

[Sysname] smartmc tc sysoid 1.3.6.1.4.1.25506.1.1588 device-type SW

smartmc tc password

Use smartmc tc password to modify the password for the default user on TCs.

Syntax

smartmc tc password string

Views

System view

Predefined user roles

network-admin

Parameters

string: Specifies a password, a case-sensitive string of 1 to 63 characters.

Usage guidelines

During SmartMC network establishment, the TM establishes NETCONF sessions to TCs and adds them to the network. The default username and password on the TCs 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 TCs after the TM adds the TCs to the network.

Do not modify the password for TCs that are manually added to the SmartMC network. If you modify the password for a manually added TC, you will not be able to manage that TC from the TM.

Examples

# Modify the password to Admin123 for the default user on TCs.

<Sysname> system-view

[Sysname] smartmc tc password Admin123

smartmc tc startup-configuration

Use smartmc tc startup-configuration to specify the upgrade configuration file for a TC.

Use undo smartmc tc startup-configuration to remove the configuration.

Syntax

smartmc tc tc-id startup-configuration cfg-filename

undo smartmc tc tc-id startup-configuration

Views

System view

Predefined user roles

network-admin

Parameters

tc tc-id: Specifies a TC by its ID in the range of 1 to 255.

cfg-filename: Specifies a configuration file by its name, a case-insensitive string of 5 to 45 characters. The file name must include the .cfg extension.

Examples

# Specify upgrade configuration file startup.cfg for TC 1.

<Sysname> system-view

[Sysname] smartmc tc 1 startup-configuration startup.cfg

Related commands

display smartmc tc

smartmc topology-refresh

Use smartmc topology-refresh to manually refresh the network topology.

Syntax

smartmc topology-refresh

Views

Any view

Predefined user roles

network-admin

Usage guidelines

To display topology changes, use this command to manually refresh the topology.

Examples

# Manually refresh the network topology.

<Sysname> smartmc topology-refresh

Related commands

display smartmc device-link

smartmc topology-refresh interval

Use smartmc topology-refresh interval to set the automatic network topology refresh interval.

Use undo smartmc topology-refresh interval to restore the default.

Syntax

smartmc topology-refresh interval interval

undo smartmc topology-refresh interval

Default

The automatic network topology refresh interval is 60 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

interval: Specifies the automatic network topology refresh interval in the range of 60 to 300 seconds.

Examples

# Set the automatic network topology refresh interval to 100 seconds.

<Sysname> system-view

[Sysname] smartmc topology-refresh interval 100

Related commands

display smartmc device-link

smartmc topology-save

Use smartmc topology-save to save the current network topology.

Syntax

smartmc topology-save

Views

System view

Predefined user roles

network-admin

Usage guidelines

This task allows you to save the current network topology to the topology.dba file in the flash memory. After the TM reboots, it uses the topology.dba file to restore the network topology.

Examples

# Save the current network topology

<Sysname> system-view

[Sysname] smartmc topology-save

Related commands

display smartmc device-link

smartmc upgrade boot-loader

Use smartmc upgrade boot-loader to upgrade the startup software on a list of TCs or SmartMC groups.

Use undo smartmc upgrade delete the startup software upgrade task.

Syntax

smartmc upgrade boot-loader { group | tc } list [ delay minutes | time time ]

smartmc upgrade boot-loader { group | tc } { list { boot boot-filename system system-filename | file ipe-filename } }&<1-40> [ delay delay-time | time time ]

undo smartmc upgrade

Views

System view

Predefined user roles

network-admin

Parameters

group: Specifies SmartMC group-based upgrade.

tc: Specifies TC-based upgrade.

list: Specifies a space-separated list of TC items or SmartMC group items.

·     SmartMC group—Each item specifies a SmartMC group name, a case-sensitive string of 1 to 31 characters.

·     TC—Each item specifies a TC ID or a range of TC IDs in the form of tc-id1 to tc-id2. The value for tc-id2 must be greater than or equal to the value for tc-id1. The value range for the tc-id argument is 1 to 255.

boot boot-filename: Specifies a boot image file by its name.

system system-filename: Specifies a system image file by its name.

file ipe-filename: Specifies an IPE file by its name.

delay delay-time: Specifies the upgrade delay time in the range of 1 to 1440 minutes.

time in-time: Specifies the upgrade time in the format of hh:mm. The value range for the hh argument is 0 to 23 hours. The value range for the mm argument is 0 to 59 minutes.

Usage guidelines

To use this command to upgrade the startup software on TCs without specifying the upgrade files, you must first perform one of the following tasks:

·     Execute the smartmc tc boot-loader command to specify the upgrade files for TCs.

·     Execute the boot-loader command to specify the upgrade files for a SmartMC group.

A TC can perform only one upgrade task at a time.

If you execute this command without specifying the delay time or update time, the TCs or SmartMC group immediately upgrades the startup software.

Examples

# Upgrade startup software images boot.bin and sys.bin on all TCs in SmartMC groups test1 and test2.

<Sysname> system-view

[Sysname] smartmc upgrade boot-loader group test1 test2 boot boot.bin system sys.bin

Related commands

boot-loader

startup-configuration

smartmc upgrade startup-configuration

Use smartmc upgrade startup-configuration to upgrade the configuration file on a list of TCs or on all TCs in SmartMC groups.

Use undo smartmc upgrade delete the configuration file upgrade task.

Syntax

smartmc upgrade startup-configuration { group | tc } list [ delay minutes | time time ]

smartmc upgrade startup-configuration { group | tc } { list cfg-filename }&<1-40> [ delay delay-time | time time ]

undo smartmc upgrade

Views

System view

Predefined user roles

network-admin

Parameters

group: Specifies SmartMC group-based upgrade.

tc: Specifies TC-based upgrade.

list: Specifies a space-separated list of TC items or SmartMC group items.

·     SmartMC group—Each item specifies a SmartMC group name, a case-sensitive string of 1 to 31 characters.

·     TC—Each item specifies a TC ID or a range of TC IDs in the form of tc-id1 to tc-id2. The value for tc-id2 must be greater than or equal to the value for tc-id1. The value range for the tc-id argument is 1 to 255.

cfg-filename: Specifies a configuration file by its name.

delay delay-time: Specifies the upgrade delay time in the range of 1 to 1440 minutes.

time in-time: Specifies the upgrade time in the format of hh:mm. The value range for the hh argument is 0 to 23 hours. The value range for the mm argument is 0 to 59 minutes.

Usage guidelines

To use this command to upgrade the configuration file on TCs without specifying the upgrade file, you must first perform one of the following  tasks:

·     Execute the smartmc tc startup-configuration command to specify the upgrade file for TCs.

·     Execute the startup-configuration command to specify the upgrade file for a SmartMC group.

A TC can perform only one upgrade task at a time.

If you execute this command without specifying the delay time or update time, the TCs or SmartMC group immediately upgrades the configuration file.

Examples

# Upgrade configuration file startup.cfg on all TCs in SmartMC groups test1 and test2.

<Sysname> system-view

[Sysname] smartmc upgrade boot-loader group test1 test2 boot boot.bin system sys.bin

Related commands

boot-loader

startup-configuration

startup-configuration

Use startup-configuration to specify an upgrade configuration file for a SmartMC group .

Use undo startup-configuration to restore the default.

Syntax

startup-configuration cfgfile

undo startup-configuration

Default

No upgrade configuration file is specified for the SmartMC group.

Views

SmartMC group view

Predefined user roles

network-admin

Parameters

cfgfile: Specifies a configuration file by its name, a string of 5 to 45 characters. The file name must include the .cfg extension.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify configuration file startup.cfg for SmartMC group testgroup.

<Sysname> system-view

[Sysname] smartmc group testgroup

[Sysname-smartmc-group-testgroup] startup-configuration startup.cfg

Related commands

smartmc group

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网