2342
This commit is contained in:
@@ -126,7 +126,7 @@
|
|||||||
{{ pathprefix }}
|
{{ pathprefix }}
|
||||||
DIGITS="{{ dev2_lldp_digits }}";
|
DIGITS="{{ dev2_lldp_digits }}";
|
||||||
cat /var/run/lldp_server.json 2>/dev/null \
|
cat /var/run/lldp_server.json 2>/dev/null \
|
||||||
| grep "${DIGITS}" -A 10 \
|
| grep "ikeja${DIGITS}" -A 10 \
|
||||||
| grep address \
|
| grep address \
|
||||||
| grep -vE 'subtype|ipv6' \
|
| grep -vE 'subtype|ipv6' \
|
||||||
| awk -F'"' '{ print $4 }' \
|
| awk -F'"' '{ print $4 }' \
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
{{ pathprefix }}
|
{{ pathprefix }}
|
||||||
DIGITS="{{ dev2_lldp_digits }}";
|
DIGITS="{{ dev2_lldp_digits }}";
|
||||||
cat /var/run/lldp_server.json 2>/dev/null \
|
cat /var/run/lldp_server.json 2>/dev/null \
|
||||||
| grep "${DIGITS}" -A 15 \
|
| grep "ikeja${DIGITS}" -A 15 \
|
||||||
| grep 'address_ipv6' \
|
| grep 'address_ipv6' \
|
||||||
| awk -F'"' '{ print $4 }' \
|
| awk -F'"' '{ print $4 }' \
|
||||||
| head -n1
|
| head -n1
|
||||||
|
|||||||
Reference in New Issue
Block a user