source: trunk/athena/etc/athinfod/debian/athinfo.defs @ 25693

Revision 25693, 1.3 KB checked in by jdreed, 12 years ago (diff)
In athinfod: * Update 'queries' query to return new queries
RevLine 
[22699]1# This file defines the queries understood by the athinfo daemon.
2# Blank lines and lines beginning with a '#' are ignored.  Each line
3# consists of a query name and a shell command to answer the query.
4# The shell command will not receive input and, for security reasons,
5# should not depend on a network filesystem.
6
7# Query         Command
8
[25693]9queries         cat /etc/athena/athinfo.defs /etc/athena/athinfo.defs.d/*.defs 2>/dev/null
[22699]10uname           uname -a
11machtype        /bin/machtype
12sysname         /bin/machtype -S
13cputype         /bin/machtype -v -c
14display         /bin/machtype -v -d
15disks           /bin/machtype -v -r
16memory          /bin/machtype -v -M
17swap            swapon -s
[23495]18version         echo `machtype -L` on `machtype -E`
[23521]19clusterinfo     test -r /var/run/athena-clusterinfo.csh && cat /var/run/athena-clusterinfo.csh
20clusterinfo.bsh test -r /var/run/athena-clusterinfo.sh && cat /var/run/athena-clusterinfo.sh
[22699]21date            date
22uptime          uptime
[23522]23partitions      cat /proc/partitions
[24653]24df              df -k -t ext2 -t ext3 -t ext4
[22699]25interfaces      netstat -in
26routes          netstat -rn
27listeners       netstat -lnt
28login           test -f /etc/nologin; echo $?
29cpuspeed        grep MHz /proc/cpuinfo
[23529]30packages        dpkg-query -W -f '${Package}\t${Version}\t${Status}\n' | sed -n 's/\tinstall ok installed$//p'
[22699]31modules         lsmod
[23949]32policy          apt-cache policy
[23987]33hardware        cat /sys/class/dmi/id/product_name /sys/class/dmi/id/product_version
Note: See TracBrowser for help on using the repository browser.