<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://tsm.agostonpeter.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://tsm.agostonpeter.com/feed.php">
        <title>TSM turkáló - shell:oravm</title>
        <description></description>
        <link>https://tsm.agostonpeter.com/</link>
        <image rdf:resource="https://tsm.agostonpeter.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-24T00:58:30+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_cpu_pin_map&amp;rev=1620374685&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vlan_interface&amp;rev=1580811452&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vms&amp;rev=1588001304&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_functions&amp;rev=1630934379&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vm_disks&amp;rev=1600857629&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vms&amp;rev=1601040929&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_map_phys_disks&amp;rev=1593702397&amp;do=diff"/>
                <rdf:li rdf:resource="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_rename_phys_disk&amp;rev=1594733600&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://tsm.agostonpeter.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>TSM turkáló</title>
        <link>https://tsm.agostonpeter.com/</link>
        <url>https://tsm.agostonpeter.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_cpu_pin_map&amp;rev=1620374685&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-05-07T08:04:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Oracle VM CPU pin map</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_cpu_pin_map&amp;rev=1620374685&amp;do=diff</link>
        <description>Oracle VM CPU pin map


#!/bin/bash
#####################################################
# OVM CPU PIN MAP v1.6
# Keszitette: Agoston Peter
#####################################################
CPU_SUM_WARN=5
CPU_SUM_CRIT=10
OVM_ADMIN_PASSWD=PAssword123
OVMC=&quot;/opt/ovm_utils/ovm_vmcontrol&quot;
OVS_SSH_KEY=&quot;/root/.ssh/id_ecdsa_ovs&quot;
SSHC=&quot;ssh -n -p 10000 admin@localhost&quot;
WORKDIR=$(dirname $(readlink -f $0))
FULL_BACKUP_FILE=&quot;${WORKDIR}/all_cpu_pins.bkp.last&quot;
LOGFILE=&quot;${WORKDIR}/ovm_cpu_pin_map.log&quot;
if…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vlan_interface&amp;rev=1580811452&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-02-04T10:17:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Tömeges VLAN interfész generáló szkript</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vlan_interface&amp;rev=1580811452&amp;do=diff</link>
        <description>Tömeges VLAN interfész generáló szkript


#!/bin/bash
#A konfig fajl strukturaja:
#OVS    Szulo_interface VLAN_ID IP_cim  Netmask

LOGFILE=&quot;ovm_create_vlan_interfaces.log&quot;

. ovm_functions.sh
kulcs_ellenorzes

