Check Levels
This scenario shows how to configure different user-levels for operational commands.
Lower Command User Level
Description
This example demonstrates how to lower the permissions needed to execute a specific operational command.
Scenario
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user teldat authentication encrypted-password '$6$ajv4rQ1u8ftFFZ3U$L/d/qwJjcVEewrTj2AOJjqPg1TmWH1IGerp3Eco2fJB7fDPBeQiCziFC9vum7AA.vwc4t1wAD28AYoNQ6H2f01' set system login user teldat role monitor
Step 2: Run command show running at DUT0 and check if output contains the following tokens:
Insufficient privilegesShow output
CLI Error: Insufficient privileges
Step 3: Login as admin user on DUT0.
Step 4: Modify the following configuration lines in DUT0 :
set user-level 0 command 'show running'
Step 5: Run command show running at DUT0 and expect this output:
Show output
# Teldat OSDx VM version v4.2.7.0 # Fri 10 Oct 2025 17:37:39 +00:00 # Warning: Configuration has not been saved set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user teldat authentication encrypted-password '$6$ajv4rQ1u8ftFFZ3U$L/d/qwJjcVEewrTj2AOJjqPg1TmWH1IGerp3Eco2fJB7fDPBeQiCziFC9vum7AA.vwc4t1wAD28AYoNQ6H2f01' set system login user teldat role monitor set user-level 0 command 'show running'
Step 6: Login as admin user on DUT0.
Raise Command User Level
Description
This example demonstrates how to raise the permissions needed to execute a specific operational command.
Scenario
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user teldat authentication encrypted-password '$6$b.uRLBHM84AfSkNc$SUtpXN2JAO.v4bei45aRtnr//hPGGxIgAIB6uGpAvLbCKTD97D2/4sRA/vpFu6BLdSQ.zDz50wtY6ZDW8WeSJ0' set system login user teldat role monitor
Step 2: Run command system login show users at DUT0 and expect this output:
Show output
NAME LINE TIME COMMENT teldat ttyS0 2025-10-10 17:37
Step 3: Login as admin user on DUT0.
Step 4: Modify the following configuration lines in DUT0 :
set user-level 15 command 'system login show users'
Step 5: Run command show running at DUT0 and check if output contains the following tokens:
Insufficient privilegesShow output
CLI Error: Insufficient privileges
Step 6: Login as admin user on DUT0.
Customize Multi-option Command
Description
This example demonstrates how to prohibit the use of some options in a specific operational command.
Scenario
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user teldat authentication encrypted-password '$6$HFGgrrltZGki8k0J$U50Krjd02LXRQIVh8GsN.KkA312z7f1tmhYjnZJYFo8MwSUTLUiJmW2OXvd8Lfo.MojBh8Uh/pJGdAsHfJl49/' set system login user teldat role monitor
Step 2: Run command system conntrack show protocol tcp at DUT0 and expect this output:
Show output
conntrack v1.4.7 (conntrack-tools): 0 flow entries have been shown.
Step 3: Login as admin user on DUT0.
Step 4: Modify the following configuration lines in DUT0 :
set user-level 15 command 'system conntrack show protocol <txt>'
Step 5: Run command system conntrack show protocol tcp at DUT0 and check if output contains the following tokens:
Insufficient privilegesShow output
CLI Error: Insufficient privileges
Step 6: Login as admin user on DUT0.
Customize File Pipe Command
Description
This example demonstrates how to lower the permissions needed to execute both the file pipe and the operational command.
Scenario
Step 1: Set the following configuration in DUT0 :
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0' set system login user teldat authentication encrypted-password '$6$kad.yQniMzkzYz/F$DAzBAdlAAuUBLwfByqPraDvV8Pp7vGloR8tJqGtZ4yuHvTHOAh4hqa1eCFrXZOnD/Rx35XQiZPH1dHKdNqyOy/' set system login user teldat role monitor
Step 2: Run command system login show users | file at DUT0 and expect this output:
Show output
Command's output saved under "support/system_login_show_users_2025-10-10-173811" Filesize: 153.000 B
Step 3: Login as admin user on DUT0.
Step 4: Modify the following configuration lines in DUT0 :
set user-level 10 command file
Step 5: Run command system login show users | file at DUT0 and check if output contains the following tokens:
Insufficient privilegesShow output
CLI Error: Insufficient privileges to use 'file' pipe CLI Error: Command error
Step 6: Login as admin user on DUT0.