Monday, November 09, 2015

windows 10 update

Procedure to upgrade windows 7 professional to windows 10


It's free to upgrade to Windows 10 from Win 7 professional. There are a few nuances. Otherwise, the whole process is a smooth one.

Upgrade steps

  1. bing "windows 10 upgrade"
  2. Follow the link to start the process
    • you can choose to a) upgrade  b) create media to upgrade another PC
    • chosen: a)
  3. Remove antivirus, for example, McAfee, Symatec, Host Instrusion Protection, etc
  4. For any self-protected software, Windows 10 wizard can't just uninstall. Follow these steps to remove them
    • restart in "safe mode" (choice at beginning of windows)
    • "disable" the service < run "services.msc", then edit service properties
    • restart in "normal mode"
    • try to run the wizard again to uninstall
  5. Restart wizard to uninstall these "anti-" software
  6. choose "express settings"
  7. Congratulations: you are running windows 10 now.

Figure 1. Windows 10

Hiccups and resolutions:

  • Remove any anti-virus software

        1. windows firewall will be used
        2. See above Install.4
  • Display resolution:

Generic PnP display used, support only 1024x768
        1. Go to device manager, find display adapters
        2. update the driver




Tuesday, June 02, 2015

Cloud computing - definitive thoughts on the coming and go of "cloud"


 Economy of scale: Shared Servies

Business world has leverage shared services to gain efficiency and cut costs for many years. To an enterprise, the benefits is magnified due to "economy of scale". IT organization follows the same evolution path over the past 20 years. In the past 3-5 years, a new idiom is minted to describe this trend, cloud computing. When an enterprise has a centralized, managed application platform, it is called PaaS, aka, private platform cloud.

As technology evolves, such as visualization and engineered system become mature, small and median firms can capture such benefits only seen by enterprise afore. They achieve this through 3rd party "cloud" provider. For example, Amazon Web Services (AWS) platform. It is called public cloud.

So we can view cloud computing as a shared computing services that is managed centrally independent from development or end user. Various LOB of an enterprise share the "private" cloud for their IT needs, while group of independent companies share the "public" cloud for pooled efficiency.

The art of Computer Engineering 

Computing engineering is human intensive, for now at least. Thus, human skills and expertise with technology is critical for IT to success. Some expertise, such as enterprise architecture, experiences and in-depth know-how can only be acquired over years. Thus, we are facing a talent shortage where IT is concerned. Yes, yes, there are millions of "software engineering" or "IT professionals", but not everyone are created equal in the technology world, especially IT.

Because of the following reasons, a shared services model is far superior to discrete or proprietary IT services.

  a) human intensive IT.
  b) expertise and in-depth knowledge are results of years of experiences,


Technology Advances behind "Cloud computing"
As IT is more and more becoming a definitive factor critical to the business success or failure, every traditional or new part of the economy started enhance their information capabilities. This IT boom created sprawling data center where cost and power consumption is out of control as portfolio expanding. We heard a few years ago complaints about IT power costs, cooling costs, under-utilized servers.

Two technology advances come to the rescue. 1st, visualization software pioneered by VMWare. This technology make it possible to isolate co-located applications.  2nd, parallel architecture created ever powerful servers that can consolidate cheap, less powerful blades by hundreds. Together, these two technologies make it all possible to create a "shared services" platform, aka, cloud computing.


Is this just another term?
Cloud computing is more than Shared Services. Before technology advances, a shared services is truly just a "service", as LOB or customer often buy computing by servers, and thus expecting that their servers NOT "polluted" by other LOB's applications.

Now cloud computing can truly follow a utility model. Business only need to pay the computation power and  support they need. No prohibitive up-front costs for anyone anymore, except perhaps the "seed" capital investment by the cloud provider.

Fast provisioning, automation, managed/monitored platform, low TCO, pay as you go, etc are some of the benefits to the business. In this sense, cloud computing is not just a term, but a paradigm change for IT.




Tuesday, January 28, 2014

Tomcat get enterprise - session replication

Tomcat cluster: since 5.0

In memory session replication, with two methods:  all server has all sessions;  primary/backup session

HA realization:
Session persistence (DB or Shared Filer)
Session replication (memory)

RESTful WebService: Overview

RESTful WS tech stack

