Can OMAPI be used for monitoring current pool capacity?

Glenn Satchell Glenn.Satchell at uniq.com.au
Thu Nov 20 12:54:09 UTC 2008


>Date: Wed, 19 Nov 2008 15:04:03 +0000
>From: Mikolaj Kucharski <mikolaj at kucharski.name>
>To: dhcp-users at lists.isc.org
>Subject: Re: Can OMAPI be used for monitoring current pool capacity?
>Content-Disposition: inline
>X-BeenThere: dhcp-users at lists.isc.org
>
>
>I would also like to ask, how to check with omshell(1) status of
>fail-over setup?
>
>-- 
>best regards
>q#
>_______________________________________________

I use this script to determine partner state using omshell, pass in the
name of the server to query as a parameter.

#! /bin/sh

server=${1:-localhost}

omshell << EOF
server $server
port 7911
key OMAPI omapi-key-without-quotes
connect
new failover-state
set name = "name-from-failover-peer-line"
open
EOF


regards,
-glenn




More information about the dhcp-users mailing list