15 lines
248 B
Bash
Executable File
15 lines
248 B
Bash
Executable File
#!/bin/bash
|
|
|
|
USERNAME=admin
|
|
PASSWORD=password
|
|
|
|
HOST=localhost
|
|
PORT=4280
|
|
|
|
RESULT=$(curl --basic -u $USERNAME:$PASSWORD -s --insecure http://$HOST:$PORT/api/Server)
|
|
|
|
if [ "$RESULT" != "" ];
|
|
then
|
|
echo "<<<app-crashplan-server>>>"
|
|
echo "$RESULT"
|
|
fi |