HTTP + JSON


JSON Syntax

reserved: {}  []  \  :  " ,        0-9 e E + -
structure:  name value pair, where name is "string" and value can be string, number, object, array
string:  "(^[" | control_Char])" 
number:  [+-] [0-9]+[.][0-9]* [[eE] [+-]][0-9]+
object:  {}
array:   []

An example

Request                                                            
POST https://mytire.com/cws/Cws.svc/rest/Login HTTP/1.1 
Host: mytire.com 
Content-Type: application/json; charset=UTF-8 
Content-Length: 145 
CostarApplicationId: MyTireCompany 
CostarGuid: C19F0CAC-75F4-EB74-46EF-78C37524467F 
CostarSignature: r9jqorXwl88qPL6kxWdU/kKHLwJLsLWtwdvv2+efuLU= 
CostarSigningAlgorithm: HMAC-SHA256 
CostarUtc: 2013-06-05T19:54:36.470 
CostarCipher: AES256 
CostarCipheredFieldCsv: p_Password 
CostarCipherIv: qjcdVTwYWn379KHrPqxoVA== 

{
"p_Company" : "weborder"
, "p_LoginName" : "MyUserName"
, "p_Password" : "I+7MqdYJ+VJYC2LYDTMnaQ=="
, "p_IsLogoutMySessions" : "false"
, "p_NewPassword" : ""
}


Response                                                            
HTTP/1.1 200 OK 
Content-Length: 314 
Content-Type: application/json 
Server: Microsoft-HTTPAPI/2.0 
Access-Control-Allow-Origin: * 
Date: Thu, 07 Nov 2013 23:33:32 GMT 

{
"DbVersion": "3.0.0.461"
, "CwsVersion": "4.1.61.2"
, "IsAdministrator": false
, "PasswordExpiryUtc": "9999-12-31T00:00:00"
, "Result": "VALID"
, "SessionExpiryUtc": "2013-02-01T20:13:24.977"
, "SessionGuid": "15b4b64d-8a6c-e211-9195-005056930637"
, "UnifiedBuildNumber": "4.1.61.2"
}

Wednesday, October 16, 2013

Windows 8.1 preview (64 bit) on VirtualBox

The installation procedure is pleasant and easy. Here is how:

  1. download binary and get key from Microsoft here,                                                                                          license key: NTTX3-RV7VB-T7X7F-WQYYY-9Y92F
  2. create virtual box VM  (suggested version 4.2.18, which supports 8.1 directly)
  3. follow the screen to install.

Windows 8.1 64Bit



There are two catches:
  • 0x000000C4 error  & fix  
Root cause:  windows version not match VM;  
Solution:  make sure VM is created for windows 64bit if you are installing 64 bit version.

  • Installation abort - space issue.
make sure your VM has at least 2GB RAM, and 8GB of hard disk space


Friday, December 14, 2012

