This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import smtplib | |
import sys | |
from datetime import datetime | |
def noticeEMail(starttime, usr, psw, fromaddr, toaddr): | |
server=smtplib.SMTP('smtp.gmail.com:587') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@rhevm30 ~]# cd /var/lib/iscsi | |
[root@rhevm30 iscsi]# iscsiadm -m iface -I eth1 --op=new | |
New interface eth1 added | |
[root@rhevm30 iscsi]# iscsiadm -m iface -I eth2 --op=new | |
New interface eth2 added | |
[root@rhevm30 iscsi]# tree | |
. | |
`-- ifaces | |
|-- eth1 <--------------- Local interfaces to provide multipath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread-17::DEBUG::2013-11-11 08:35:53,237::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iqn.2012-07.com.lenovoemc:storage.ix2-73.rhev30 -I default -p 192.168.25.118:3260 --op=new' (cwd None) | |
Iface default only ^^^ | |
[root@rhevm30 iscsi]# multipath -ll | |
35005907f318ca6ca dm-3 LENOVO,LIFELINE-DISK <----- Only one path | |
size=50G features='0' hwhandler='0' wp=rw | |
`-+- policy='round-robin 0' prio=1 status=active | |
`- 4:0:0:0 sdb 8:16 active ready running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/vdsm/vdsm.conf | |
# Auto-generated by vds_bootstrap at:2013-11-06 16:56:49.310410 | |
[vars] | |
trust_store_path = /etc/pki/vdsm | |
ssl=true | |
[irs] | |
iscsi_default_ifaces = eth1,eth2 <----- Interfaces to be used for multipath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@x220 ovirt-stuff]# ls /var/iso/ | |
ovirt-node-iso-3.0.1-1.0.2.el6.iso rhevh-6.3-20120710.0.iso rhev-hypervisor6-6.4-20130221.0.iso | |
ovirt-node-iso-3.0.1-1.0.2.fc19.iso rhevh-6.5-20140112.0.el6ev.iso | |
rhevh-6.2-20111117.0.iso rhevh-6.5-20140121.0.el6ev.iso | |
[root@x220 ovirt-stuff]# python match_engine_vdsm_releasever.py /var/iso/ovirt-node-iso-3.0.1-1.0.2.el6.iso | |
mount: /dev/loop0 is write-protected, mounting read-only | |
SUCCESS! | |
FILENAME(engine probe) - version: 3.0.1, release: 1.0.2.el6 | |
FYLESYSTEM(vdsm probe) - version: 3.0.1, release: 1.0.2.el6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from ovirtsdk.xml import params | |
from ovirtsdk.api import API | |
import sys | |
ENGINE_SERVER = "https://t420s.pahim.org" | |
ENGINE_USER = "admin@internal" | |
ENGINE_PASS = "admin" | |
ENGINE_CERT = "/etc/pki/ovirt-engine/ca.pem" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> for stat in api.hosts.get(name="rhevh").statistics.list(): | |
... print stat.name, stat.values.value[0].datum | |
... | |
memory.total 1949302784.0 | |
memory.used 0.0 | |
memory.free 1949302784.0 | |
memory.shared 0.0 | |
memory.buffers 0.0 | |
memory.cached 0.0 | |
swap.total 3123707904.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ovirtsdk.xml import params | |
from ovirtsdk.api import API | |
ENGINE_SERVER = "https://rhevm34.pahim.org" | |
ENGINE_USER = "admin@internal" | |
ENGINE_PASS = "admin" | |
ENGINE_CERT = "/etc/pki/ovirt-engine/ca.pem" | |
def Connect(url,username,password,ca_file): | |
global api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for IP in 192.168.25.{1..255} | |
do | |
retorno=$(arping -I enp0s25 -c 1 $IP) | |
if echo $retorno | grep -e "Received 0 response" -e "Received 1 response" > /dev/null 2>&1 | |
then | |
continue | |
else | |
echo "IP $IP Duplicado" | |
fi | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff | |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c | |
index e142f75..d1a1ace 100644 | |
--- a/hw/i386/pc_piix.c | |
+++ b/hw/i386/pc_piix.c | |
@@ -173,7 +173,7 @@ static void pc_init1(MachineState *machine) | |
if (smbios_defaults) { | |
MachineClass *mc = MACHINE_GET_CLASS(machine); | |
/* These values are guest ABI, do not change */ | |
- smbios_set_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)", |
OlderNewer