H3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101

HomeSupportQuick StartH3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101
Table of Contents
Related Documents
05-Device Management Quick Start Configuration Guide

Device Management Quick Start Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2022 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Configuring the device name and system time

Introduction

The following information uses examples to describe the basic procedure for configuring the device name and system time.

The device can use one of the following methods to obtain the system time:

·     Uses the locally set system time, and then uses the clock signals generated by its built-in crystal oscillator to maintain the system time.

·     Periodically obtains the UTC time from an NTP or PTP source, and then uses the UTC time, time zone, and daylight saving time to calculate the system time. For more information about NTP and PTP, see the network management and monitoring configuration guide for the device.

The system time calculated by using the UTC time from a time source is more precise.

 

 

NOTE:

Support for PTP depends on the device model.

 

Procedure

Configuring the device name

# Enter system view.

<Device> system-view

# Set the device name to abcd.

[Device] sysname abcd

[adcd]

Configuring the system time

Using the locally set system time

# Enter system view.

<Device> system-view

# Configure the device to use the locally set system time.

[Device] clock protocol none

# Return to user view, and set the local system time to 11:08:00 2021/09/01.

[Device] quit

<Device> clock datetime 11:8 2021/9/1

Obtaining the system time through NTP

# Enter system view.

<Device> system-view

# Specify NTP for obtaining the system time.

[Device] clock protocol ntp

Obtaining the system time through PTP

# Enter system view.

<Device> system-view

# Specify PTP for obtaining the system time.

[Device] clock protocol ptp

Verifying the configuration:

# Display the current system time.

[Device] display clock

11:08:00.258 UTC Wed 01/09/2021

The command output shows the system time in hour:minute:second.millisecond format.

Configuration files

·     Configure the device name.

#

 sysname abcd

#

·     Use the locally set system time.

#

 clock datetime 11:8 2021/9/1

 clock protocol none

#

·     Obtain the system time through NTP.

#

 clock protocol ntp

#

·     Obtain the system time through PTP.

#

 clock protocol ptp

#

Related documentation

·     Device management configuration in the fundamentals configuration guide for the device.

·     Device management commands in the fundamentals command reference for the device.


Scheduling a device reboot

Introduction

The following information uses examples to describe the basic procedure for scheduling a device reboot.

You can schedule a device reboot as follows:

·     Configure the device to reboot at a specific date and time.

·     Configure the device to reboot after a period of time.

·     Configure the device to reboot at the specified time every day.

Procedure

Configuring the device to reboot at a specific date and time

# Configure the device to reboot at 12:00 p.m. This example assumes that the current time is 11:00 a.m. on September 1, 2021.

<Device> scheduler reboot at 12:00

Reboot system at 12:00:00 01/09/2021 (in 1 hours and 0 minutes). Confirm? [Y/N]:Y

Configuring the device to reboot after a period of time

# Configure the device to reboot after 88 minutes. This example assumes that the current time is 11:00 a.m. on September 1, 2021.

<Device> scheduler reboot delay 88

Reboot system at 12:28 01/09/2021(in 1 hours and 28 minutes). Confirm? [Y/N]:Y

Configure the device to reboot at the specified time every day

# Enter system view.

<Device> system-view

# Create a job named reboot and assign the reboot command to the job.

[Device] scheduler job reboot

[Device-job-reboot] command 1 reboot

# Exit to system view.

[Device-job-reboot] quit

# Create a schedule named schedule-reboot, and assign job reboot to it for it to execute device reboot at 23:00 every day.

[Device] scheduler schedule schedule-reboot

[Device-schedule-schedule-reboot] job reboot

[Device-schedule-schedule-reboot] time repeating at 23:00

# Exit to system view.

[Device-schedule-schedule-reboot] quit

# Save the configuration.

[Device] save

Verifying the configuration

# Display the automatic reboot schedule.

<Device> display scheduler reboot

System will reboot at 12:28 01/09/2021 (in 1 hours and 28 minutes).

# Display schedule information.

[Device-schedule-schedule-reboot] display scheduler schedule

Schedule name        : schedule-reboot

Schedule type        : Run on every day at 23:00:00

Start time           : Wed Sep 01 11:00:00 2021

Last execution time  : Yet to be executed

-----------------------------------------------------------------------

Job name                                          Last execution status

reboot                                            -NA-

# Display job configuration information.

[Device] display scheduler job

Job name: reboot

 reboot

Configuration files

Configure the device to reboot at 23:00 every day.

#

scheduler job reboot

 command 1 reboot

#

scheduler schedule schedule-reboot

 user-role network-operator

 user-role network-admin

 job reboot

 time repeating at 23:00

#

Related documentation

·     Device management configuration in the fundamentals configuration guide for the device.

·     Device management commands in the fundamentals command reference for the device.

  • 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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网