#xPc @ s d d k l Z d d k l Z d d k l Z d d k l Z l Z d d k l Z l Z e d Z d e f d YZ
e i e
d S(
i( t api( t Command( t output( t _t ngettext( t VERSIONt API_VERSIONs
Ping the remote IPA server to ensure it is running.
The ping command sends an echo request to an IPA server. The server
returns its version information. This is used by an IPA client
to confirm that the server is available and accepting requests.
The server from xmlrpc_uri in /etc/ipa/default.conf is contacted first.
If it does not respond then the client will contact any servers defined
by ldap SRV records in DNS.
EXAMPLES:
Ping an IPA server:
ipa ping
------------------------------------------
IPA server version 2.1.9. API version 2.20
------------------------------------------
Ping an IPA server verbosely:
ipa -v ping
ipa: INFO: trying https://ipa.example.com/ipa/xml
ipa: INFO: Forwarding 'ping' to server u'https://ipa.example.com/ipa/xml'
-----------------------------------------------------
IPA server version 2.1.9. API version 2.20
-----------------------------------------------------
t pingc B s) e Z e d Z e i f Z d Z RS( s Ping a remote server.c C s t d d t t f S( s
A possible enhancement would be to take an argument and echo it
back but a fixed value works for now.
t summaryu% IPA server version %s. API version %s( t dictR R ( t self( ( s7 /usr/lib/python2.6/site-packages/ipalib/plugins/ping.pyt execute= s ( t __name__t
__module__R t __doc__R R t
has_outputR ( ( ( s7 /usr/lib/python2.6/site-packages/ipalib/plugins/ping.pyR 6 s N( t ipalibR R R R R t ipapython.versionR R R R t register( ( ( s7 /usr/lib/python2.6/site-packages/ipalib/plugins/ping.pyt