Beginning XE in official of virtual machine

I need an installation Oracle XE for the sole purpose of developing PHP applications. I use windows stand-alone installations, but they are rather resource intensive and slow to start/stop, when I learned that Oracle provides VirtualBox virtual machines already provisioned I decided to give it a try. I jumped 'Enterprise PHP development VM' download because the link seems to point to a quite different solution and opted for 'Service Delivery Platform VM' since it seems that the simpler beam which includes XE.

To my surprise, the virtual machine is far from ready for use. The document of "download and installation Instructions for SDP - VM" bound (SDP_VM_Instructions.pdf) only covers internal parts of VirtualBox. I found another document in Google ("Practical preparations" aka OCSG_Prep_Guide.pdf) which describes some tedious parameters on the underlying operating system (a customized version of RHEL/6.7) which I have already completed.

As a first step, I still don't know if Oracle is actually being run. There is no web server listening to http://localhost:8008/apex/f? p = 4950 and all my attempts to connect with sqlplus lead to "ORA-12154: TNS: could not resolve the connect identifier specified" or "ORA-12514: TNS:listener does not currently of service required in the connection descriptor. Here is the result of sudo service oracle-xe condition:

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 11-NOV-2015 13:47:58

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                11-NOV-2015 13:10:14
Uptime                    0 days 0 hr. 37 min. 43 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/oel64/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

I would appreciate any clue to determine if the database server is running and how to connect to it.

The database, do not put its something possible glitched in the creation of the instance and the service started.

A suggestion, try to set a password for the user oracle, switchuser and sqlplus connection sysdba and try starting. Will also need some variable parameters of environment for this to work:

sudo passwd oracle

... new password:...

Su - oracle

Export ORACLE_HOME =

export PATH = $ORACLE_HOME/bin: $PATH

export ORACLE_SID = XE

sqlplus/nolog

Conn virtue sysdba

... connected to the inactive instance... #? no doubt

start-up;

leave parameters # database open... memory...?

The value of is the path where the oracle binaries are installed, can't remember the exact but value if the listener is running is easy to find on the command line:

ps - ef | egrep LIST

... 1 oracle... /u01/app/oracle/.../bin/tnslsnr EARPHONE...

All about ORACLE_HOME value tnslsnr is upward through, not including/bin /, no slash end. The parameters "export...". "can be tricky, spaces will switch to the top of most of the people. Startup may fail if the configuration of the installation completes successfully

Tags: Database

