aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/tools/test/bin/onos-ssh
blob: eb6b88e93f347f06035f0296fa14f049c153961d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# -----------------------------------------------------------------------------
# Logs in to the remote ONOS node.
# -----------------------------------------------------------------------------

[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
. $ONOS_ROOT/tools/test/bin/find-node.sh

[ -n "$1" ] && OCI=$(find_node $1) && shift
ssh -Y $ONOS_USER@$OCI "$@"