WLSIFCONFIG in Windows doesnt works. Weblogic Cluster

I am trying to configure a cluster with 2 nodes in Windows WLS10.3.5.
I have configured nodemanager.properties
Interface=eth0
NetMask=255.255.255.0
and i have activated the option "Automatic Migration" of each server.
When i try to init the servers i have problems with the command "wlsifconfig.cmd". it looks that have unix commands like grep, rm, etc...
¿Anyone have the correct command for windows?
thanks a lot

I changed the name of the Interface to eth0.
The problems is unix commands in windows commands. This is my wlsifconfig.cmd
@ECHO OFF
if defined DEBUG @echo on
@REM
@REM Additional commands to support node manager ip migration.
@REM
@REM Parse command and options
if [%1]==[] CALL :usage_error
set COMMAND=
set INTERFACE=
set ADDRESS=
set NETMASK=
set ERRORLEVEL=
if [%1] == [-addif] (
set COMMAND=addif
set INTERFACE=%2%
set ADDRESS=%3%
set NETMASK=%4%
if not defined INTERFACE call :usage_error
if not defined ADDRESS call :usage_error
if not defined NETMASK call :usage_error
if [%1] == [-removeif] (
set COMMAND=removeif
set INTERFACE=%2%
set ADDRESS=%3%
if not defined INTERFACE call :usage_error
if not defined ADDRESS call :usage_error
if [%1] == [-listif] (
set COMMAND=listif
set INTERFACE=%2%
if not defined INTERFACE call :usage_error
@REM Must have specified at least one command
if not defined COMMAND CALL :usage_error
set NullDevice=nul
@REM *********************************************************************
@REM Set this to true if IP address should not be online before starting
@REM a server. Otherwise, presence of an IP address in an interface will
@REM cause the script to report success on IP addif
set ENABLESTRICTIPCHECK=N
if not defined ServerName set ServerName=myserver
if not defined ServerDir set ServerDir=%CD%
if not exist "%ServerDir%\data\nodemanager" mkdir "%ServerDir%\data\nodemanager"
set addrFile=
set addrFile=%ServerDir%\data\nodemanager\%ServerName%.addr
call :%COMMAND%
GOTO :EOF
@REM --- Start Functions ---
@REM *********************************************************************
@REM Show an error if the address does not show up in the address file
:address_error
SETLOCAL
ECHO Cannot remove %ADDRESS% - not brought online >&2
exit 1
@REM *********************************************************************
@REM Remove the given address from the interface specified
:removeif
SETLOCAL
@REM Store the contents of the address file as the %addr% var
if exist "%AddrFile%" (
grep %ADDRESS% %AddrFile% > null || call :address_error
netsh interface ip delete address %INTERFACE% addr=%ADDRESS%
set remExitVal=%ERRORLEVEL%
if not %remExitVal% == 0 (
echo Unable to remove %ADDRESS% - Check command output for more details >&2
call :cleanupAddressFile
exit %remExitVal%
echo Successfully removed %ADDRESS% from %INTERFACE%.
call :cleanupAddressFile
GOTO :EOF
@REM *********************************************************************
@REM Show the correct message (info or error) if the given address is already
@REM on the specified interface. This is normally an informative message
@REM unless ENABLESTRICTIPCHECK is set to something other then the default 'N'.
:already_online
if [%ENABLESTRICTIPCHECK%] == [N] (
echo %ADDRESS% already online on %INTERFACE%. Please make sure that the IP address specified is not used by other servers/applications. Continuing...
) ELSE (
echo %ADDRESS% already online on %INTERFACE%. Please make sure that the IP address specified is not used by other servers/applications >&2
call :cleanupAddressFile
exit 1
GOTO :EOF
@REM *********************************************************************
@REM Show that an error occured calling the netsh utility
:add_error
SETLOCAL
echo Failed to bring %ADDRESS% with %NETMASK% online on %INTERFACE% >&2
echo Check command output for more details >&2
exit 1
ENDLOCAL
@REM *********************************************************************
@REM Add the given address to the specified interface
:addif
SETLOCAL
set newif=
netsh interface ip show address %INTERFACE% | grep -e '[^      ]*IP' > tmp_ip_file
for /F "usebackq tokens=3" %%G in ( tmp_ip_file ) do (
if %%G == %ADDRESS% set newif=already-online
if not defined newif set newif=unmatched
del tmp_ip_file
if [%newif%] == [unmatched] (
call :addnew
) ELSE call :already_online
if exist "%AddrFile%" call :cleanupAddressFile
echo %ADDRESS%>> "%AddrFile%"
ENDLOCAL
GOTO :EOF
@REM *********************************************************************
@REM For some reason catching the error value has problems when it is not in
@REM its own subroutine. Setting addExitVal in the :addif routine leaves the
@REM variable as undefined causing extra error messages in the script output
@REM
:addnew
SETLOCAL
netsh interface ip add address %INTERFACE% %ADDRESS% %NETMASK%
set addExitVal=%ERRORLEVEL%
if not %addExitVal% == 0 call :add_error %addExitVal%
echo Successfully brought %ADDRESS% with %NETMASK% online on %INTERFACE%
ENDLOCAL
GOTO :EOF
@REM *********************************************************************
@REM Check the %AddrFile% for %ADDRESS% and if it is there, then call the
@REM subroutine to delete it
@REM
:cleanupAddressFile
SETLOCAL
if exist "%AddrFile%" (
grep -x %ADDRESS% %AddrFile% > nul & CALL :removeAddressFromFile
ENDLOCAL
GOTO :EOF
@REM *********************************************************************
@REM Delete %ADDRESS% from the %AddrFile%
@REM
:removeAddressFromFile
SETLOCAL
set tmpAddr=addresses.tmp
for /F "delims=" %%a in (%AddrFile%) DO (
if not %%a == %ADDRESS% (
     echo %%a>> %tmpAddr%
del -f %AddrFile%
if exist %tmpAddr% (
move %tmpAddr% %AddrFile%
del -f %tmpAddr%
ENDLOCAL
GOTO :EOF
@REM *********************************************************************
@REM List the IP addresses that are currently on the interface
:listif
netsh interface ip show address %INTERFACE% | grep -e '[^      ]*IP'
GOTO :EOF
@REM *********************************************************************
@REM Show the correct usage of this script in the instance that someone
@REM called the script incorrectly
:usage_error
ECHO Usage: wlsifconfig.cmd >&2
ECHO -addif {interface-name} {ip-address} {netmask} >&2
ECHO -removeif {interface-name} {ip-address} >&2
ECHO -listif {interface-name} >&2
ECHO 'addif' adds {ip-address} to next available sub-interface of {interface-name}. >&2
ECHO 'removeif' removes {ip-address} from sub-interface of {interface-name}. >&2
ECHO 'listif' lists last used sub-interface of {interface-name} and its corresponding {ip-address} >&2
ECHO To grep the list of interfaces, use your following command to list the interface names- >&2
ECHO netsh interface show interface. >&2
exit -101
GOTO :EOF
:ENDFUNCTIONS
@REM --- End Functions ---

Similar Messages

  • Acs for windows doesnt work with w2k8

    Hi Folks
    I have win 2008 server as DC,
    i have installed acs 4.2 on menber server (win 2003) , but it doesn't work, how to let this one work , any patch for that
    thanks

    Hi,
    Inorder to support windows 2008 you need ACS 4.2.0.124 patch 4.
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.2/release/notes/ACS42_RN.html
    If you have a windows 2k8 R2 as DC, then you need an ACS 5.2
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.2.1/Installation_Guide/windows/install.html#wp1041324
    Hope this helps..
    Regards,
    Anisha
    P.S.: please mark this thread as answered if you feel your query is resolved. Do rate helpful posts.

  • Powerpoint window doesnt work but when i minimize the windows open i can see it, how do i get powerpoint to work so i can create slides?

    I have a mac book pro and iOS 6.0.3 and have not tried anything to fix it yet because i do not know where to start

    Suggest you ask in the Microsoft Office:Mac forums here:
    Office for Mac forums
    When you post there, first correct your Mac OSX version. "iOS" cannot run on any computer, just Apple mobile devices. Doing "About this mac" from your Apple menu will show your Mac OSX version:
    Also tell them the version of Office you are using. For a macBook Pro, it is either Office 2008 or Office 2011.

  • Creative WebCam Vista Plus on USB PCI Card (VIA VT 6212) on Windows ME - doesnt work !!

    PC turns off when the Vista Plus WebCam is connected to the USB port on my USB PCI Card
    I use a primitive Intel Celeron 300Mhz processor with 64MB RAM on an Intel 440BX-AT Chipset running on Window ME. I recently installed a USB PCI Card (based on the VIA VT 622 chipset) which is a 394/USB 2.0 Combo. The problem is my 'Creative WebCam Vista Plus' doesnt work with it.
    After I had installed the drivers on the 'Creative WebCam Vista Plus' CD - that is - without connecting the webcam to my USB PCI card the installation asks me to connect the webcam to the USB port and When I do that the PC just GOES OFF !
    It starts up only in SAFE MODE and each time I've got to restore my PC.
    How do I get the WebCam connected to my PC ?
    Thanks in advance
    Message Edited by Prabhats on 01-19-2007 08:34 AM

    9hours later and Ive given up. I cant get the Vista 64 Ultimate to work with the Audigy 2Nx usb sound card. Im very angry and very frustrated (not to mention very tired from the 2 late nights Ive spent trying to work it out). Im not a PC-noob, but am only 4days into my Vista ownership................... Im guessing now, after much research, that there will never be a driver that gets these units to work with Vista 64bit. thats pretty weak Creative. However, I dont want to use crappy onboard sound for my gaming.What is the suggestion?Should I be looking at returning this unit, and buying either the X-Fi Xtremegamer?Fatality Pro as?a highend device, or the X-Fi Xtremegamer for $00 less? Or should I be looking at another manufacturer. Would either of these x-fi gamers work with Vista 64bit Ultimate?suggestions please?

  • Airport setup asst. doesnt work.  Is there way to use Windows to add airpor

    Airport setup asst. doesnt work. Is there way to use Windows to add airport express to my current linksys network so that my iTunes will play through my stereo?
    Previously the air-assit recognized the air-exp unit but kept asking for a password to continue. I tried passwords like admin and public but nothing worked. Then Windows network connections kept trying to connect my laptop to the internet using the air-exp. Don't remember what I did to fix that problem but now my laptop doesn't try using it to connect me to internet anymore.
    However, now air-asst. doesn't read the air-exp anymore. Windows network connections DOES read it now but doesn't try to use it anymore to connect me to the internet.
    I have a linksys WAP and separate linksys router. If memory serves, when I firt got the air-exp about 6 months ago I could not connect either and Apple tech support had to help me. I think, but not sure, they had me use Windows to add the air-exp to my wireless network. Also if my memory serves me, but not sure, I had to type in either some IP or MAC addresses in order to get the air-exp to connect to my existing network. I DO remember thinking after it was finally working that "Wow, this is definately NOT a plug and play thing." It wasn't very easy to set up.
    I lost my laptops wireless connection last week and couldn't connect to my network and had to call linksys tech support. They had me input a new IP and DNS address because somehow my laptop "lost" the previous ones. Since then I have not been able to use my air-exp to connect to my stereo.
    I have called Apple tech support but since my 90 days is up they want to charge me $49.95 for up to five days worth of tech support. Which I think is a rip off becau linksys will help you out at anytime for fee but that's a topic for another discussion group. Common Apple, how about a $10 charge for one day of tech support, or even just 15 minutes worth to get my gear working again?
    Anyway, if anyone knows of any on-line walkthroughs of how to deal with these airport express set-ups or problems please let me know. Or, of course if anyone can walk me through this that would be even better. THANKS

    Thank you for your help.
    When I run air-util a window called base station chooser comes up and all the fields are blank. When I push "re-scan" nothing happens. When I push "other" a window pops up asking for IP address and password. I typed in the IP address given to me from Linksys tech and tried to move on but it came back asking me to fill in the password. I tried the default linksys password "admin" but it came back with an error.
    Do I hard (factory) reset the air-express by simply pushing the reset button or do I have to hold it in while I plug it in or simply push the button for a certain length of time?
    Thanks again.

  • Since I updated to firefox 5.0, the windows media player plug in for firefox doesnt work anymore :(

    Ok I recently upgraded to firefox 5.0, and then when I went to a website that uses windows media player to watch videos and news reports, it said I needed to download the windows media player plug in for firefox. And yet I had already done that in the past. So it directs me to the plug in for windows media player 11, I download and install and it doesnt work. Website repeats the same message, you need to download plug in. It was working fine with firefox 4.0! I use the OS Windows 7, 64bit. Any help please?

    Yes I did, at first it identified it as already there, so it gave the option of repairing it, etc, so I uninstalled the Windows Media Player, then Installed it again, and it still doesn't seem to work! I have the same problem with several other plug ins, in the add ons and plug in section of Mozilla tools, I see that say, "incompatible with firefox 5.0" but as days go by those add-ons, that are built by those other websites seem to be repairing it, but I wanted to know for something as important as windows media player plug in, am I the only one getting this problem? :/

  • Trying to install the newest version of itunes on my pc and am getting  "program cant start because msvcr80.dll is missing from your computer"  reinstalling doesnt work.  and then it says error 7 (windows error 126)

    trying to install the newest version of itunes on my pc and am getting  "program cant start because msvcr80.dll is missing from your computer"  reinstalling doesnt work.  and then it says error 7 (windows error 126).  Any help would be appreciated.  Using Windows 7 enterprise on an hp Z600

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Why doesn`t my webmail notifier from mozilla check a yahoo address? It always shown the verification window and even if i type the catcha it still doesnt work?

    Why doesn`t my webmail notifier from mozilla check a yahoo address? It always shown the verification window and even if i type the catcha it still doesnt work?

    The support forum for that extension is here: <br />
    http://webmailnotifier.mozdev.org/drupal/forum/

  • I have upgraded to the latest firefox v7.0.1 for windows, when i click on its icon it doesnt open up? I uninstalled it and then reinstalled it but nothing happend it still doesnt work?

    I have upgraded to the latest firefox v7.0.1 for windows, when i click on its icon it doesnt open up? I uninstalled it and then reinstalled it but nothing happend it still doesnt work?

    Sorry you are having problems. First of all try Fifrefox's safemode.
    *[[Troubleshoot Firefox issues using Safe Mode]]
    If that works post back for further advice.
    Next step, if safe mode did not work.
    <u>First: Try a clean install, <sub>(you have had a none standard version installed previously)</sub></u><br /> that involves deleting the program files. Then if necessary try troubleshooting by creating and using a clean empty Firefox profile.
    See
    * this recent post [/questions/940399#answer-377134]
    * http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
    <u>Second: try a New Profile</u>
    *http://kb.mozillazine.org/Profile_Manager#Creating_a_new_profile
    * this will be an additional profile, it is still worth backing up any existing or currently working profile on a regular basis
    **[[Back up and restore information in Firefox profiles]]
    * Until you are absolutely confident about the repercussions I suggest
    ** always use an empty folder when creating a new profile
    ** never delete or rename profiles, just disable or remove shortcuts
    ** after creating a new test profile open it and check for any addons or plugins that may be have been included by default

  • The left side of my ipad mini doesnt work. When i long press an app to transfer to previous window, it doesnt move to the previous one. It only happens when in portait position.

    The left side of my ipad mini doesnt work. When i long press an app to transfer to previous window, it doesnt move to the previous one. It only happens when in portait position. 

    Hope someone can help me

  • My computer keeps saying that itunes is not working so i updated my windows and reinstalled itunes but it still doesnt work what do i do?

    my computer keeps saying that itunes is not working so i updated my windows and reinstalled itunes but it still doesnt work what do i do?

    This link will give service options for your Country ,select from drop down menu
    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=iph one
    To troubleshhoot restore see document below
    http://support.apple.com/kb/HT1808

  • Spdif/Micro/Line in doesnt work on Windows 7

    Hi,
    i have a Problem... after Install Windows 7? my Micro/Line In? Port? Doesnt Work on Windows 7? with my SB 730A? X-Fi-Extreme Gamer!
    before i installed win7, I use Win Xp with no Problems !
    If i use the Onboard Soundcard without the Soundblaster Card, the Microfon Jack work perfect !
    I use the newest drivers for the Soundblaster Card [url="http://support.creative.com/Products/ProductDetails.aspx?catID=&CatName=Sound+Blaster&s ubCatID=208&subCatName=X-Fi&prodID=5853&prodName=X-Fi+XtremeGamer#">X-Fi-Serie 2.8.003 [/url]
    My system:
    ?<div class="gaming_rig_content">MMX3DNow (2 CPUs), ~3.GHz?
    <div class="gaming_rig_content">AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ (2 CPUs), ~3.GHz?<div class="gaming_rig_content">520MB RAM?<div class="gaming_rig_content">360 GB Total?<div class="gaming_rig_content">NVIDIA GeForce 9500 GT?<div class="gaming_rig_content">LG W2242T?
    <div class="gaming_rig_content">SB X-Fi Extreme Gamer Audio?<div class="gaming_rig_content">Hama 5. Headset HS 50?<div class="gaming_rig_content">Logitech G 5 Game - Keyboard?
    <div class="gaming_rig_content">Logitech MX 000 Laser?<div class="gaming_rig_content">Razer Destructor?<div class="gaming_rig_content">Windows 7 Ultimate 64-bit (6., Build 700) (700.winmain_win7rc.09042-700)Mainboard:
    <div class="gaming_rig_content">ASUS? M4N78

    You might want to uninstall things completely, then reinstall 5.9.4. Upgrading software sometimes goes awry, and security related software is more sensitive than other software.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • My GX630 doesnt work properly on Windows Vista 64 bit

    Hi,
      I have problem with my GX630, its doest work properly at W Vista 64 bit, exactly Sleep mode ... its imposible to awake my computer nd I have to turn it off and than on to wake it up ...
      those buttons Turbo nd Eco mode doesnt work.
      sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ...
    some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ...
    I would be pleased if someone could help me up to this topic or to my email (removed to protect user privacy) or ICQ (115-378-414)  thank to all of you Jabu

    "sometimes happen that i get blue error screen and reset but I dont know why ... it wrotes something with some .dll file ... "
    What is the BSOD error code? What .dll ? Write down the exact error.
    Do you OC your notebook?
    "some people told me that its error is caused by that thing that there are no drivers for 64 vista yet ... "
    Install Drivers from MSI web:
    http://global.msi.eu/index.php?func=downloaddetail&type=driver&maincat_no=135&prod_no=1513
    "those buttons Turbo nd Eco mode doesnt work."
    You need SCM: http://global.msi.eu/index.php?func=downloaddetail&type=utility&maincat_no=135&prod_no=1513
    But x64 bit is N/A.
    Why you use x64bit version anyway? Why not 32bit?

  • Who takes care of load balancing work in weblogic cluster ?

    Hi Folks,
    How load balancing is handled internally by weblogic cluster ? Does Admin server takes care of cluster load balancing ? According to me Admin has nothing to do with load balancing in cluster . Manage server continue to run even when Admin server is down.
    I am not looking for explanation about different load balancing algorithm. I am interested in who executes those algorithms in weblogic cluster and how .
    Cheers
    B.

    Hi,
    You need to configure loadbalancer and there are different ways to do this. Please go through the below thread to user Apache Loadbalancer.
    problem with Apache Proxy plugin
    Regards
    Suresh.

  • Singletons in WebLogic cluster

    In my clustered EJB application, there are 3 stateless session beans that need to run as singleton services on exactly one node. So I implemented the interface weblogic.cluster.singleton.SingletonService in these beans with the activate and deactivate methods. The beans and all classes of the application are contained in an ear file I deploy to the entire cluster. Then I configured the bean classes as singletons using the WebLogic console administration (cluster details -> singleton service). After I activated this in changes center, I see a ClassNotFoundException with the class name of one of the beans. So I extracted the ear file to the domain/lib directory, restarted the server and tried again to configure the singleton classes. This time the activation failed because of another reason (HibernateException). I think the reason is, this operation is done in the context of my administration server, not of the cluster server. It seems this doesn't work.
    Is it possible to deploy the EJB application with the beans as singletons?
    I already found another solution: to set the maximum number of beans in weblogic-ejb-jar.xml, field max-beans-in-free-pool, to 1. This solution is a little bit dirty, after starting the servers, I get an exception on all other nodes complaining that it is not possible to deploy this bean. What I don't know: how would it be handled, if the node with the deployed beans is shut down? Are the beans deployed on the other nodes automatically (as I expect for singleton services) or keep undeployed?
    Thanks in advance!
    BTW: I'm using WebLogic 10.3 on Windows.

    Maybe this will help: http://middlewaremagic.com/weblogic/?p=5799
    Also to make Hibernate run on WebLogic you have perform certain steps, there is
    problem with the antlr version that ships with Hibernate as another version of
    antlr is already loaded in the system classpath of WebLogic.
    Some instructions are presented here: http://middlewaremagic.com/weblogic/?p=5861

Maybe you are looking for

  • PDFMaker Server cannot be loaded

    Acrobat 7.0.1 Word 2003 XP SP2 PDFMaker is unavailable from Word, PowerPoint, Excel, and Publisher. I get the error message "PDFMaker Server cannot be loaded." Running the Intaller in repair mode has no effect. PDFMaker is NOT listed as disabled (Abo

  • 802.1x with EAP-TLS and dACLs

    Hi, i'm looking to enable 802.1x on the wired network using EAP-TLS. The radius server will be an ACS5.2 running on the appliance. We'd also need some authorization for different machines - we'd like to use dACLs for that so that machine A will get f

  • Clarification on manual updating....

    I just want to make sure I'm clear on this before I do something and lose all my songs. I've loaded all of my cds onto my iPOD (close to 6000 songs). My wife thinks that having so many tunes in iTUNES is slowing down our computer. In the name of dome

  • After attaching  zip file in cv01n its not getting saved

    after attaching  zip file in cv01n its not getting saved

  • Can't install PSE 2.0 onto Windows 7

    I'm using an external disk drive. (I asked a different question a little while ago saying it would not show up, but I can't find the discussion.) Now the program does show up and I copied the program to the desktop. But it keeps saying that my subins