wlst commands: wls 12C


    help('activate')         Activate the changes.
    help('addListener')      Add a JMX listener to the specified MBean.
    help('addTemplate')      Extend the current domain.
    help('adminHome')        Administration MBeanHome.
    help('assign')           Assign resources to one or more destinations.
    help('assignAll')        (Deprecated) Assign all applications or services.
    help('cancelEdit')       Cancel an edit session.
    help('cd')               Navigate the hierarchy of beans.
    help('closeDomain')      Close the current domain.
    help('closeTemplate')    Close the current domain template.
    help('closestore')       Closes a store.
    help('cmo')              Current Management Object.
    help('compactstore')     Compacts and defragments the space occupied by a file store.
    help('config')           (Deprecated) Navigate to the last MBean in configuration hierarchy.
    help('configToScript')   Convert a domain configuration to WLST script.
    help('connect')          Connect WLST to a WebLogic Server instance.
    help('connected')        Variable indicating whether WLST is connected.
    help('create')           Create a configuration bean.
    help('createDomain')     Create a new domain.
    help('currentTree')      Return the current location in the hierarchy.
    help('custom')           Navigate to the root of custom MBeans.
    help('delete')           Delete a configuration bean.
    help('deploy')           Deploy an application.
    help('disconnect')       Disconnect WLST.
    help('distributeApplication')Copy the deployment bundle to targets.
    help('domainConfig')     Navigate to last domain configuration MBean or root.
    help('domainCustom')     Navigate to the root of domain custom MBeans.
    help('domainName')       Name of the domain to which WLST is connected.
    help('domainRuntime')    Navigate to last domain runtime MBean or root.
    help('domainRuntimeService')DomainRuntimeServiceMBean MBean.
    help('dumpStack')        Display stack trace from the last exception.
    help('dumpVariables')    Display all the variables used by WLST.
    help('dumpstore')        Dumps store contents in human-readable format to an XML file.
    help('edit')             Navigate to last edit configuration MBean or root.
    help('editService')      EditServiceMBean MBean.
    help('encrypt')          Encrypt the specified string.
    help('exit')             Exit WLST from the user session.
    help('exitonerror')      Variable indicating whether WLST exits on error.
    help('exportDiagnosticData')Execute a query (offline).
    help('exportDiagnosticDataFromServer')Execute a query (online).
    help('find')             Find MBeans and attributes.
    help('get')              Return the value of the specified attribute.
    help('getActivationTask')Return the latest ActivationTaskMBean.
    help('getAvailableCapturedImages')Returns the list of Diagnostic Images available for downloading.
    help('getConfigManager') Return the ConfigurationManagerMBean.
    help('getMBI')           Return the MBeanInfo.
    help('getMBean')         Return the MBean by browsing to path.
    help('getPath')          Return the MBean path.
    help('getWLDM')          Return the WebLogic DeploymentManager object.
    help('getopenstores')    Returns a list of opened stores (for script access).
    help('getstoreconns')    Returns a list of connections in the specified store (for script access).
    help('home')             Local MBeanHome.
    help('invoke')           Invoke a management operation on the current bean.
    help('isAdminServer')    Variable indicating whether WLST is connected to an Admin Server.
    help('isRestartRequired')Determine whether a server restart is required.
    help('jndi')             Navigate to the JNDI tree.
    help('listApplications') Lists all applications that are currently deployed to the domain.
    help('listChildTypes')   List all the child MBeans for the cmo.
    help('liststore')        Lists store names, open stores, or connections in a store.
    help('loadApplication')  Load an application and deployment plan.
    help('loadDB')           Load SQL files into a database.
    help('loadProperties')   Load property values from a file.
    help('lookup')           Look up the specified MBean.
    help('ls')               List all the child beans and/or attributes.
    help('man')              Display help from MBeanInfo.
    help('mbs')              MBeanServerConnection object.
    help('migrate')          Migrate JTA, JMS or Server services.
    help('nm')               Determine whether WLST is connected to Node Manager.
    help('nmConnect')        Connect WLST to Node Manager.
    help('nmDisconnect')     Disconnect WLST from a Node Manager session.
    help('nmEnroll')         Enroll the machine with Node Manager.
    help('nmGenBootStartupProps')Generate boot and startup properties
    help('nmKill')           Kill the specified server instance.
    help('nmLog')            Return the Node Manager log.
    help('nmServerLog')      Return the server output log.
    help('nmServerStatus')   Return the status of the server.
    help('nmStart')          Start a server using Node Manager.
    help('nmVersion')        Return the Node Manager server version.
    help('openfilestore')    Opens a file store.
    help('openjdbcstore')    Opens a JDBC store.
    help('prompt')           Toggle prompt information.
    help('pwd')              Display the current working directory.
    help('readDomain')       Open an existing domain for updating.
    help('readTemplate')     Open an existing domain template.
    help('recording')        Variable indicating whether WLST is recording.
    help('redeploy')         Reload classes and redeploys an application.
    help('redirect')         Redirect WLST output to the specified filename.
    help('removeListener')   Remove a listener that was previously defined.
    help('resume')           Resume a server instance.
    help('runtime')          (Deprecated) Navigates to the last MBean in runtime hierarchy
    help('runtimeService')   RuntimeServiceMBean MBean.
    help('save')             Save the edits that have been made.
    help('saveDiagnosticImageCaptureEntryFile')Downloads an entry from a captured Diagnostic Image.
    help('saveDiagnosticImageCaptureFile')Downloads a captured Diagnostic Image.
    help('serverConfig')     Navigate to the last configuration MBean or root.
    help('serverName')       Name of the server to which WLST is connected.
    help('serverRuntime')    Navigate to the last runtime MBean or root.
    help('set')              Set the specified attribute value.
    help('setDistDestType')  Sets the distributed destination type.
    help('setOption')        Set options related to a domain creation or update.
    help('showChanges')      Show the current changes that were made.
    help('showListeners')    Show all listeners that are currently defined.
    help('shutdown')         Gracefully shut down a server or a cluster.
    help('start')            Start a Managed Server or a cluster.
    help('startApplication') Start an application.
    help('startEdit')        Start a configuration edit session.
    help('startNodeManager') Start Node Manager.
    help('startRecording')   Record all user interactions with WLST.
    help('startServer')      Start the Administration Server.
    help('state')            Return a map of servers/clusters and their state.
    help('stopApplication')  Stop an application, making it unavailable to users.
    help('stopEdit')         Stop current edit session and release lock.
    help('stopNodeManager')  Stop Node Manager.
    help('stopRecording')    Stop recording WLST commands.
    help('stopRedirect')     Stop redirection of WLST output.
    help('storeUserConfig')  Create a user configuration and key file.
    help('suspend')          Suspend a running server.
    help('threadDump')       Display a thread dump for the specified server.
    help('typeService')      TypeServiceMBean MBean.
    help('unassign')         Unassign applications or resources.
    help('unassignAll')      (Deprecated) Unassign all applications or services.
    help('undeploy')         Undeploy an application.
    help('undo')             Revert all unsaved or unactivated edits.
    help('updateApplication')Update an application configuration using a new deployment plan.
    help('updateDomain')     Update and save the current domain.
    help('username')         Name of user currently connected to WLST.
    help('validate')         Validate the changes that have been made.
    help('validateConfig')   Validate a Domain configuration.
    help('version')          Current version of WLS.
    help('viewMBean')        Display information about an MBean.
    help('writeDomain')      Write the domain configuration information.
    help('writeIniFile')     Convert WLST definitions to Python file.
    help('writeTemplate')    Write the domain template.

