parent
9370e974fc
commit
7f76c9585b
@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in new issue