OpenVPN - up/down scripts not run correctly

Hi,
I have a OpenVPN client on my computer which connects to a remote server at startup (launched by systemd). The connection i primarily used to set up a network drive. To make this process as smooth as possible I'm trying to mount with an up script and unmount with an down script. This is my config:
client
dev tun
proto udp
remote site.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca site.crt
cert site.crt
key site.key
comp-lzo
verb 3
reneg-sec 0
script-security 3
route-up /etc/openvpn/up.sh
route-pre-down /etc/openvpn/down.sh
(last two lines)
In theory, up.sh should execute when the connection is initialized and the routes are in place. And down.sh should run when the connection is still active just before the routes are removed. This seems to be the case in the log:
Sat Mar 22 08:37:50 2014 OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Nov 13 2013
Sat Mar 22 08:37:50 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sat Mar 22 08:37:50 2014 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Mar 22 08:37:50 2014 WARNING: file 'site.key' is group or others accessible
Sat Mar 22 08:37:50 2014 Socket Buffers: R=[212992->131072] S=[212992->131072]
Sat Mar 22 08:37:50 2014 UDPv4 link local: [undef]
Sat Mar 22 08:37:50 2014 UDPv4 link remote: [AF_INET]xxx:1194
Sat Mar 22 08:37:50 2014 TLS: Initial packet from [AF_INET]xxx:1194, sid=cc55bb26 51a6f522
Sat Mar 22 08:37:50 2014 VERIFY OK: depth=1, C=SE, ST=Stockholm, L=Stockholm, O=xxx, CN=xxx CA, emailAddress=xxx
Sat Mar 22 08:37:50 2014 VERIFY OK: depth=0, C=SE, ST=Stockholm, L=Stockholm, O=xxx, CN=xxx, emailAddress=xxx
Sat Mar 22 08:37:50 2014 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Mar 22 08:37:50 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Mar 22 08:37:50 2014 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Mar 22 08:37:50 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Mar 22 08:37:50 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Mar 22 08:37:50 2014 [xxx] Peer Connection Initiated with [AF_INET]xxx:1194
Sat Mar 22 08:37:52 2014 SENT CONTROL [xxx]: 'PUSH_REQUEST' (status=1)
Sat Mar 22 08:37:52 2014 PUSH: Received control message: 'PUSH_REPLY,route xxx 255.255.255.0,route xxx 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig xxx xxx'
Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: timers and/or timeouts modified
Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: --ifconfig/up options modified
Sat Mar 22 08:37:52 2014 OPTIONS IMPORT: route options modified
Sat Mar 22 08:37:52 2014 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 IFACE=eth0 HWADDR=ec:a8:6b:ff:de:31
Sat Mar 22 08:37:52 2014 TUN/TAP device tun0 opened
Sat Mar 22 08:37:52 2014 TUN/TAP TX queue length set to 100
Sat Mar 22 08:37:52 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Mar 22 08:37:52 2014 /usr/bin/ip link set dev tun0 up mtu 1500
Sat Mar 22 08:37:52 2014 /usr/bin/ip addr add dev tun0 local xxxpeer xxx
Sat Mar 22 08:37:52 2014 /usr/bin/ip route add xxx via xxx
Sat Mar 22 08:37:52 2014 /usr/bin/ip route add xxx via xxx
Mounting network drives...
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sat Mar 22 08:38:12 2014 Initialization Sequence Completed
^CSat Mar 22 08:38:18 2014 event_wait : Interrupted system call (code=4)
Sat Mar 22 08:38:18 2014 /etc/openvpn/down.sh tun0 1500 1542 xxx xxx init
Unmounting network drives...
Sat Mar 22 08:40:22 2014 /usr/bin/ip route del xxx
Sat Mar 22 08:40:22 2014 /usr/bin/ip route del xxx
Sat Mar 22 08:40:22 2014 Closing TUN/TAP interface
Sat Mar 22 08:40:22 2014 /usr/bin/ip addr del dev tun0 local xxx peer xxx
Sat Mar 22 08:40:22 2014 SIGINT[hard,] received, process exiting
But here's the problem. The up script will not mount because it doesn't seem to be able to reach the network. The routes ARE there (checked via netstat -rn in the up script) but it will not work. It works perfectly if I run the script maually diretly after OpenVPN is done. And the down script (which unmounts the drives) just hangs because the connections seems to be interrupted.
So, how can make it work so that mount and umount is handled by OpenVPN? Am i missing something?