[[ -e $1 ]] || { echo &quot;Add meg a konfig fajlt parameterkent.&quot;; exit 1; }
while read LINE; do
        OVS_NAME=$(echo $LINE | cut -d&#039; &#039; -f 1)
        IFACE_NAME=$(echo $LINE | cut -d&#039; &#039; -f 2)
        VLAN=$(echo $LINE | cut -d&#039; &#039; -f 3)
        IPADDR=$(echo $LINE | cut -d&#039; &#039; -f 4)
        N…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vms&amp;rev=1588001304&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-04-27T15:28:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Tömeges VM létrehozó szkript</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_create_vms&amp;rev=1588001304&amp;do=diff</link>
        <description>Tömeges VM létrehozó szkript

Minta konfig fájl:
#OVS_NAME       REPO_NAME               POOL_NAME       VM_NAME         MEMORY_GB       VCPU_COUNT      BOOT_DISK_GB    CD_NAME         NETWORK_NAME

#!/bin/bash
. ovm_functions.sh
kulcs_ellenorzes

[[ -e $1 ]] || { echo &quot;Add meg a konfig fajlt parameterkent.&quot;; exit 1; }
        while read LINE; do
        OVS_NAME=$(echo $LINE | cut -d&#039; &#039; -f 1)
        REPO_NAME=$(echo $LINE | cut -d&#039; &#039; -f 2)
        POOL_NAME=$(echo $LINE | cut -d&#039; &#039; -f 3)
     …</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_functions&amp;rev=1630934379&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-09-06T13:19:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ovm_functions.sh szkript</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_functions&amp;rev=1630934379&amp;do=diff</link>
        <description>ovm_functions.sh szkript


red=$&#039;\e[1;31m&#039;
grn=$&#039;\e[1;32m&#039;
yel=$&#039;\e[1;33m&#039;
blu=$&#039;\e[1;34m&#039;
mag=$&#039;\e[1;35m&#039;
cyn=$&#039;\e[1;36m&#039;
whi=$&#039;\e[1;37m&#039;
inv=$&#039;\e[7;37m&#039;
gry=$&#039;\e[1;90m&#039;
end=$&#039;\e[0m&#039;

function ovm_cli() {
        OVMCLI=&quot;ssh -n -o ServerAliveInterval=40 admin@localhost -p 10000&quot;
        $OVMCLI $@
}

function kulcs_ellenorzes() {
if [[ $(ssh -o StrictHostKeyChecking=no -o BatchMode=yes -o ConnectTimeout=5 admin@localhost -p 10000 list manager |grep -c Success) -eq 0 ]]; then
        echo &quot;Nincs…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vm_disks&amp;rev=1600857629&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-23T10:40:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>VM-ek diszkjeinek listázása</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vm_disks&amp;rev=1600857629&amp;do=diff</link>
        <description>VM-ek diszkjeinek listázása


#!/bin/bash
. ovm_functions.sh
kulcs_ellenorzes

printf $yel
echo &quot;VM&quot; &quot;Disk_name&quot; &quot;Repository/WWN&quot; &quot;Disk_Size&quot; &quot;Virt/Phys&quot;| awk &#039;{printf &quot;%-40s %-30s %-40s %10s %3s\n&quot;,$1,$2,$3,$4,$5}&#039;
printf $end
ovm_cli &quot;list vmdiskMapping&quot; | egrep -v &#039;(EMPTY_CDROM)&#039; | grep -v &#039;^$&#039; | grep &#039;)&#039; | while read SOR; do
        ID=$(echo $SOR | grep -oP &quot;(?&lt;=id:)[^ ]+(?= )&quot;)
        DISK_ID=$(echo $SOR | grep -oP &quot;(?&lt;=\()[^ ]+(?=\))&quot;)
        VM=$(ovm_cli &quot;show vmdiskMapping id=$ID&quot; | g…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vms&amp;rev=1601040929&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-09-25T13:35:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>VM-ek listázása</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_list_vms&amp;rev=1601040929&amp;do=diff</link>
        <description>VM-ek listázása


#!/bin/bash
. ovm_functions.sh
kulcs_ellenorzes
OUT_FILE=ovm_list_vm_phys_disks.lst
TMP_FILE=${0}.tmp

echo &#039;NAME;OS;IP;VCPU;MEMORY;DISK_SIZE_SUM;NETWORKS&#039;
for VM_ID in $(ovm_exec &quot;list vm&quot; &quot;id&quot;); do
    ovm_cli &quot;show vm id=$VM_ID&quot; 2&gt;&amp;1 &gt; ${TMP_FILE}
    NAME=$(cat ${TMP_FILE} | awk -F&#039;=&#039; &#039;/Name/{print $2}&#039;)
    MEMORY=$(cat ${TMP_FILE} | grep -v Max | awk -F&#039;=&#039; &#039;/Memory/{print $2}&#039;)
    VCPU=$(cat ${TMP_FILE} | grep -v Max | awk -F&#039;=&#039; &#039;/Processors/{print $2}&#039;)
    OS=$(cat ${T…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_map_phys_disks&amp;rev=1593702397&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-07-02T15:06:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Fizikai diszkek tömeges mappelése VM(ek)hez</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_map_phys_disks&amp;rev=1593702397&amp;do=diff</link>
        <description>Fizikai diszkek tömeges mappelése VM(ek)hez

Input fájl szintaxis:
#VM_NÉV   DISZK_NÉV

#!/bin/bash
. ovm_functions.sh
kulcs_ellenorzes

trap ctrl_c INT

function ctrl_c() {
        echo -e $end
        exit
}

[[ -e $1 ]] || { echo &quot;Add meg a konfig fajlt parameterkent.&quot;; exit 1; }
while read LINE; do
    VDISK_NAME=$(echo $LINE | cut -d&#039; &#039; -f 1)
    VM_NAMES=$(echo $LINE | cut -d&#039; &#039; -f 2 | sed &#039;s/,/ /g&#039;)
    echo &quot;$(env printf &#039;\u250F&#039;) A(z) ${yel}$VDISK_NAME${end} hozzarendelese a...&quot;
    for…</description>
    </item>
    <item rdf:about="https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_rename_phys_disk&amp;rev=1594733600&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-07-14T13:33:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Fizikai diszkeket átnevező szkript</title>
        <link>https://tsm.agostonpeter.com/doku.php?id=shell:oravm:ovm_rename_phys_disk&amp;rev=1594733600&amp;do=diff</link>
        <description>Fizikai diszkeket átnevező szkript


#!/bin/bash
## bemeneti fajl szintaxis:
# DISK_UUID  DISK_NAME  SHAREABLE
# 6005076802820058A000000000000000        diszk_név  No [host1,host2,host3 - opcionális]
. ovm_functions.sh
kulcs_ellenorzes
TMP_FILE=/tmp/ovm_rename_phys_disks.tmp
LOGFILE=&quot;ovm_rename_phys_disks.log&quot;


&gt;$TMP_FILE
[[ -e $1 ]] || { echo &quot;Add meg a konfig fajlt parameterkent.&quot;; exit 1; }
ovm_cli &quot;list PhysicalDisk&quot; | awk -F&#039; &#039; &#039;/:/{print $2}&#039; | sed &#039;s/id://&#039; | while read SOR; do
#ovm_cli …</description>
    </item>
</rdf:RDF>
