This file is indexed.

/usr/lib/xcp/lib/interface-visualise is in xcp-xapi 1.3.2-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
#
# Copyright (c) Citrix Systems 2008. All rights reserved.
#

# Usage: ssh root@<host> /usr/lib/xcp/lib/interface-visualise > <host>-network.dot
#        dotty <host>-network.dot

echo "digraph G {"
for i in ${1:-/etc/sysconfig/network-scripts}/ifcfg-* ; do
    case $i in
	*.xapi-new) continue ;;
	*.xapi-old) continue ;;
	*) ;;
    esac

    echo "$i" 1>&2
    (
	source "$i"
	if [ X"${XEMANAGED}" = "Xyes" ] ; then
	    XEMANAGED="\nXE"
	fi
	if [ -n "${BOOTPROTO}" ] ; then
	    echo "\"${DEVICE}\" [label=\"\N\n(${BOOTPROTO})${XEMANAGED}\"]"
	else
	    echo "\"${DEVICE}\" [label=\"\N${XEMANAGED}\"]"
	fi
	if [ -n "${BRIDGE}" ] ; then
	    echo "\"${BRIDGE}\" -> \"${DEVICE}\""
	fi
	if [ -n "${MASTER}" ] ; then
	    echo "\"${MASTER}\" -> \"${DEVICE}\""
	fi
	if [ "${VLAN}"X = "yesX" ] && [ -z "${PHYSDEV}" ] ; then
	    PHYSDEV=${DEVICE%.*}
	    #PHYSDEV=$(echo ${DEVICE} | LC_ALL=C sed 's/^[a-z0-9]*\.0*//')
	fi
	if [ -n "${PHYSDEV}" ] ; then
	    echo "\"${DEVICE}\" -> \"${PHYSDEV}\""	    
	fi
    )
done
echo "}"