S5720 security level for only port control

Created: Jun 29, 2018 13:51:17Latest reply: Aug 9, 2018 06:11:31 1468 11 0 0
  Rewarded Hi-coins: 0 (problem resolved)
Hello,

I want to create a user for my S5720 Switch with privilegs only that the user can reboot or shut down the normal Gigabit Interface Ports 0/0/1 - 0/0/24.

Is that possible? And max. that the user can read the config or not at all if possible.

How can I do this in cli?

thanks and regards
Flo
  • x
  • convention:

All Answers
yoface
yoface Created Jul 12, 2018 08:13:29 Helpful(0) Helpful(0)

Hi Sergio,

Thanks for this advice. I activated now the system-view for level 1 users

Now I want to try testing shutdown an interface with the level 1 user and this command:

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1

But the command is not found. Is there another command to shutdown the interfaces and how can I activate the interfaces after shutdown if I want to?
  • x
  • convention:

StarOfWest
StarOfWest Created Aug 9, 2018 06:11:31 Helpful(1) Helpful(1)

You need to do some extra configuration.
1. Define access to system view.
2. define interfaces for which you allow access.
3. define shutdown interface command, but pay attention whether is l2 or l3 interface.
4. define undo shutdown command, i believe you want level 1 user to activate the interface back

command-privilege level 1 view shell system-view
command-privilege level 1 view system interface GigabitEthernet0/0/1
command-privilege level 1 view system interface GigabitEthernet0/0/2
command-privilege level 1 view system interface GigabitEthernet0/0/3
command-privilege level 1 view gigabitethernet shutdown
command-privilege level 1 view gigabitethernet-l2 shutdown
command-privilege level 1 view gigabitethernet undo shutdown
command-privilege level 1 view gigabitethernet-l2 undo shutdown

Cheers
  • x
  • convention:

“We only get answers to the questions that we ask.” physicist Werner Heisenberg
12
Back to list

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login