Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 46

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 45
# source env vars
if [[ -x varDefs.sh ]] ; then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
#Temporarily allow host to get all packets from the VM (allowing NFS traffic)
iptables -I RH-Firewall-1-INPUT -s $SAT_IP -j ACCEPT
#Create the VM
virt-install -n $SAT_NAME -r 8192 --vcpus=4 --cpuset=auto --os-type=linux --os-variant=rhel5.4
--accelerate -w bridge:cloud0 --vnc -l nfs:${MGMT2_IP}:/root/distro --disk
path=/dev/MgmtServicesVG/SatVMvol,bus=virtio -x "ks=nfs:$
{MGMT2_IP}:/root/distro/resources/sat.ks.cfg ip=$SAT_IP gateway=$OA_IP netmask=$MASK"
--noautoconsole --wait=-1
#Restart iptables
service iptables restart
6. wipeRHNReg.py – remove the RHN registration for the specified system. Because the
system is reinstalled and registered to satellite, the RHN registration is not required.
#!/usr/bin/python
"""
remove the registration of the system passed as the only parameter
"""
import xmlrpclib
import sys
SATELLITE_URL = "https://rhn.redhat.com/rpc/api"
SATELLITE_LOGIN = "<UserName>"
SATELLITE_PASSWORD = "<Password>"
def main():
if len(sys.argv) < 2:
print "Usage: ",sys.argv[0],"systemName"
sys.exit(-2);
# retrieve the passed parameter
deleteName = sys.argv[1]
#open connection and log in
www.redhat.com 46
Vista de pagina 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 198 199

Comentarios a estos manuales

Sin comentarios