Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Merge requests
!153
Resolve "Incorrect command guide"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Incorrect command guide"
59-incorrect-command-guide
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
David José Araújo Ferreira
requested to merge
59-incorrect-command-guide
into
develop
1 year ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Closes
#59 (closed)
0
0
Merge request reports
Compare
develop
version 1
a1898ad7
1 year ago
develop (base)
and
latest version
latest version
c76915be
2 commits,
1 year ago
version 1
a1898ad7
1 commit,
1 year ago
1 file
+
10
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
hackfest/containerlab/commands.txt
+
10
−
8
Options
@@ -60,22 +60,24 @@ docker exec -it clab-tfs-scenario-client2 bash
$ sudo bash -c "$(curl -sL https://get-gnmic.kmrd.dev)"
## gNMI Capabilities request
$ gnmic -a clab-
srlinux
-srl1 -u admin -p NokiaSrl1! --skip-verify capabilities
$ gnmic -a clab-
tfs-scenario
-srl1 -u admin -p NokiaSrl1! --skip-verify capabilities
## gNMI Get request
$ gnmic -a clab-srlinux-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /system/name/host-name
$ gnmic -a clab-srlinux-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /interface[name=mgmt0]
$ gnmic -a clab-tfs-scenario-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /system/config/hostname
$ gnmic -a clab-tfs-scenario-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /interfaces/interface[name=mgmt0]
## gNMI Set request
$ gnmic -a clab-
srlinux
-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf set --update-path /system/
name
/host
-
name --update-value s
l
r11
$ gnmic -a clab-
tfs-scenario
-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf set --update-path /system/
config
/hostname --update-value sr
l
11
(we check the changed value)
$ gnmic -a clab-
srlinux
-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /system/
name
/host
-
name
(we check the changed value)
$ gnmic -a clab-
tfs-scenario
-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf get --path /system/
config
/hostname
## Subscribe request
$ gnmic -a clab-srlinux-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf subscribe --path /interface[name=mgmt0]/statistics
$ gnmic -a clab-tfs-scenario-srl1 -u admin -p NokiaSrl1! --skip-verify -e json_ietf subscribe --path /interfaces/interface[name=mgmt0]/state/
(In another terminal, you can generate traffic)
$ssh admin@clab-
srlinux
-srl1
$ssh admin@clab-
tfs-scenario
-srl1
Loading