6 lines
338 B
Bash
Executable File
6 lines
338 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo carpstatus,interface=lagg0 status=\"`ifconfig lagg0 | grep carp | sed -E 's/.*(MASTER|BACKUP).*/\1/'`\"
|
|
echo carpstatus,interface=lagg1 status=\"`ifconfig lagg1 | grep carp | sed -E 's/.*(MASTER|BACKUP).*/\1/'`\"
|
|
echo carpstatus,interface=lagg2 status=\"`ifconfig lagg2 | grep carp | sed -E 's/.*(MASTER|BACKUP).*/\1/'`\"
|