
indx=1
tname=`printf "rhev-nfs-client-%02d" ${indx}`
while [[ `echo ${nfsClients} | grep ${tname}` ]]
do
indx=`expr $indx + 1`
tname=`printf "rhev-nfs-client-%02d" ${indx}`
done
else
# No existing hosts
tname="rhev-nfs-client-01"
fi
echo ${tname}
d) listRegSystems_infra.py – list system registered to the RHN Satellite system
#!/usr/bin/python
"""
This script lists all registered systems.
The org is determined by the login global variable below.
"""
import xmlrpclib
import sys
SATELLITE_URL = "http://sat-vm.cloud.lab.eng.bos.redhat.com/rpc/api"
INFRA_LOGIN = "infra"
INFRA_PASSWD = "24^gold"
#open channel
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
#log into infrastructure org
key = client.auth.login(INFRA_LOGIN, INFRA_PASSWD)
aSYS = client.system.listSystems(key)
for iSYS in aSYS:
print iSYS['name']
#log out from infrastructure channel
client.auth.logout(key)
2. The install script instRHEVH.sh installs and prepares a system for use as a RHEV
host. It requires a single passed parameter, the server blade profile name assigned in
the HP Virtual Connect interface, and:
• retrieves all identity information and creates the cobbler system entry
• presents storage to the host
115 www.redhat.com
Commentaires sur ces manuels