Similar Questions

  • What HA refusing to try to start a virtual machine?

    I'm trying just to clear on how this process works. If HA is enabled, there is a failure of the host, and he's trying to restart the virtual machines on one or several other hosts, when the host will refuse to restart (failover) a virtual machine? Assume that there is no reservation other than the default 37 MHz CPU and some booking fees calculated generals for RAM (these are the default values, right?). A host would continue to attempt to restart the virtual machines as long as there are at least 37 Mhz and a few hundred MB of RAM available for the moment he is trying to restart? And if so, there are algorithms maintains the host master to decide where to start these VMs? I just think that she should try to startups VM alternately between the available hosts and wait a little bit to make sure that there are still some available resources before you start the following, or something like that.

    Also, if there is fragmentation of resources (for example, 8% of availability on each of the 15 hosts), but HA needs to start a virtual machine that requires 15% of host resources (I realize that there is a reserve in order to decide this question of the requirement, even), would automatically make migration of VMS to other hosts (if the DRS is also enabled) or he'd just sorry cannot start this virtual machine, even if the group as a whole has space for him.  [in this case, must not make large reserves because without a reservation, the virtual machine would start upward and like CPU or memory has increased its use would cause some DRS force other virtual machines out of the host, and perhaps that would work.]

    vSphere 5.1 (vCenter and ESXi)

    The master knows where virtual machines are running and try to balance where virtual machines are started. Reservations and overhead costs are the only things taken into account from a point of view of its use (not the actual resources consumed on a host) because HA does what VMs restarted (and if they have reserves prompting these resources, they need to have to start).

    If the DRS is turned on and available, HA will work with DRS to move workloads so that the largest VMs can begin. If you have virtual machines more the thing to think about is what admission control policy you use. It may be wise to use the location function if all your virtual machines are large and close to the same size, or dedicated host of failover so you won't have to deal with shuffling DRS of workloads. Everything depends on your environment and your needs.

    Does that answer your questions?

  • Blocking task - add a virtual machine to VAPP

    Which block task will begin when I add a virtual machine to a Palsy of a catlog. The "add, move or delete virtual machines of VAPP" seems to send a job blocking, but the xml of the blocking task does not include the vcloud:vm, only the vcloud:vapp

    I want to send a notification when the new VM is complete provisioning and include details on the new virtual machine.

    If you duplicated one of the workflow approval of all notifications, try to paste the following in the Get scaffolding Scriptable this workflow task... He will certainly need a cleaning according to your needs. It is a part of my test code for extraction of information of this type of operation...

    var vcdHost = vApp.getHost();
    
    //User info
    var username = user.name;
    var userDescription = user.description;
    var userFullName = user.fullName;
    var userEmailAddress = user.emailAddress;
    var userTelephone = user.telephone;
    var userIm = user.im;
    
    var userDeployedVmQuota = user.deployedVmQuota;
    if (userDeployedVmQuota == 0) userDeployedVmQuota = "Unlimited";
    var userStoredVmQuota = user.storedVmQuota;
    if (userStoredVmQuota == 0) userStoredVmQuota = "Unlimited";
    var userRole = vcdHost.getEntityByReference(VclEntityType.ROLE, user.role).name;
    
    System.sleep(5000);
    
    if (blockingTask != null) {
        var task = vcdHost.getEntityByReference(VclEntityType.TASK, blockingTask.getTask());
        task.updateInternalState();
        var XMLstring = task.toXml();
        System.log("Task XML: \n"+XMLstring);
    
        // Now begin typical XML Processing for this set of action types:
        // These come from the "Add, Move or Delete Virtual Machines from vApp" blocking task being enabled
        // This workflow requires a single input - a string containing the XML to be processed.
        // It generates the following outputs:
        // operationType - this is a string that is either "create" "delete" or "move"
        // the other output is a Array/Properties object with the following possible properties:
        // vmName - string
        // hostName - string
        // osName - string
        // hwVersion - string
        // cpuCount - string
        // memoryMB - string
        var doc = new XML(XMLstring);
        default xml namespace = doc.namespace();
        // initialize the outputs:
        var operationType = null;
        var vmPropsArray = new Array();
    
        // Determine action type from XML:
        if (doc.Params.DeleteItem != null && doc.Params.DeleteItem.length() > 0){
            System.log("This is a Delete operation");
            operationType = "delete";
            //    DELETE ITEM Processing
            System.log("DeleteItem Count: "+doc.Params.DeleteItem.length());
            for each (c in doc.Params.DeleteItem){
                var vmProps = new Properties();
                System.log("VM to Delete: "[email protected]());
                vmProps.put("vmName",[email protected]());
                vmPropsArray.push(vmProps);
            }
        }
        if(doc.Params.CreateItem != null && doc.Params.CreateItem.length() > 0){
            System.log("A blank VM is being added to the vApp");
            operationType = "create";
            System.log("CreateItem Count: "+doc.Params.CreateItem.length());
            for each (c in doc.Params.CreateItem){
                var vmProps = new Properties();
                System.log("VM to Add: "[email protected]());
                System.log("Description: "+c.Description.toString());
                vmProps.put("vmName",[email protected]());
                vmProps.put("description",c.Description.toString());
                vmProps.put("hostName","n/a");
                vmProps.put("osName","n/a");
                vmProps.put("cpuCount","n/a");
                vmProps.put("memoryMB","n/a");
                vmPropsArray.push(vmProps);
            }
        }
        // ADD/MOVE Testing:
        if(doc.Params.SourcedItem != null){
            System.log("SourcedItem Count: "+doc.Params.SourcedItem.length());
            for each (c in doc.Params.SourcedItem){
                var vmProps = new Properties();
                System.log("=============================");
                if(c.@sourceDelete == "true"){
                    operationType = "move";
                }else{
                    operationType = "create";
                }
                System.log("This is an "+operationType+" operation");
                //System.log("sourceDelete: "+c.@sourceDelete);
                var instantiationParams = c.InstantiationParams;
                vmProps.put("vmName",instantiationParams.GuestCustomizationSection.ComputerName.toString());
                System.log("VM Name: "+instantiationParams.GuestCustomizationSection.ComputerName.toString());
    
                vmProps.put("hostName",instantiationParams.*::VirtualHardwareSection.*::System.*::VirtualSystemIdentifier.toString());
                System.log("Host Name: "+instantiationParams.*::VirtualHardwareSection.*::System.*::VirtualSystemIdentifier.toString());
    
                vmProps.put("osName", instantiationParams.*::OperatingSystemSection.*::Description.toString());
                System.log("Operating System: "+instantiationParams.*::OperatingSystemSection.*::Description.toString());
    
                vmProps.put("hwVersion",instantiationParams.*::VirtualHardwareSection.*::System.*::VirtualSystemType.toString());
                System.log("Hardware Version: "+instantiationParams.*::VirtualHardwareSection.*::System.*::VirtualSystemType.toString());
    
                var n2 = new Namespace("http://schemas.dmtf.org/ovf/envelope/1");
                var n3 = new Namespace("http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData");
                var items = instantiationParams.*::VirtualHardwareSection.n2::Item;
                for each (i in items){
                    if(i.n3::Description.toString() == "Number of Virtual CPUs"){
                        vmProps.put("cpuCount",i.n3::VirtualQuantity.toString());
                        System.log("CPU Count: "+i.n3::VirtualQuantity.toString());
                    }
                    if(i.n3::Description.toString() == "Memory Size"){
                        vmProps.put("memoryMB",i.n3::VirtualQuantity.toString());
                        System.log("Memory (MB): "+i.n3::VirtualQuantity.toString());
                    }
                }
                vmProps.put("description","n/a");
                vmPropsArray.push(vmProps);
            }
        }
    }
    
    //vApp Info
    var vAppName = vApp.name;
    var vAppDescription = vApp.description;
    var vAppVdc = vApp.parent.name;
    var org = vApp.parent.parent;
    
    //Using query service to get further information on the to be deployed vApp
    var queryService = vcdHost.toAdminObject().toAdminExtensionObject().getExtensionQueryService();
    var expression = new VclExpression(VclQueryVAppField.NAME, vApp.name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    
    var resultSet = queryService.queryAllVappRecords(params);
    while (resultSet != null) {
        var records = resultSet.getRecords();
        for each (var record in records) {
            //Since we got the vApp by its name we want to check it is the right one
            if (record.href == vApp.getReference().href) {
                var vAppCreationDate = VclMiscObjectFactory.convertToGregorianCalendar(record.creationDate).toString();
                var vAppNumberOfVMs = record.numberOfVMs;
                var vAppStorageMB = record.storageKB / 1024;
                var map = record.otherAttributes;
                var vAppAutoDeleteDate = "Unlimited";
                for each (k in map.keys) {
                    if (k.getLocalPart() == "autoDeleteDate") {
                        var vAppAutoDeleteDateString = map.get(k);
                        if  (vAppAutoDeleteDateString != null && vAppAutoDeleteDateString != undefined) {
                            var vAppAutoDeleteDateXmlGregorianCalendar = VclMiscObjectFactory.xmlGregorianCalendarFromString(vAppAutoDeleteDateString);
                            var vAppAutoDeleteDate = VclMiscObjectFactory.convertToGregorianCalendar(vAppAutoDeleteDateXmlGregorianCalendar).toString();
                        }
                        System.log(k.getLocalPart() + " : " + map.get(k));
                    }
                }
            }
        }
        resultSet = resultSet.getNextPage();
    }
    
    var vmsProperties = new Array();
    
    var queryService = vcdHost.getQueryService();
    expression = new VclExpression(VclQueryVMField.CONTAINER, vApp.getReference().href, VclExpressionType.EQUALS);
    filter = new VclFilter(expression);
    params = new VclQueryParams();
    params.setFilter(filter);
    
    var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINVM, params);
    while (resultSet != null) {
        var records = resultSet.getRecords(new VclQueryResultAdminVMRecord());
        System.log(records.length + " VM records found");
        for each (var record in records) {
            var vmProp = new Properties();
            vmProp.put("guestOs", record.guestOs);
            vmProp.put("memoryMB", record.memoryMB);
            vmProp.put("numberOfCpus", record.numberOfCpus);
            if (record.networkName != null) {
                vmProp.put("networkName", record.networkName);
                }
            else {
                vmProp.put("networkName", "");
            }
            vmProp.put("name", record.name);
            vmProp.put("description","n/a");
            vmsProperties.push(vmProp);
        }
        resultSet = resultSet.getNextPage();
    }
    
    function addInfoTitle(info, title) {
        info += "" + title + "
    \n"; return info; } function addInfoEntry(info, label, entry) { info += "
  • " + label + " : " + entry + "\n"; return info; } function addInfoSeparation(info) { info += "

\n"; return info; } content = ""; content = addInfoTitle(content, "Requestor"); content = addInfoEntry(content, "Username", username); content = addInfoEntry(content, "Description", userDescription); content = addInfoEntry(content, "Full Name", userFullName); content = addInfoEntry(content, "Email Address", userEmailAddress); content = addInfoEntry(content, "Telephone Number", userTelephone); content = addInfoEntry(content, "Instant Messenger ID", userIm); content = addInfoEntry(content, "Deployed VM Quota", userDeployedVmQuota); content = addInfoEntry(content, "Stored VM Quota", userStoredVmQuota); content = addInfoEntry(content, "Role", userRole); content = addInfoSeparation(content); content = addInfoTitle(content, "vApp"); content = addInfoEntry(content, "Name", vAppName); content = addInfoEntry(content, "Description", vAppDescription); content = addInfoEntry(content, "VDC", vAppVdc); content = addInfoEntry(content, "Creation Date", vAppCreationDate); content = addInfoEntry(content, "Number of VMs", vAppNumberOfVMs); content = addInfoEntry(content, "Disk Size", System.formatNumber((vAppStorageMB / 1024), "0")+ " GB"); content = addInfoEntry(content, "Storage Lease", vAppAutoDeleteDate); System.log("=================================================\n"); System.log("Operation Type: "+operationType); // Process the vmPropsArray: // vmName - string // hostName - string // osName - string // hwVersion - string // cpuCount - string // memoryMB - string if (vmPropsArray != null){ for each (vmProps in vmPropsArray){ System.log("vmName: "+vmProps.get("vmName")); System.log("hostName: "+vmProps.get("hostName")); System.log("osName: "+vmProps.get("osName")); System.log("cpuCount: "+vmProps.get("cpuCount")); System.log("memoryMB: "+vmProps.get("memoryMB")); content = addInfoSeparation(content); content = addInfoTitle(content, "VM"+" ("+operationType+")"); content = addInfoEntry(content, "\tName", vmProps.get("vmName")); // This is the "Full Name" or "Display Name" if(vmProps.get("description")!="n/a"){ content = addInfoEntry(content,"\tDescription", vmProps.get("description")); } if(vmProps.get("hostName")!="n/a"){ content = addInfoEntry(content, "\tHost Name", vmProps.get("hostName")); // This is the hostname or Computer Name } if(vmProps.get("osName")!="n/a"){ content = addInfoEntry(content, "\tGuest OS name", vmProps.get("osName")); } if(vmProps.get("cpuCount")!="n/a"){ content = addInfoEntry(content, "\tvCPUs", vmProps.get("cpuCount")); } if(vmProps.get("memoryMB")!="n/a"){ content = addInfoEntry(content, "\tRAM (MB)", vmProps.get("memoryMB")); } // content = addInfoEntry(content, "\tNetwork name", vmProp.get("networkName")); } } var displayContent = content; // Retrieve the full webview url here: should be like http://your.vco.server:8280/vmo/approvals var webViewUrl = configurationElement.getAttributeWithKey("webViewUrl").value; // Extract the host from the url var vcoHost = webViewUrl.match(/^(ftp:\/\/|https?:\/\/)?(.+@)?([a-zA-Z0-9\.\-]+).*$/)[3]; // Now build the answer URL to be placed in e-mail var urlAnswer = "here" ; content = addInfoSeparation(content); content += "Click "+urlAnswer +" to approve or reject this request."; content = addInfoSeparation(content); content += "** This is an automated workflow email. Do not reply. **";
  • Cloning a virtual machine running Live - destination of the is an exact match to the source at the beginning or end of the cloning process?

    Hello

    I'm not a VMware Expert, so please forgive my noob question.

    I was invited to migrate files from Windows Server 2003 to 2012 servers, and I intend to use cloning as a way of copying the VMDK with data from the file to the new server of 2012.

    I created a script with vSphere PowerCli, which made a clone of the source and, once the cloning is complete, it stops and disables the Server service on the Windows of the source virtual machine operating system to avoid changes in the source of this point in time.

    But I noticed, I have start by making a snapshot.

    Question:

    Changes made to the source VM when creating the clone will then be synchronized at the end of the cloning process, so that the destination virtual machine will be an exact copy of the source, at the end of the cloning process?

    Or destination VM will correspond only to the source of the VM at the time of the opening of the cloning process, and all the files that have been updated on the source VM when creating the clone will be lost on the destination?

    Thank you for helping me to get a clear understanding of the present!

    Best regards

    Changes made to the source VM when creating the clone will then be synchronized at the end of the cloning process, so that the destination virtual machine will be an exact copy of the source, at the end of the cloning process?

    Laughing out loud

    Or destination VM will correspond only to the source of the VM at the time of the opening of the cloning process, and all the files that have been updated on the source VM when creating the clone will be lost on the destination?

    Yes, the destination will be the data from the time you start to create the clone, because a snapshot will be created on the beginning of the process and the basic of this hat of the VM disk will be copied, all changes made on the source VM will be writing about the delta file and these data will not be copied.

  • CompactDAQ via the virtual machine

    Hi all

    before I dive into the documentation, how can I a CompactDAQ ethernet to connect to a virtual machine?

    In other words, what kind of ethernet configuration is necessary?

    The device has a static address (on what subnet?).

    should I use DHCP (I need a DHCP server on my host?).

    I can run my guest in NAT or must it be closed?

    Or is the totally different protocol, non - IP based (in this case how do I pass it to a virtual machine?).

    Thank you

    OK, I'll answer my message because it may be useful to others.

    In the configuration of the VM, set two networks:

    -one such as a NAT device is bound to the network interface used to access the web. Here I use the host being Linux and there is wifi, wlan0

    -one as a BRIDGE is related to the ethernet jack connected to the CompactRIO

    Start the virtual computer and configure the ethernet connection 2nd to use DNS and no firewall. After installing NIDAQmx, restart and from MAX, the devices should begin to appear.

  • Best way to reinstall Windows 7 on a virtual machine

    I have 2 questions, first, I'm sure I know the answer to but it leads to the second.

    I have a new Windows 7 Machine. I have played with it for a bit, but now intend to install server 2002 on it, then use W7 in a virtual environment.

    The questions are:

    1. I'm pretty sure of browsing the forum, I know the answer to this and its no.! but that's still...

    My original plan was to install the server and use dual boot but use the virtual w7 on a daily basis, rather than one that came on the machine - if I wqill need it is longer than the 30 days grace period. Can I use the same key for both because they are both on the same computer / hardware? Most of the forums seem to say no, but also a distinction that it runs on the same computer / hardware - it will be - only virtually.

    I can use other virtual machines to win 7, but these will be tests for the main environment and will be very temporary.

    2 assuming that the answer 1 is not and I'll have to install the server and then use my W7 key on a new installation in a virtual environment, what is the best way to backup everything on the current w7 machine and restore it to the w7 machine I create virtually?

    Note: I have 2 drives - 500 GB which I intend to mirror using the server (and then install another but that is not relevant to this ATM), but in the short term can I save photos, music and other files I want this player. It is mainly the files and installs them, personal settings, home group game settings etc... I want to be able to restore to the new environment of W7.

    Even if the answer to 1 is Yes, this information would be useful as I would like to create my current environment of W7 on the virtual machine.

    I will note that I have legal and valid product (in reason, where I work) keys for:

    Server 2008

    Windows 7 Professional x 2 (even if I intend to use one on a separate physical computer - I only want one on the machine that I put the server use)

    Thank you

    Nicci x

    Thanks for the reply.

    The goal is to learn windows server.

    I have a knowledge base of what I do, but only with A + / N + level but who seek to expand and learn things myself.

    I have 5 machines in the House and want to create a windows network using the server. The main engine was purchased for this purpose.

    Can I install server on a virtual machine in win7 then? That would probably make life easier

    Yes, you can. Do you intend to set up as a domain controller and have the clients to connect to it? If you want clients to connect to it as the other 5 machines which must run a Windows business edition, then its better you double boot with the existing installation of Windows 7. It is also very easy. He just set up a partition in Windows 7, boot from the disk of Windows Server 2008 R2 and select the partition where you want to install Windows Server 2008.

    Win7 is pro - these two licenses - with the machine, I bought. It came preinstalled but is a clean install without all the dell tools etc... Add.

    The other has not been used or turned on but goes to another machine.

    Is Server 2008 R2

    I know and understand the process of rearmament, thanks. The goal is to create a network within the home and begin to define AD profiles, use the server as a proxy and whole ton of other plans.

    I understand the potential challenges, I have created for me but I wanted to understand the best, legal way to go on this issue.

    I have a product key for server 2008 - I'm not trying to use the same one for server and win 7.

    Recommended or not, that's what I asked at the start - backup current win 7 and restaurant then in a virtual machine created on Server 2008 possible?

    No, it will not work. As suggested, for your test environment, its best you dual boot.

  • ACI Cisco Simulator in a virtual machine?

    I understand (http://www.cisco.com/c/en/us/products/collateral/cloud-systems-managemen... ) that this need for Simulator machine physical but all the world got it running on a virtual machine?

    I use aci-Simulator - s dk9.1.1.1 .iso

    I'm running it on 6.0 ESX and VM configuration is as below.

    100 GB SSD

    10 NW cards,

    16 GB memory

    8 cores

    Even if get you this to install, it won't rise properly.  The software is written in order to check the ID of physical product of the machine on which it is installed.  If that does not match an expected value, the APIC fails to start properly - DME services begin voluntarily.  You must purchase an APIC-SIM-S and install it on that.  In manufacturing the APIC-SIM-S hardware is programmed with the right PID.

    Mike

  • Auto-editions of production on virtual machines based on events

    Hello

    Is it possible to receive a VMS mail each time an event like high signature is detected, if we can automate this process, I am unable to find any these settings in virtual machines, can you please help me out of this.

    Thanks and greetings

    Salim

    This is a script that will work a bit on VMS and 4.1 sensors

    #! / usr/bin/perl

    Use Time::Local;

    #***********************************************************************

    #

    # FILE NAME: emailalert.pl

    #

    # DESCRIPTION: This file is a perl script that will be run as a

    action # when an event ID - MC rule fires and will send you a

    # e-mail to $EmailRcpt with additional parameters of the alerts (similar to)

    (# the features available with notifications of CSPM)

    #

    # NOTE: this script only works with 4.x sensors. It will be

    # does not work with the 3.x sensors.

    #

    # NOTE: This script takes the keyword ${Query} of the

    # triggered rule, extracts of all alarms that caused

    # the rule to trigger. It then reads the last alarm of

    # analysis of this set, the individual fields of alarm, and

    # calls the script inherited with the same set of command

    line arguments # as CSPM.

    #

    # The sequence of calling this script must be of the form:

    #

    # emailalert.pl "${Query}.

    #

    # Where:

    #

    # "${Query}"-this is the keyword query dynamically

    # output by the rule when it fires.

    # It MUST be wrapped in double quotes

    # When showing you in the Arguments

    # box on the rule Actions Panel.

    #

    #

    #***********************************************************************

    ##

    # The following is only two variables that must change. $TempIDSFile can be

    # filename (doesn't have to exist), make sure the directory you specify

    # exists. Make sure you use the backslashes 2 for each directory, the first backslash is

    # If the Perl interpreter is not error on the path.

    ##

    # $EmailRcpt is the person who will receive notifications by e-mail. Also

    # Make sure escape you the symbol by putting a backslash in front of him, if not @.

    # you will get a Perl syntax error.

    ##

    $TempIDSFile = "c:\\temp\\idsalert.txt";

    $EmailRcpt = "gfullage\@cisco.com";

    subroutine # add 0 in front in any variable of date that is less than 10.

    void add_zero {}

    my ($var) = @_;

    If ($var< 10)="">

    $var = '0 '. $var

    }

    return $var;

    }

    subroutine # to find one or more IP addresses within the XML tag (we can have several

    # victims or aggressors in an alert now).

    void find_addresses {}

    my ($var) = @_;

    my @addresses = ();

    If (m / $var /) {}

    $raw = $&;

    While ($raw = ~ m /(\d{1,3}\.)) {3} \d {1,3} /) {}

    push @addresses, $&;

    $raw = $';

    }

    $var = join (",", @addresses);

    return $var;

    }

    }

    # out command line arg

    $whereClause = $ARGV [0];

    # extract all the alarms corresponding search expression

    $tmpFile = "alarms.out";

    # Extract the XML from the database alert/event.

    System ("IdsAlarms-if" $whereClause\ "-f\" $tmpFile\ "");

    # Open corresponding output alarm

    If (! open (ALARM_FILE, $tmpFile)) {}

    Print "Could not open $tmpFile\n";

    Output - 1;

    }

    # read the last line

    While () {}

    chomp $_;

    push @logfile, $_;

    }

    # clean up

    Close (ALARM_FILE);

    unlink ($tmpFile);

    # Open the temp file to write data alerts

    Open(out,">$TempIDSFile");

    # split the XML output in

    $oneline = join('',@logfile);

    $oneline = ~ s /-<\ vents\="">/ / g;

    $oneline = ~ s /-<\ valert\="">/-<\ valert\="">, / g;

    @items = split(/,/,$oneline);

    # If you want to see the result of database query in the e-mail, a comment on the

    # line below (useful for troubleshooting):

    # (print "$oneline\n");

    # Loop until there are no more alerts

    {foreach (@items)

    if (m/\(.*)\<\ ostid\="">/) {

    $hostid = $1;

    }

    If (m/severity = "(.*?)") » /) {

    $sev = $1;

    }

    If (m/Zone\=".*"\ >(.*)-<\ ime\="">/) {}

    $t = $1;

    {If ($t = ~ m/(.*)(\d{9})/ {)}

    ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($1);

    # Year is reported from 1900 (eg. 2003 is 103).

    $year = $year + 1900;

    # Months begin at 0 (January = 0, February = 1, etc.), add 1.

    $mon = $mon + 1;

    $mon = add_zero ($mon);

    $mday = add_zero ($mday);

    $hour = add_zero ($hour);

    $min = add_zero ($min);

    $sec = add_zero ($sec);

    }

    }

    If (m/sigName = "(.*?)") » /) {

    $SigName = $1;

    }

    If (m/iRIMS = "(.*?)") » /) {

    $SigID = $1;

    }

    If (m/subSigId = "(.*?)") » /) {

    $SubSig = $1;

    }

    $attackerstring = "\".

    If ($attackerstring = find_addresses ($attackerstring)) {}

    }

    $victimstring = "\".

    If ($victimstring = find_addresses ($victimstring)) {}

    }

    @actions = ();

    if (m/\(.*)\<\ ctions\="">/) {

    $rawaction = $1;

    While ($rawaction = ~ m /-<(\w*?)\>(. *?)------)

    $rawaction = $';

    If {($2 eq "true")

    push @actions, $1;

    }

    }

    If {(@actions)

    $actiontaken = join (",", @actions);

    }

    else {}

    $actiontaken = 'none ';

    }

    }

    # Now write your notification e-mail. You write the following in

    # the temporary file at the moment, but it will then be sent.

    ##

    # Even once, be sure to escape the special characters with a backslash (note the: between)

    (# the hamid and the SubSig).

    print (OUT "\n$hostid reported an alert of severity $sev to $mon / $mday / $year $hour: $min: $sec\n");

    ("print ("Signature $SigName \($SigID\:$SubSig\) from $attackerstring to $victimstring\n ");

    print (THE "measures taken: $actiontaken \n\n" "");

    print(OUT "----------------------------------------------------\n");

    }

    Close (out);

    # Gives the word "blat" to send the file content in the body of an e-mail message.

    # Blat is a freeware for Windows NT/95 e-mail program, it comes with the virtual machines in the

    # $BASE\CSCOpx\bin directory, make sure that you install first by running:

    ##

    # blat - install

    ##

    # For more information on blat, simply type "blat" to the prompt on your system (make VMS

    # It's in your path (feel free to move the executable to c:\winnt\system32 FRONT)

    (# run you the facility, which will ensure that your system can still find).

    System ("blat \"$TempIDSFile\"t - \"$EmailRcpt\ "s - \"Received ID alert\"');

  • Run a virtual machine with a graphical interface on a host without GUI

    Hallo

    I want to install a simple Windows 7 for some tasks bit where I need Windows on my server Ubuntu 14.04. This server has no GUI (no X) and should have any.

    Already, I've installed the virtual Windows machine on my workstation to 12, so I would just copy the vmdk on my linux server and run it, maybe put something in the vmx file.

    But I do not know is that it's all means possible.

    Is it?

    Is there any player or any application for ubuntu VMware when there is no X system (on ubuntu), where I can run virtual machines with GUI inside?

    Maybe another virtualization tool, vmware not?

    I think that this exact question already somewhere, but I haven't found much question where comments lacking a GUI, but not the host.

    I need a guest-gui on a host without gui (where I have only the terminal).

    So maybe it's not possible at all, so please tell me a 'no', so I won't expect more

    Thank you to

    Frank

    EDIT: oh, this seems to be another question unanswered it is too difficult or too stupid?

    Hi Frank,.

    Now that would be stupid, having a text Installer, and then not allow the virtual machine to run. I think it should work, but you must pass the nogui option.

    Vmrun help:

    beginning

    (Supported only on teams

    Workstation.)

    Starts a virtual machine (.vmx file) or team (file .vmtm).

    The default graphical user interface option starts the machine in an interactive way,

    What is necessary to display a user interface of VMware.

    Nogui option suppresses the user interface,

    including start-up, to allow dialog box not interactive

    writing scripts.

    [gui | nogui]

    refer to the manual of vmrun: VIX API Documentation

    Edit: hmm... Now, I see that you have already tried the nogui option. You might be able to install the package libxinerama, but he could hang out in a lot of dependencies.

    FWIW, vSphere is pretty much what you describe a system not GUI to run GUI invited, so it shouldn't be a problem at all.

    Unfortunately, I don't have a host linux without X installed handy here, so can't test here without the implementation of a server without head myself.

    You can also try to run the client via the command vmware:

    VMware Workstation 12 Pro Documentation Center

    --

    Wil

  • How is it important to enhance virtual machine hardware level if you don't need the extra features the latest offers?

    Are there benefits or reason to pass the levels of virtual machine hardware if you don't need new features later versions give you?

    We are getting ready for VSphere 6 and begin to migrate some of our guests.  Most of our virtual machines are at levels 7, 8 or 9.

    From what I've seen, the features of material level 10 and 11 are not everything what we need on most of our virtual machines.  I'm happy to walk if later versions of material are better, more stable, etc and we should upgrade the hardware even if we don't need the extensive features.

    Mike O'Donnell

    Hi Mike,.

    VMware sees as a best practice to run on the latest version of material (see the section of the Virtual Machines on this page: KB VMware: vSphere 5.x upgrade to vSphere recommended 6.0) and if you encounter a problem with a virtual machine, support may ask you to update the version. In practice it might give you more stability or some performance enhancements.

    I was like you although I don't necessarily keep my VMs up-to-date at the hardware level. I make sure they are relatively recent but.

    You want to make sure that all cluster hosts are compatible on all hosts. the last thing you want is to have a failure and knowing that the client cannot run on a different host due to incompatibility.

  • ORA-12560: TNS:protocol adapter error. Virtual MACHINE works on old MBP and Win7 but not on new MBP [mid 2015 retina], speed or network problem?

    We strive to use our VM on the new retina MBP (mid-2015) with MacOS X 10.11 (El Capitan) but we had a problem starting from Oracle. If we first converted our ESX VM but once on the Mac laptop Oracle (v12.1.0.1.0 on WIN2012R2) does not open the database, error;

    ORA-12560: TNS:protocol adapter error

    Does not change us any setting on the virtual machine itself so services work fine. Network has set the IP with host only. Tried with Fusion 7.1 & Fusion 8.0.2 new Mac with nothing doesn't. Also with the different versions of the VM tools. Tried to remove the NIC in Fusion and recreate, don't sucses.

    Funny enough the same virtual machine starts fine on PC (workstation 10.3.0 & Win7), MBP beginning 2011 (Fusion 7 & Mac 10.10) or ESX itself for Oracle opens the database!

    That's why we think in the direction of the new MBP specific? speed or network issue? Ring the bells?


    Help appreciated!

    Bottom line, this is a problem of Oracle who dislikes the MBP on a virtual machine.

    for reference;

    Virtual MACHINE works very well on all platforms, but not on the latest MacBook Pro (retina, 15 inch, mid-2015). So, when you try to use sqlplus you might get the error that there is no such thing as SID. Earphone works very well, but the DB process does not record with earphone or work correctly also. But the process is running and a SID tnsping returns an OK. This isn't a problem of configuration Oracle as the VM and DB works well from the moment where you run the virtual machine on a PC or an old MBP. Either way, Virtualbox has the same problem so not a problem of Fusion.

    I will record a deal with Oracle but I doubt that it is corrected.

  • Unable to build the vmmon module uisng a 4.3.0 core - 1 - virtual machine monitor [failed]

    Hi all

    I installed openSUSE Tumbleweed last updated with the 4.3.0 core - 1.

    uname - a

    Home Linux 4.3.0 - 1-default #1 SMP PREEMPT Thu Nov 2 15:35:09 UTC 2015 (7b374a4) x86_64 x86_64 x86_64 GNU/Linux

    Note, I've been on 4.2.4 - before kernel 1.2

    After updating, I rebooted and I manually compiled the vmnet and vmmon modules.

    Unfortunately, the two modules do not have to compile.

    In previous versions of the kernel only vmnet module compiled with errors.

    I corrected manually the file vmnetInt.h in the module vmnet as suggested here on the forum and it compiles and loads OK

    I am at a loss on how to manually manage the change in kernel version of 4.3.0 - 1 in vmmon files so that I can get to compile correctly

    The compile error is shown below. Any help, suggestions or fixes would be greatly appreciated

    ###

    Homepage: / tmp/vmware/source/vmmon-only # make

    Using the kernel build system.

    do /lib/modules/4.3.0-1-default/build/include/ - C... SUBDIRS = $PWD SRCROOT = $PWD. \

    MODULEBUILDDIR = modules

    make [1]: Entering directory ' / usr/src/linux-4.3.0-1-obj/x86_64/default'

    CC [M] /tmp/vmware/source/vmmon-only/linux/driver.o

    /tmp/vmware/source/vmmon-only/Linux/driver.c: in function 'cleanup_module ":

    /tmp/vmware/source/vmmon-only/Linux/driver.c:390:8: error: Sub value not ignored as it should be

    If (misc_deregister (& linuxState.misc)) {}

    ^

    At the highest level:

    /tmp/vmware/source/vmmon-only/Linux/driver.c:1285:1: warning: always_inline function might not be inlinable [-Wattributes]

    LinuxDriverSyncReadTSCs(uint64 *delta) / / OUT: max - min TSC TSC

    ^

    /usr/src/Linux-4.3.0-1/scripts/Makefile.build:274: recipe for target ' / tmp/vmware/source/vmmon-only/linux/driver.o' failed

    make [4]: * [/ tmp/vmware/source/vmmon-only/linux/driver.o] error 1

    /usr/src/Linux-4.3.0-1/Makefile:1404: recipe for target ' _module_/tmp/vmware/source/vmmon only' failed

    make [3]: * [_module_/tmp/vmware/source/vmmon only] error 2

    Makefile:146: recipe for target 'make Sub' failed

    make [2]: * [branded] error 2

    Makefile:24: recipe for target '__sub-make' failed

    make [1]: * [__sub-make] error 2

    make [1]: leaving directory ' / usr/src/linux-4.3.0-1-obj/x86_64/default'

    Makefile:120: doesn't have a recipe for target 'vmmon.ko.

    make: * [vmmon.ko] error 2

    ###

    # Current message when I bounce and then restart VMware

    Restarting vmware...

    Homepage: / tmp/vmware/source # /etc/init.d/vmware restart

    Stopping VMware services:

    Demon of authentication makes VMware

    VM communication interface socket family is

    Virtual machine communication interface is

    Virtual machine monitor makes

    File system is blocking

    Starting VMware services:

    Virtual machine monitor failed

    Virtual machine communication interface is

    VM communication interface socket family is

    File system is blocking

    Virtual Ethernet is

    Demon of authentication makes VMware

    ###

    Homepage: / tmp/vmware/source # modprobe vmmon

    modprobe: ERROR: could not insert 'vmmon': Exec format error

    Any help, suggestions or fixes would be greatly appreciated

    TIA

    James

    Hi James,

    What version of Workstation do you use?  Even if Workstation is not yet officially supported any host OSes with 4.3.0 core I think that this issue should be fixed in the Workstation 12.0.1, so if you're on 12.0.0 Workstation and have not yet upgraded, give that a try.

    See you soon,.

    --

    Darius

  • Download the virtual machine in a store of data with powercli

    Hello

    How to list the files of virtual machine on a store of data with PowerCLI

    I have a virtual machine and I want to see all the files in a data store (such as hard,.-flst.vmdk, .log, .nvram) using powercli. Is this possible?

    TKS.

    Try the following, it uses a function of my position of friendly units .

    Function Get-FriendlyUnit {}

    <>

    . Numbers converted small binary multiples SYNOPSIS

    . DESCRIPTION the function accepts a value and him will convert

    in the largest available binary unit.

    . Author NOTES: Luc relaxing

    . Value of the PARAMETER

    The value to convert.

    This number must be positive.

    . IEC PARAMETER

    A switch to indicate whether the function should return the CIS

    Unit, or the names of the units most commonly used names.

    The default is to use the commonly used unit names.

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456

    . EXAMPLE OF

    PS > 123456 | Get-FriendlyUnit - CIS

    . EXAMPLE OF

    PS > Get-FriendlyUnit-value 123456,789123, 45678

    #>

    (param

    [CmdletBinding()]

    [parameter (mandatory = $true, ValueFromPipeline = $true)]

    [double []] $Value,.

    [switch] $IEC

    )

    Begin {}

    $OldUnits = "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB".

    $IecUnits = 'B', 'KiB', 'MiB', "GiB", "TiB", "PIF", "BANK", "ZiB", "YiB".

    If ($IEC) {$units = $IecUnits} else {$units = $OldUnits}

    }

    {in process

    $Value | %{

    If ($_ - lt 0) {}

    Write-Error "Numbers must be positive."

    breaking

    }

    If ($value - gt 0) {}

    $modifier = [math]: Floor([Math]::Log($_,1KB)))

    }

    else {}

    $modifier = 0

    }

    New-object PSObject-property @ {}

    Value = $_ / [math]: Pow(1KB,$modifier)

    Unit = & {if ($modifier - lt $units. {Count) {$units [$modifier]} else {'1KO E {0}' f $modifier}}

    }

    }

    }

    }

    foreach ($vm in (Get-View - ViewType VirtualMachine - property Name, 'LayoutEx.File')) {}

    $vm. LayoutEx.File |

    Select @{N = "VM"; E = {$vm. Name}},

    @{N = 'Name'; E={$_. Name.Split(' ') [1]. "Split('/') [1]}},"

    @{N = "Path"; E={$_. Name}},

    @{N = 'FileType'; E={$_. Type}},

    @{N = "Datastore"; E={$_. Name.Split(']') [0]. TrimStart('[')}},

    @{N = "size"; E = {}

    $val = get-FriendlyUnit-value of $_. Size

    "{0:n2} {1}" f $val. Value, $val. Unit

    }}

    }

  • Try the list of virtual machines by NetworkName, then add advanced settings

    Hello

    I'm trying to connect to a host (not a vCenter), list the virtual machines, select the different networks of those in two, then apply two advanced settings for the virtual machine.

    So far, I have this:

    $vms = get - VM

    SE connect-VIServer $esxi - user $user-password $pass

    {foreach ($vm to $vms)

    If (Get-NetworkAdapter - vm $vm.name |?) {{$_.NetworkName - eq "VLAN70"})}

    New-AdvancedSetting $vm - isolation.tools.copy.disable name-set to false - confirm: $false - Force: $true

    New-AdvancedSetting $vm - isolation.tools.paste.disable name-set to false - confirm: $false - Force: $true

    }

    }

    Disconnect-VIServer $esxi - confirm: $false

    First of all, how I add a second network to verify - if 'VLAN70' or 'VLAN80 '?

    Secondly, there is a smarter way of writing this script?  I'm doors beginning with PowerCLI, but I think even my grandmother could write a better version...

    Any advice would be greatly appreciated,

    -virtualhobbit

    I see, so you could do something like this

    $tgtVLAN = "VLAN80", "VLAN80", "VLAN90".

    SE connect-VIServer $esxi - user $user-password $pass

    Get - VM |

    where {(Get-NetworkAdapter-VM $_ | % {$tgtVLAN-contient $_.NetworkName}) - contains $true} | %{

    New-AdvancedSetting $_ - isolation.tools.copy.disable name-set to false - confirm: $false - Force: $true

    New-AdvancedSetting $_ - isolation.tools.paste.disable name-set to false - confirm: $false - Force: $true

    }

    Disconnect-VIServer $esxi - confirm: $false

  • Change of virtual machines managed by SRM for VR in an event of DR

    Hello

    I have a virtual machine that is being replicated using replication vSphere + I configured a recovery SRM for virtual machine plan is managed by SRM.

    Screen Shot 2015-03-20 at 9.04.47 am.png

    In a DR situation:

    • To recover a virtual machine that is managed by VR everything I have to do is to connect to vCenter to your web site of DR via vSphere client, then click on recover.
    • To recover a virtual machine that is managed by MRS. all you need is to get a full vsphere to your DR site that has the plugin SRM installed before you can retrieve customer.

    My question:

    Suffice it to say at an event of DR MRS on the DR site was dismantled (so I couldn't recover virtual machines managed by SRM) but I can connect to the Web from vSphere client and retrieve virtual machine managed by VR, is it possible to manually change the virtual machines managed by SRM, so they are managed by new RV?

    See you soon

    Hello

    There are internal interface that allows you to do. Please contact VMware support team.

    Go get the current "recovered by" value:

    https://vrms_address:8043 / mob /? me = Recovery Manager & method = HmsRecoveryManagerGetGroupsRecoverySolution & vmodl = 1

    To reset the value "recovered by" RV:

    https://vrms_address:8043 / mob /? me = Recovery Manager & method = HmsRecoveryManagerSetGroupsRecoverySolution & vmodl = 1

    Call the method after replacing ME with the GID... replication value and clear the value (empty string) for the recoveredBy property.

    To retrieve the value, GID-... - look at the names of the replica files in target or check data warehouses the table GroupEntity in DB VRMS. To get prompt SQL embedded DB VRMS - use

    / opt/VMware/vpostgres/Current/bin/psql vrmsdb - U

    and

    \Q to quit smoking

    Please note that the foregoing is not officially supported and may change with the different versions of the VR.

    Kind regards

    Martin

  • Maybe you are looking for