You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
364 B
23 lines
364 B
4 years ago
|
#!/bin/bash
|
||
|
# eqx-get-deviceid
|
||
|
#
|
||
|
# Give a device ID, get json
|
||
|
|
||
|
EQXDEVICEID="$1"
|
||
|
|
||
|
if [[ $1 == "" ]]
|
||
|
then \
|
||
|
echo -e "Need device ID"
|
||
|
echo -e "To get device IDs in a project, run:"
|
||
|
echo -e "eqx-get-project-devices [project name]"
|
||
|
echo
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
packet \
|
||
|
device get \
|
||
|
--json \
|
||
|
--id $EQXDEVICEID \
|
||
|
2>/dev/null
|
||
|
|