In this theme, I want to show you basic commands for creating, modify, display and delete user accounts on OLT. I show examples for every command.
The first time, you can connect to OLT over a serial cable. When you set parameters for remote access, you can use ssh or telnet. Because security, recommended is ssh.
1. To login into the OLT, at the first time – root, x
login as: root Keyboard-interactive authentication prompts from server: | User Authentication | User password: End of keyboard-interactive prompts from server Huawei Integrated Access Software (MA5800). Copyright(C) Huawei Technologies Co., Ltd. 2002-2016. All rights reserved. ----------------------------------------------------------------------------- User last login information: ----------------------------------------------------------------------------- Access Type: SSH IP-Address : x.x.x.x Login Time : 29-05-2020 05:25:05+01:00 Logout Time : 29-05-2020 06:13:10+01:00 ----------------------------------------------------------------------------- ... TEST>
2. Command for add user profile:
TEST(config)# terminal user-profile add User profile name (<=15 chars): konzul Validity period of the user name (0—999 days)[0]:10 Validity period of the password (0—999 days)[0]:10 Permitted start time of logon by a user(hh:mm)[00:00]:10:00 Permitted end time of logon by a user(hh:mm)[00:00]:20:00 Adding user-profile successfully Repeat this operation? (y/n)[n]: n Note: With this command, you can define the validity period of the user name and password, and login start/end time.
3. Command for add new user:
TEST(config)# terminal user name User Name(length<6,15>): konzul User Password(length<6,15>): (insert a strong password here) Confirm Password(length<6,15>): (confirm the password) User profile name(<=15 chars)[root]: (press ENTER) User's Level: 1. Common User 2. Operator 3. Administrator: 3 Permitted Reenter Number(0--4): 4 User's Appended Info(<=30 chars): (press ENTER or a comment) Adding user successfully Repeat this operation? (y/n)[n]: n
4. Command for delete user:
TEST(config)#undo terminal user name User Name(<=15 chars): konzul Are you sure to delete the user? (y/n)[n]:y Deleting user successfully Repeat this operation? (y/n)[n]:n Note: Only admins have the right to delete users whose levels are lower than their own levels and cannot delete online users.
5. Command for change password:
OLT(config)# terminal user password User Name(<=15 chars): root New Password(length<6,15>): (insert a strong password here) Confirm Password(length<6,15>): (confirm the password) Information takes effect Repeat this operation? (y/n)[n]: n Note: At the first time, you have to change the root password. After that, you have to remember it. If you forgot this password, you must call your vendor.
6. Command for change user level:
TEST(config)# terminal user level User Name(<=15 chars): konzul 1. Common User 2. Operator 3. Administrator: 3 User's Level: 1 Confirm Level: 1 Information will take effect when this user logs on next time Repeat this operation? (y/n)[n]: n Note: Only a higher-level user can change the level of another user.
7. Command for change the number of concurrent login times to 3:
TEST(config)# terminal user reenter User Name(<=15 chars): konzul Permitted Reenter Number(0--4): 3 Confirm Reenter Number(0--4): 3 Information will take effect when this user logs on next time Repeat this operation? (y/n)[n]: n
8. Command for display all users:
TEST(config)#display terminal user all { <cr>||<K> }: Command: display terminal user all ---------------------------------------------------------------------------- Name Level Status Reenter Profile Append Num Info ---------------------------------------------------------------------------- root Super Online 1 root ----- ---------------------------------------------------------------------------- Total record(s) number: 1
If you want to see only one user account, you can use this command:
TEST(config)#display terminal user konzul.
These are basic commands for user accounts.
Leave a comment