Managed to get around the problem using systemd:
[Unit]
Description=OpenVPN connection to %i
[Service]
Type=forking
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i
ExecStartPost=/root/scripts/mount.sh
ExecStop=/root/scripts/umount.sh
[Install]
WantedBy=multi-user.target
...but I think it's cleaner to do it in the openVPN config, so I still like some help there :-)
Last edited by twarkie (2014-03-22 15:37:49)

Similar Messages

  • Firefox is taking a long time to open. When it does open, I get a pop up box with "Script not running". Bookmarks on my tool bar don't load. Scrolling is unreliable--it will stop in the middle of a page

    What is causing the "script not running"? Why so long to open? Etc.

    Hi Donekes,
    First off I need a little more information to help with troubleshooting.  You say that an error occurs when you "try to re-open the same problem app before the old session completely exits".  Does the error have an error code or dialog display?  It may also be possible to receive an error log.  Here is a knowledge base that explains how to retrieve error logs.
    http://digital.ni.com/public.nsf/websearch/54E361E3FF477EC186256C320068184F?OpenDocument
    If you are able to get that information then please post.  Have a good day.
    Brian K.

  • REPORT DOES NOT RUN CORRECTLY , URGENT PLEASE HELP

    Hi,
    I am trying to run a report from visul basic screen, but it does not run correctly. Here is how I am running the report. There is a screen developed in VB This screen prompts the user for user id and password. Once it gets that, it connects to the oracle database and pulls out a column from a table. And passes that value as a parameter to the report. Now I am calling the the report for each individual value . There are 21 value being pulled out of the database and it invokes the report 21 times. So there are 21 report engines gets started. Is there a better way to do that ? Secondly when I pass the parameter , some parameters does not pass correctly I guess , because its not generating any out put . Like out of 21 may be 10 or 11 reports gets generated correctly but rest of the reports are blank. I debug the screen i saw that the parameter value is correct, everything seems good. But still the reports are comming blank. Any Idea why it is so ? The command line that i am using in VB screen is
    Shell "C:\progra~1\ora95_2\bin\rwrun60.exe P:\Business_Analysis_&_Reporting_Tool\Test_REPORT_Templates\STORE_TYPES\Baby_Distribution_Report.Rdf USERID=" & UID & "/" & PWD & "@cposp201 DESFORMAT=PDF DESTYPE=FILE DESNAME=" & txtPath.Text & Replace(strName, " ", "_") & ".PDF BRND='" & adoRecBrand!Brand & "' PRINTJOB=NO PARAMFORM=NO"
    In the above command " adoRecBrand!Brand " is the parameter thats being passed. This is actually a recordset and brand is the column in it. When I debug the screen , I see the value also there. But the report comes out blank. Please help. This is urgent.
    Thanks
    Feroz

    The way you call reports is not scalable. If you have 100 records come back from database, you would end up launch 100 engines at the same times, which probably will blow up your machine. You should use oracle reports server to do that. You can either use rwcli60 to submit the job to reports server, or invoke rwcgi60 from URL.
    I am afraid some of reports engine failed to start and you get nothing back in your case.
    After switch to use reports server achitecture, if you still see some report is blank in your application, then you can run that report with that special set of parameters manually and see if any problem with the report itself.
    Hope this helps.
    Thanks,
    -Shaun

  • Since installing Yosemite my Quarkxpress 10 is not running correctly. Too slow or crashes. How do I uninstall Os X Yosemite without losing all of my designs?

    Since installing Yosemite my Quarkxpress 10 is not running correctly. Too slow or crashes. How do I uninstall Os X Yosemite without losing all of my designs?

    Thank you Thomas
    First, for changing my question to the right forum. I am new on this and wasn't aware I was in the wrong forum.
    Secondly, even though my initial question is not answered as in: I just want to remove Classic, what you say is right. I think now, after writing my long question and seeing your answers, that I should start from scratch.
    To answer your question, I bought the new drive to be able to store and back up into DVDs and CDs all the photographs and movies that are still in the computer. I also need to make CDs of my portfolio since I am trying to find a new job and buying a new Mac at this point is out of the question. To upgrade the computer: I just do not have use for OS 9 anymore; I cannot upgrade to the latest Java, Safari or have issues with Flash or other programs; the programs that I have and need will still run perfectly fine or better in Leopard. And even if I could buy another computer I would still like to hang onto this computer for a while.

  • My device is not running correctly as my simulator

    Hi,
    I just downloaded and installed new Xcode 3.2 in my Mac.
    Everything is correct with my simulator except my device which is not running correctly.
    From Organizer, my iPhone Software version is 3.1(7C144), when I run Simulator 3.1 is correct, but not with device 3.1, could someone help me ?
    Thanks.
    parislee

    parislee wrote:
    Hi,
    I just downloaded and installed new Xcode 3.2 in my Mac.
    Everything is correct with my simulator except my device which is not running correctly.
    From Organizer, my iPhone Software version is 3.1(7C144), when I run Simulator 3.1 is correct, but not with device 3.1, could someone help me ?
    The advisory info below* is different than the previously mentioned string:
    ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0 (7A341) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1
    I'm not sure which issue you are addressing or which fix you are using or which you need now, sorry but the recent notice below may be of some use. Please study to decide where you're at now before proceeding, thanks.
    -=-=-=-
    http://adcdownload.apple.com/iphone/iphonesdk_3.1__final/iphone_os_3.1.1advisory.pdf
    *iPhone OS 3.1.1 Advisory iPhone SDK 3.1 and iPhone OS 3.1.1 for iPod touch (3rd generation)
    If you installed iPhone SDK 3.1 prior to September 21st, 2009, please perform the following to continue development with your iPod touch (3rd generation).
    The following does not need to be performed if you are developing with any iPhone, iPhone 3G, iPhone 3GS, iPod touch 1st or 2nd generation.
    1. Log into your Mac with an Admin account and launch the Terminal application (/Applications/Utilities)
    2. Copy and paste the following line into Terminal ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.1 (7C145) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.1 (7C146)

  • Web pages will not run correctly, says need Java- L505d-S6957

    I have a new L505D-S6957 running the Windows 7 upgrade 32-bit.  I have tried using Firefox and IE8.  Both browsers seem to not run Java or not run correctly if so.  Though when I check my Java it is latest and installed.  Buttons on web pages and photos do not load or run.  I have tried re-loading the Java, the browsers, and about anything else I can think of. Some web pages load jumbled as if without any margin. 
    Can anyone help me determine what is going on here?  Some of my favorite web pages do not work and one will not even log me on.  I could not log on to this website to get this help.  It keeps returning back to the login screen after I try to login.  However, I was able to login here on the first try on another computer.  Thanks for any help on this matter.
    Ty

    Satellite L505D-S6957
    Use these.
       How do I uninstall Java on my Windows computer ?
       How do I manually download and install Java for my Windows computer?
       Java Help Center
    -Jerry

  • In my pc  my  AIR app  run correctly but when i try to open it in other pcs not run correctly

    hi friends
    any one can help me please...
    i had created air app very nice about my school ,so after i build the application and test it in my pc its run correctly without problems, but when i to try open after installed  it
    in other pcs the program not run correctly exactly show me empty window with progress dots like this :
    with my respects

    What are you expecting to display? Is it data? Images?
    It's possible that you've written your code such that it references a path on YOUR specific machine. Always try to avoid references to C:/ or /<yourUserName>/someFolder as you're not guaranteed that they'll exist on other machines.

  • VB startup script not running on Win7

    Hi,
    my startup VB script not working on Windows 7. The script should install or uninstall office 2010 based on group membership. 
    I tested scipt on Windows XP and everything works. When I run script manually, it works.
    Quite similiar batch file works, office are installed but not same functionality for me.
    I turn UAC off, bot not working.. Also add dword EnableLinkedConnections  but nothing change.
    Batch file works but VBScript not!
    Any advice? Thx

    Hi Tomas Cink,
    Based on my understanding, the start VB script which is deployed via GPO could not works fine on Windows 7 clients, although it can works fine on Windows XP clients and it can
    run sucessfully if manually. Right?
    Firstly, please run the following command on the problematic workstation.
          Gpresult /h > C:\temp\gpresult.html  (“C:\temp\” is the path of the gpresult.html, you can set it by yourself)
    This file is used for checking the result of Group Policy information. Open the file to check if the GPO has applied.
    If the GPO has applied, please follow the following step to narrow down the issue:
    Change the script to the following command: add  > %SystemDrive%\Users\test.txt
    to the script.
    Log on to a client with a regular user account, run
    gpupdate/force, and then re-log on to this client.
    Check if the test.txt file exists in this location
    %SystemDrive%\Users.
    If the
    test.txt file exists, the GPO with startup script is applied successfully. But the result of running logon script achieves the goal we excepted or not which is still not sure.
    Regards,
    Lany Zhang

  • Server side script not running on stand-alone XE

    Hello,
    In my application I created a Server side script (AJAX) which presents a select-list based on other fields on the page. The very same application runs on a 10g+APEX3.0.1 database AND on a standard XE+APEX2.1 database, which are both accessed via a HTTP-server. The application with the script runs fine on this platform (XP).
    I have two other XP-machines on which I also installed XE+APEX2.1. Both are stand-alone versions NOT accessed via a HTTP-server. I installed exactly the same application which runs on the platform with HTTP server on both of the machines. While testing the correct functioning, I noticed that everything works ok, EXCEPT the server side script which gives me a better select list. Instead of this I get the old-fashioned version of the select-list which is not able to use the value elsewhere on the page.
    I found a similar problem on the XE forum (Re: Server side scripts features ) but it doesn't answer my question how to get the script working on a standalone version of XE (= without access via a HTTP-server).
    Can anybody please help me?
    Thanks & regards,
    Jan.
    Message was edited by: Jan
    J. Hulsing

    Carl,
    Thanks for your suggestion to install FireFox and the Firebug tool (which I wasn't aware of).
    After having looked at the problem for hours, I found what I think is the problem: the htmldb_html_elements.js script.
    As already mentioned, the properly functioning XE on my local PC is accessed via a HTTP-server, as well as the 10gR2+APEX3.0.1 version also running on that PC.
    On the laptop, not running HTTP-server, I get the message: <br>
    <FONT COLOR="RED">$x is not defined <BR>
    <FONT COLOR="BLUE"> f_21_select_kpn<FONT COLOR="RED">(<FONT COLOR="BLUE">input<FONT COLOR="BLACK">#P21_GBREKNR 405<FONT COLOR="RED">, "P21_KOSTENPOST") <BR>
    <FONT COLOR="BLUE">onblur<FONT COLOR="RED">(<FONT COLOR="BLACK">blur <FONT COLOR="RED">)
    </FONT><BR>
    That is in the 'Console' of Firebug.
    When changing to Script I do see a remarkable difference.
    On the PC there the following text is found in the first lines of htmldb_html_elements.js:
    /*htmld_elements will contain the lower level html access js*/<br>
    var gDebug = true;<br>
    var gkeyPressTime;<br>
    var gLastTab=false;<br>
    var gRegex=false;<br>
    var ie=(document.all)?true:false;<br>
    if(ie){document.expando=true;}<br>
    var gDebugWindow = false;<br>
    /*<br>
    $x functions have to do with either single elements or array of elements<br>
    $v functions have to have to do with manipulating values or interaction based off a value<br>
    $xml function have to do with manipulating xml values<br>
    $a functions are based on ajax<br>
    $d functions are specific dhtml constructs<br>
    */<br>
    /* begin $x functions */<br>
    function $x(pNd){<br>
    try{<br>
    var node;<br>
    ...<br><br>
    On the laptop however the first few lines are:<br><br>
    /*htmld_elements will contain the lower level html access js*/<br>
    <br>
    var gDebug = true;<br>
    var gkeyPressTime;<br>
    var gLastTab=false;<br>
    var gRegex=false;<br>
    if(document.all){document.expando = true;}<br>
    // Elements //<br>
    <br>
    function html_GetElement(pNd){<br>
    try{<br>
    var node;<br>
    switch(typeof (pNd)){<br>
    ...<br><br>
    I think that the difference is in these two scripts.
    But why are the scripts different: it is the same XE that is installed on the laptop and the PC.<br>The answer I found in the images/javascript directory of APEX3.0.1 which is located in the APACHE directory-tree (you have to copy the images to APACHE when you use the HTTP-server). And indeed: the htmldb_html_elements.js has exactly the same text as what I see in Firebug on the PC. So XE on the PC is using the javascripts in the image-directory of APACHE on the PC and not the XE-version of the scripts, embedded in XE.
    <br><br>
    So the answer seems to be: copy the APEX3.0.1 versions of the script over to the PC and try to get them into the database. Or...???
    <br>
    Can it be loaded into the database? Will XE accept it?
    <BR><br>
    Would be nice to have answers if the conclusion I found is the right one and if it can be fixed by loading the js into XE.
    <br>
    Best regards and thanks for your help so far.
    <br>
    Jan.

  • Maintenance Scripts not running

    Purchased a mac mini a few days ago. Noticed in my system log: Recent contents: that it doesn't seem to be running the overnight maintenance. It reads:
    Nov 20. 03: 15: 02 - geoff powells computer: mac - mini. cp: error processing extended attributes. Operation not permitted.
    This is updated daily with the same result. Mini is left running 24/7.
    Phoned Apple Tech Support who said their G4s syslogs said the same.
    But couldn't say if the scripts were running or not.
    Anyone any clues.
    The sys log of my G5 running 10.3.8 shows a restart everyday.

    Hi Geoff,
    Welcome to Discussions!
    Your system works perfectly well and the Periodic maintenance runs.
    - That a system log starts precisely at 3:15 shows alone that your computer is left on all night and the Daily script runs at its default scheduled time.
    --> Open Console again and see the three Periodic maintenance logs. They are daily.out, monthly.out and weekly.out.
    If your computer never sleeps, you should find that they were run at 3:15am every day (daily task), 3:15am on Saturdays (weekly task), and 5:30am on the first day of each month (monthly task).
    Note that since 10.4.2 they are able to run "delayed" in case your computer was sleeping during the night. This enhancement works perfectly well with the Daily Task, but not very reliably with the Weekly and the Monthly.
    Still no running at all if computer shut down at night.
    HTH
    Axl

  • Java does not run correctly

    My school has a server which I think is UNIX and it runs something called IRIX. We compile our programs on there but it takes so long I usually compile on the PC with J2SE. The only problem is when I run the programs, they don't execute correctly while when I run it on the school server it does run correctly. Do you know what might be causing this problem? It compiles correctly on both sides.
    If I need to ask the user for two things, I'll prompt for the first, then the second. But when I run it on the windows PC, it'll skip the first prompt and jump to the second.

    Yes, the program executes correctly on Unix but not on PC. This is a homework assignment so I can't post it until I turn it in (tomorrow). It's very basic - since I'm taking an intro-Java course - and I'm doing this all by hand-typed text and the program runs with just text-displays and no graphical boxes.

  • GPO Startup/Shutdown scripts not running

    I am running server 2003 SBS with windows 8.1 Pro workstations.
    My workstations run 1 start-up script and 2 shutdown scripts. All are BAT files.
    They were all working fine last week before I ran the update for 8.1.1, now they do not run at the appropriate time on any of those systems. However, if I execute them manually they work as expected.
    I have checked to see if the BAT files are still located in the GPO and they are there. They are stored locally on each machine, I have even tried to delete and re-add them and then run GPUPDATE to no avail. 
    Any help here would be great, as they deal with local encrypted containers and are specific to each workstation.

    Hi Sebastian,
    Thanks for posting.
    Whether the GPO with start-up/shutdown scripts are linked to the OU containing computers?
    FYI -  Logon/Logoff scripts could only be applied to users, whereas Start-up/Shutdown scripts applies to computers.
    Also, checkout the below thread on similar discussion,
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b193e8a9-9b2a-4993-bd74-836c65c51dc3/gpo-with-a-startup-script-is-not-working
    Regards,
    Gopi
    www.jijitechnologies.com

  • WMI Scripts not Running Across VPN

    Hi
    I have a strange problem where i have 2 sites connected  using  a VPN on 2  CISCO877.  But WMI scripts are not running across the link. if i pull these out an replace them with a Draytek, the scripts run fine.
    Broad Lane LAN ----- Cisco 877 ========= Internet & VPN Tunnel ============== Cisco 877 ---- Southam LAN1.0.39.0/8                      1.0.39.253                                                                                                              192.168.55.1   192.168.55.0/24 The server at Broad Lane is  GIMILI (1.0.39.109) and at Southam is FRODO (192.168.55.4). The following will not work through the tunnel from Broad Lane LAN. Set objWMIService = GetObject("winmgmts:\\192.168.55.4\root\cimv2") if err.number=0 then serverexist=true else serverexist=falsemsgbox(server.exist)
    Is is possible for the  CISCO877 to block WMI traffic?
    Any suggestions please?
    Rgds
    Phil

    Phil,
    Thank you for your question.  This community is for Cisco Small Business products and your question is in reference to a Cisco Elite/Classic product.  Please post your question in the Cisco NetPro forums located here: http://forums.cisco.com/eforum/servlet/NetProf?page=main  This forum has subject matter experts on Cisco Elite/Classic products that may be able to answer your question.
    Bill

  • Powershell script not running in the task scheduler...

    I've created a .ps1 script to transfer a file using WinSCP can run it in the ISE environment, in the PS window, and with the run command. I've transferred the command I used in the run prompt to the task scheduler but it is not running. It is running everywhere
    else just not in the scheduler. It says that it completes okay and gives a return code of OpCode=2
    The action is set to run this: c:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe
    The Arguments: -ExecutionPolicy Bypass -file "C:\Users\me\scriptsWCP\FileTransferPS.ps1"
    Also have it running with the highest permission and as SYSTEM

    Hi,
    To run a powershell script with parameters in the Task Scheduler:
    Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    Add argument (optional): -Command "& c:\scripts\test.ps1 -par1 2 -par2 3"
    Hope the below two articles be helpful for you:
    Schedule PowerShell Scripts that Require Input Values
    https://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/schedule-powershell-scripts-that-require-input-values.aspx
    How to Schedule a PowerShell Script
    http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
    Regards,
    Yan Li
    Regards, Yan Li

  • Saproot.sh script not running

    Hi All
    1)I upgraded kernel 700 to patch 185.its solaris machine.and then i tried to run saproot.sh script,but it is saying like
    ./saproot.sh SID
    ./saproot.sh: whoami: not found
    ./saproot.sh: test: argument expected
    i gave full permission to saproot.sh and saposcol
    2)I run a command 'cleanipc 00 remove' from then it is giving dump 'PXA_NO_SHARED_MEMORY'
    i increased buffersize also but of no use.
    when i go  to st06 it is giving err 'SAPOSCOL not running?(shared memory not available)'
    manually itried to run saposcol but it is saying no shared memory.
    appreciate the responses.
    Thank you

    >
    Santosh Kulkarni wrote:
    > Hi All
    >
    > 1)I upgraded kernel 700 to patch 185.its solaris machine.and then i tried to run saproot.sh script,but it is saying like
    >
    > # ./saproot.sh SID
    > ./saproot.sh: whoami: not found
    > ./saproot.sh: test: argument expected
    >
    ./saproot.sh SID needs to be execute from root user
    > i gave full permission to saproot.sh and saposcol
    >
    > 2)I run a command 'cleanipc 00 remove' from then it is giving dump 'PXA_NO_SHARED_MEMORY'
    > i increased buffersize also but of no use.
    > when i go  to st06 it is giving err 'SAPOSCOL not running?(shared memory not available)'
    > manually itried to run saposcol but it is saying no shared memory.
    >
    > appreciate the responses.
    >
    > Thank you
    Check this link
    http://help.sap.com/saphelp_bw30b/helpdata/en/95/df4002597211d3b473006094b910d9/content.htm
    http://www.saptechies.com/os-collector-saposcol/
    Regards,
    Subhash

Maybe you are looking for