Tuesday, September 04, 2012

VirtualBox VM manager command line


C:\Program Files\Oracle\VirtualBox>VBoxManage.exe
Oracle VM VirtualBox Command Line Management Interface Version 4.1.20
(C) 2005-2012 Oracle Corporation
All rights reserved.

Usage:

VBoxManage [-v|--version]    print version number and exit
VBoxManage [-q|--nologo] ... suppress the logo

VBoxManage list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies|
                            bridgedifs|hostonlyifs|dhcpservers|hostinfo|
                            hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks

VBoxManage showvminfo       | [--details]
                            [--machinereadable]
VBoxManage showvminfo       | --log

VBoxManage registervm      

VBoxManage unregistervm     | [--delete]

VBoxManage createvm         --name
                            [--ostype ]
                            [--register]
                            [--basefolder ]
                            [--uuid ]

VBoxManage modifyvm        
                            [--name ]
                            [--ostype ]
                            [--memory ]
                            [--pagefusion on|off]
                            [--vram ]
                            [--acpi on|off]
                            [--pciattach 03:04.0]
                            [--pciattach 03:04.0@02:01.0]
                            [--pcidetach 03:04.0]
                            [--ioapic on|off]
                            [--pae on|off]
                            [--hpet on|off]
                            [--hwvirtex on|off]
                            [--hwvirtexexcl on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--synthcpu on|off]
                            [--cpuidset ]
                            [--cpuidremove ]
                            [--cpuidremoveall]
                            [--hardwareuuid ]
                            [--cpus ]
                            [--cpuhotplug on|off]
                            [--plugcpu ]
                            [--unplugcpu ]
                            [--cpuexecutioncap <1 -100="-100">]
                            [--rtcuseutc on|off]
                            [--monitorcount ]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--chipset ich9|piix3]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime ]
                            [--bioslogoimagepath ]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biossystemtimeoffset ]
                            [--biospxedebug on|off]
                            [--boot<1 -4="-4"> none|floppy|dvd|disk|net>]
                            [--nic<1 -n="-n"> none|null|nat|bridged|intnet|hostonly|
                                        generic]
                            [--nictype<1 -n="-n"> Am79C970A|Am79C973|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1 -n="-n"> on|off]
                            [--nictrace<1 -n="-n"> on|off]
                            [--nictracefile<1 -n="-n"> ]
                            [--nicproperty<1 -n="-n"> name=[value]]
                            [--nicspeed<1 -n="-n"> ]
                            [--nicbootprio<1 -n="-n"> ]
                            [--nicpromisc<1 -n="-n"> deny|allow-vms|allow-all]
                            [--nicbandwidthgroup<1 -n="-n"> none|]
                            [--bridgeadapter<1 -n="-n"> none|]
                            [--hostonlyadapter<1 -n="-n"> none|]
                            [--intnet<1 -n="-n"> ]
                            [--natnet<1 -n="-n"> |default]
                            [--nicgenericdrv<1 -n="-n">
                            [--natsettings<1 -n="-n"> [],[],
                                                [],[],
                                                []]
                            [--natpf<1 -n="-n"> [],tcp|udp,[],
                                          ,[],]
                            [--natpf<1 -n="-n"> delete ]
                            [--nattftpprefix<1 -n="-n"> ]
                            [--nattftpfile<1 -n="-n"> ]
                            [--nattftpserver<1 -n="-n"> ]
                            [--natbindip<1 -n="-n">
                            [--natdnspassdomain<1 -n="-n"> on|off]
                            [--natdnsproxy<1 -n="-n"> on|off]
                            [--natdnshostresolver<1 -n="-n"> on|off]
                            [--nataliasmode<1 -n="-n"> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1 -n="-n"> auto|]
                            [--mouse ps2|usb|usbtablet
                            [--keyboard ps2|usb
                            [--uart<1 -n="-n"> off| ]
                            [--uartmode<1 -n="-n"> disconnected|
                                             server |
                                             client |
                                             file |
                                             ]
                            [--guestmemoryballoon ]
                            [--gueststatisticsinterval ]
                            [--audio none|null|dsound]
                            [--audiocontroller ac97|hda|sb16]
                            [--clipboard disabled|hosttoguest|guesttohost|
                                         bidirectional]
                            [--vrde on|off]
                            [--vrdeextpack default|
                            [--vrdeproperty ]
                            [--vrdeport ]
                            [--vrdeaddress ]
                            [--vrdeauthtype null|external|guest]
                            [--vrdeauthlibrary default|
                            [--vrdemulticon on|off]
                            [--vrdereusecon on|off]
                            [--vrdevideochannel on|off]
                            [--vrdevideochannelquality ]
                            [--usb on|off]
                            [--usbehci on|off]
                            [--snapshotfolder default|]
                            [--teleporter on|off]
                            [--teleporterport ]
                            [--teleporteraddress

                            [--teleporterpassword ]
                            [--teleporterpasswordfile  |stdin]
                            [--usbcardreader on|off]

VBoxManage clonevm          |
                            [--snapshot |]
                            [--mode machine|machineandchildren|all]
                            [--options link|keepallmacs|keepnatmacs|
                                       keepdisknames]
                            [--name ]
                            [--basefolder ]
                            [--uuid ]
                            [--register]

VBoxManage import          
                            [--dry-run|-n]
                            [--options keepallmacs|keepnatmacs]
                            [more options]
                            (run with -n to have options displayed
                             for a particular OVF)

VBoxManage export           --output|-o
                            [--legacy09]
                            [--manifest]
                            [--vsys ]
                                    [--product ]
                                    [--producturl ]
                                    [--vendor ]
                                    [--vendorurl ]
                                    [--version ]
                                    [--eula ]
                                    [--eulafile ]

VBoxManage startvm          |...
                            [--type gui|sdl|headless]

VBoxManage controlvm        |
                            pause|resume|reset|poweroff|savestate|
                            acpipowerbutton|acpisleepbutton|
                            keyboardputscancode [ ...]|
                            setlinkstate<1 -n="-n"> on|off |
                            nic<1 -n="-n"> null|nat|bridged|intnet|hostonly|generic
                                     [] |
                            nictrace<1 -n="-n"> on|off
                            nictracefile<1 -n="-n">
                            nicproperty<1 -n="-n"> name=[value]
                            natpf<1 -n="-n"> [],tcp|udp,[],
                                          ,[],
                            natpf<1 -n="-n"> delete
                            guestmemoryballoon ]
                            gueststatisticsinterval ]
                            usbattach |
|

                            usbdetach |
|

                            vrde on|off |
                            vrdeport |
                            vrdeproperty |
                            vrdevideochannelquality
                            setvideomodehint [display] |
                            screenshotpng [display] |
                            setcredentials
                                           [--allowlocallogon ] |
                            teleport --host --port
                                   [--maxdowntime ] [--password password]
                            plugcpu
                            unplugcpu
                            cpuexecutioncap <1 -100="-100">

VBoxManage discardstate     |

VBoxManage adoptstate       |

VBoxManage snapshot         |
                            take [--description ] [--pause] |
                            delete | |
                            restore | |
                            restorecurrent |
                            edit ||--current
                                 [--name ]
                                 [--description ] |
                            list [--details|--machinereadable]
                            showvminfo |

VBoxManage closemedium      disk|dvd|floppy |
                            [--delete]

VBoxManage storageattach    
                            --storagectl
                            [--port ]
                            [--device ]
                            [--type dvddrive|hdd|fdd]
                            [--medium none|emptydrive|
                                      ||host:|iscsi]
                            [--mtype normal|writethrough|immutable|shareable|
                                     readonly|multiattach]
                            [--comment ]
                            [--setuuid ]
                            [--setparentuuid ]
                            [--passthrough on|off]
                            [--tempeject on|off]
                            [--nonrotational on|off]
                            [--bandwidthgroup ]
                            [--forceunmount]
                            [--server |]
                            [--target ]
                            [--tport ]
                            [--lun ]
                            [--encodedlun ]
                            [--username ]
                            [--password ]
                            [--intnet]

VBoxManage storagectl      
                            --name
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--sataideemulation<1 -4="-4"> <1 -30="-30">]
                            [--sataportcount <1 -30="-30">]
                            [--hostiocache on|off]
                            [--bootable on|off]
                            [--remove]

VBoxManage bandwidthctl    
                            --name
                            [--add disk|network]
                            [--limit
                            [--delete]

VBoxManage showhdinfo       |

VBoxManage createhd         --filename
                            --size |--sizebyte
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]

VBoxManage modifyhd         |
                            [--type normal|writethrough|immutable|shareable|
                                    readonly|multiattach]
                            [--autoreset on|off]
                            [--compact]
                            [--resize |--resizebyte ]

VBoxManage clonehd          | |
                            [--format VDI|VMDK|VHD|RAW|]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--existing]

VBoxManage convertfromraw  
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--uuid

VBoxManage getextradata     global||
                            |enumerate

VBoxManage setextradata     global||
                           
                            [] (no value deletes key)

VBoxManage setproperty      machinefolder default| |
                            vrdeauthlibrary default| |
                            websrvauthlibrary default|null| |
                            vrdeextpack null| |
                            loghistorycount

VBoxManage usbfilter        add
                            --target ||global
                            --name
                            --action ignore|hold (global filters only)
                            [--active yes|no] (yes)
                            [--vendorid ] (null)
                            [--productid ] (null)
                            [--revision ] (null)
                            [--manufacturer ] (null)
                            [--product ] (null)
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber ] (null)
                            [--maskedinterfaces ]

VBoxManage usbfilter        modify
                            --target ||global
                            [--name ]
                            [--action ignore|hold] (global filters only)
                            [--active yes|no]
                            [--vendorid |""]
                            [--productid |""]
                            [--revision |""]
                            [--manufacturer |""]
                            [--product |""]
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber |""]
                            [--maskedinterfaces ]

VBoxManage usbfilter        remove
                            --target ||global

VBoxManage sharedfolder     add |
                            --name --hostpath
                            [--transient] [--readonly] [--automount]

VBoxManage sharedfolder     remove |
                            --name [--transient]

VBoxManage guestproperty    get |
                            [--verbose]

VBoxManage guestproperty    set |
                            [ [--flags ]]

VBoxManage guestproperty    enumerate |
                            [--patterns ]

VBoxManage guestproperty    wait |
                            [--timeout ] [--fail-on-timeout]

VBoxManage guestcontrol     |
                            exec[ute]
                            --image
                            --username --password
                            [--dos2unix]
                            [--environment "= [=]"]
                            [--timeout ] [--unix2dos] [--verbose]
                            [--wait-exit] [--wait-stdout] [--wait-stderr]
                            [-- [] ... []]

                            copyfrom
                           
                            --username --password
                            [--dryrun] [--follow] [--recursive] [--verbose]

                            copyto|cp
                           
                            --username --password
                            [--dryrun] [--follow] [--recursive] [--verbose]

                            createdir[ectory]|mkdir|md
                           
                            --username --password
                            [--parents] [--mode ] [--verbose]

                            stat
                           
                            --username --password
                            [--verbose]

                            updateadditions
                            [--source ] [--verbose]

VBoxManage debugvm          |
                            dumpguestcore --filename |
                            info [args] |
                            injectnmi |
                            log [--release|--debug] ...|
                            logdest [--release|--debug] ...|
                            logflags [--release|--debug] ...|
                            osdetect |
                            osinfo |
                            getregisters [--cpu ] |all ... |
                            setregisters [--cpu ] = ... |
                            statistics [--reset] [--pattern ]
                            [--descriptions]

VBoxManage metrics          list [*|host| []]
                                                 (comma-separated)

VBoxManage metrics          setup
                            [--period ] (default: 1)
                            [--samples ] (default: 1)
                            [--list]
                            [*|host| []]

VBoxManage metrics          query [*|host| []]

VBoxManage metrics          enable
                            [--list]
                            [*|host| []]

VBoxManage metrics          disable
                            [--list]
                            [*|host| []]

VBoxManage metrics          collect
                            [--period ] (default: 1)
                            [--samples ] (default: 1)
                            [--list]
                            [--detach]
                            [*|host| []]

VBoxManage hostonlyif       ipconfig
                            [--dhcp |
                            --ip [--netmask (def: 255.255.255.0)] |
                            --ipv6 [--netmasklengthv6 (def: 64)]]
                            create |
                            remove

VBoxManage dhcpserver       add|modify --netname |
                                       --ifname
                            [--ip
                            --netmask
                            --lowerip
                            --upperip ]
                            [--enable | --disable]

VBoxManage dhcpserver       remove --netname |
                                   --ifname

VBoxManage extpack          install [--replace] |
                            uninstall [--force] |
                            cleanup

Tuesday, August 28, 2012

Oracle File/FTP adapter High Availability

Configure HA File/FTP adapter
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABCBIAH



  • Same physical Dir for cluster
  • Same shared control Dir
  • JCA settings:   MaxRaiseSize,  xa-set-transaction-timeout
  • Database table (SOAINFRA created)
  • eis/HAFileAdapter  for outbound connections pools
  • in/outBoundDataSource  jdbc/SOADataSource

  • Outbound Mutex:  outboundLockTypeForWrite 
    • memory  - in memory to synchronize the write
    • oracle - use DB sequence
    • db - non-Oracle Database schema, uses table (FILEADAPTER_MUTEX)_
    • user-defined: set new binding-properties to " "oracle.tip.adapter.file.mutex""
  • BPEL or mediator .jca file to use the eis/HAFileAdapter

Monday, August 27, 2012

WebLogic GridLink DataSource (10.3.5+) for RAC

WebLogic GridLink Datasource for RAC



http://docs.oracle.com/cd/E21764_01/web.1111/e13737/gridlink_datasources.htm#CHDIAGEF

Why GridLink?

  1. Fast failover leveraging ONS of RAC
  2. fast RAC disaster graceful response (planned, wait for TX finish;  non-planned, rollback)
        • manual rac shutdown 11.2- ends as non-planned
  3. runtime load-balance  
  4. one datasource configuration, no test on reserve needed
  5. SCAN address (single address for ONS and Listener, RAC nodes neutral)
  6. secure with Wallet
Configuration
  1. create GridLink Datasource
  2. connection properties:  WLS cluster style addresses for RAC
  3. configure ONS client connection
    • Fan enabled,  host:port
  4. secure with Wallet  
    • svr classpath
      • $MW_HOME/modules/com.oracle.osdt_cert_1.0.0.0.jar
      • $MW_HOME/modules/com.oracle.osdt_core_1.0.0.0.jar
      • $MW_HOME/modules/com.oracle.oraclepki_1.0.0.0.jar
    • Add wallet
  5. SDP for InfiniBand