user
This command adds a user to the system, sets a password and access level.
The use of a negative form (no) of the command removes a user from the system.
Syntax
user <USER_NAME> password <USER_PASSWD> privilege <PRIORITY>
nouser <USER_NAME>
Parameters
<USER_NAME> – user name, specified as string of [1 .. 255] characters;
<USER_PASSWD> – user password, specified as string of [8 .. 31] characters;
<PRIORITY> – user access level [0..15], where 0 – the lowest level, 15 – the highest access level.
Command mode
CONFIG
Example 1
ma4000#(config) user name password password privilege 15
A user with the test name and password password has been added.
Example 2
ma4000#(config) no user test
A user named test has been removed from the system.
show users config
This command allows to view the list of users and their access rights:
- User name – user name;
- User privilege level – user privelege level.
Syntax
show users config
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# show users config System users ~~~~~~~~~~~~ User name User privilege level -------------------- ---------------------------------------- root 15 admin 15 remote 15 linux 0 test 5 user 8 qwqwe 9 7 system users.
show users who
This command allows to view the list of active users, as well as the host, time and connection protocol:
- User name – user name;
- Logged in at – date and time of connection;
- Host – protocol and IP address from which the connection was performed;
- User privilege level – user privelege level.
Syntax
show users who
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# show users who User sessions ~~~~~~~~~~~~~ SID/PID User name Logged in at Host Priv Timers Login/Priv User permissions --------------- -------------------- ----------------- ----------------------- ---- ----------------- -------------------- eb2cf6a1/8751 admin 16/01/17 16:18:36 SSH 192.168.16.235 no 00:27:59/00:00:00 all 1 user sessions.
privilege
This command defines a set of privileges for a specified level.
The use of a negative form (no) of the command removes privelege from the level.
Syntax
[no] privilege <PRIORITY> <PRIVILEGE>
Parameters
<PRIORITY> – user access level [0..15], where 0 – the lowest level, 15 – the highest access level;
<PRIVELEGE> – a privilege that gives access to a specific command section:
- view-switch – allows to view РР4X switch and slot configuration;
- view-alarm – allows to view active alarms, their configuration and event log;
- view-system – allows to view system settings: logging, user configuration, Tacacs;
- view-general: allows to view basic settings – management, firmware information, status of boards and log message reading;
- view-gpon – allows to view configuration and status of OLT chips, GPON ports, and OLT;
- view-ont – allows to view МАС tables and ONT counters;
- view-ont-profile – allows to view ONT profile configuration;
- view-switch-interfaces – enables Ethernet interface operation monitoring: counters; Ethernet port status, utilization and configuration; МАС table configuration;
- config-switch – enables switch configuration: LACP, QoS, STP;
- config-alarm – enables alarm configuration;
- config-system – enables configuration of system parameters: logging, user configuration, Tacacs;
- config-general – enables configuration of management parameters and operations with software;
- config-gpon – enables configuration of OLT profiles and configuration of OLT chip basic operation parameters;
- config-ont – enables ONT configuration: adding, removing, service activation;
- ont-operation – allows to execute specific ONT management commands: reboot, reconfiguration, firmware update;
- config-ont-profile – enables configuration of ONT profiles;
- config-switch-interfaces – enables Ethernet interface configuration: aggregation, enabling/disabling, VLAN operations.
Command mode
CONFIG
Example 1
ma4000#(config) privilege 14 view-general
View-general privilege has been added for Level 14.
Example 2
ma4000#(config) no privilege 10 view-switch
For Level 10, view-switch privilege is not allowed.
show privileges
The command allows to view the current privilege levels configuration.
Syntax
show privileges
Parameters
The command does not contain parameters
Command mode
ROOT
Example
ma4000# show privileges Privilege levels ~~~~~~~~~~~~~~~~ Level Privileges -------------------- ---------------------------------------- 0 !, exit 1 view-ont 2 ont-operation 3 view-ont, ont-operation 4 view-ont, config-ont, ont-operation 5 view-ont, view-ont-profile, ont-operation 6 view-gpon, view-ont, view-ont-profile, config-gpon, ont-operation, config-ont-profile 7 view-switch, view-gpon, view-ont, view-ont-profile 8 view-switch, view-gpon, view-ont, view-ont-profile, view-switch-interfaces, config-switch, config-switch-interfaces 9 view-switch, view-gpon, view-ont, view-ont-profile, view-switch-interfaces, config-switch, config-gpon, config-ont, ont-operation, config-ont-profile, config-switch-interfaces 10 view-switch, view-alarm, view-system, view-general, view-gpon, view-ont, view-ont-profile, view-switch-interfaces 11 view-switch, view-alarm, view-system, view-general, view-gpon, view-ont, view-ont-profile, view-switch-interfaces, config-alarm, config-system, config-general 12 view-alarm, view-system, view-general, view-gpon, view-ont, view-ont-profile, view-switch-interfaces, config-switch, config-alarm, config-system, config-general, config-switch-interfaces 13 view-gpon, view-ont, view-ont-profile 14 view-general 15 view-switch, view-alarm, view-system, view-general, view-gpon, view-ont, view-ont-profile, view-switch-interfaces, config-switch, config-alarm, config-system, config-general, config-gpon, config-ont, ont-operation, config-ont-profile, config-switch-interfaces