Notifications

26 views

Description

Linux - Azure probe wrongly checks the is_virtual flag on physical Linux machines

Steps to Reproduce

Run Discovery against a physical machine that runs a Linux operating system

Workaround

In the is_azure.sh probe parameter script (https://<instance-name>.service-now.com/discovery_probe_parameter.do?sys_id=076d49cbdbed76003398f1351d961968), change the else statement starting from line 9 as shown:

Before:

else
curl –connect-timeout 1 `grep FullConfig /var/lib/waagent/GoalState.1.xml >/dev/null 2>&1 | perl -pe 's/<.?FullConfig>//g; s/\s//g'` >/dev/null 2>&1 && echo "true" || echo "false"
fi

After:

else
if `grep FullConfig /var/lib/waagent/GoalState.1.xml`; then
curl –connect-timeout 1 `grep FullConfig /var/lib/waagent/GoalState.1.xml >/dev/null 2>&1 | perl -pe 's/<.?FullConfig>//g; s/\s//g'` >/dev/null 2>&1 && echo "true" || echo "false"
else
echo "false"
fi


Related Problem: PRB1246829

Seen In

There is no data to report.

Fixed In

London

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-11-14 04:44:45
Published:2018-11-14