Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-10-08 19:03:32 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e331eb4cb48fa4d4c2b85f88ad8691c9b7efb88b
e331eb4c
1 parent
1c292d77
Added onos-watch command.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
tools/test/bin/onos-watch
tools/test/bin/onos-watch
0 → 100755
View file @
e331eb4
#!/bin/bash
#-------------------------------------------------------------------------------
# Monitors selected set of ONOS commands using the system watch command.
#-------------------------------------------------------------------------------
[
! -d
"
$ONOS_ROOT
"
]
&&
echo
"ONOS_ROOT is not defined"
>&2
&&
exit
1
.
$ONOS_ROOT
/tools/build/envDefaults
node
=
${
1
:-
$OCI
}
commands
=
"
${
2
:-
summary
,intents,flows,hosts
}
"
aux
=
/tmp/onos-watch.
$$
trap
"rm -f
$aux
'"
EXIT
echo
"
$commands
"
| tr
','
'\n'
>
$aux
watch
$3
"onos
$node
-b <
$aux
2>/dev/null"
Please
register
or
login
to post a comment