Command Line SMB Issues

Greetings,
I scripted in 10.7 the mounting of a Windows share (SMB) for some back end tasks. My script needs to dump collected data over to a Windows share for further processing.
My code seems to have broken since my upgrade to 10.8.
Here is the line of code:
I first create the directory: /Volumes/SHARE
then:
/sbin/mount -o nobrowse -t smbfs //SERVICEACCT:[email protected]/SHAREhttp://winserver.sinc.stonybrook.edu/SHARE /Volumes/SHARE
That worked. But now, I get an authentication error. The problem seems to be that a domain needs to be attached to the name, but nothing works.
I tried:
/sbin/mount -o nobrowse -t smbfs //domain\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
/sbin/mount -o nobrowse -t smbfs //domain\\SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
/sbin/mount -o nobrowse -t smbfs //domain.mydomain.edu@SERVICEACCT:[email protected]/SHARE /Volumes/SHARE
The last one confuses the heck out of the system. Any ideas?
Thanks,
Andrew
Andrew W. Johnson
Sr Macintosh Systems Administrator
Department of Teaching Learning & Technology
Division of Information Technology
Stony Brook University
Computing Center Room 115
Stony Brook, NY 11794-2400 

Found the solution to my own problem. Syntax needs to be:
DOMAIN;USERNAME:[email protected]/SHARE

Similar Messages

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Command-line installation issue : InstallMediaPath parameter?

    Hello,
    I have an unsuccessful command-line installation of SQL Express 2008 R2. I need to do it to install a new local instance so that a Winforms application could use it (I'm packaging the app thus installing pre-requisites through my installer).
    I hit "InstallMediaPath" blank parameter issue, if I look into "C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\Detail.txt".
    System.ArgumentNullException: Value cannot be null.
    2014-09-08 09:40:17 Slp: Parameter name: InstallMediaPath
    I read on the forums that this error can solve by uncompressing before running setup, so here are my two commands. I still have the issue.
    "Resources\SQLEXPR_x86_ENU.exe" /Q /X:"%TEMP%\SESetup"
    "%TEMP%\SESetup\Setup.exe" /ACTION=Install /QS /IAcceptSQLServerLicenseTerms=True /Features=SQL,Tools /InstanceName=MSSQLSAFETIFY /SQLSVCACCOUNT=\"NT AUTHORITY\\NETWORK SERVICE" /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD="somePassword"
    Earlier in log file I see a correct value for InstallMediaPath so am clueless.
    2014-09-08 10:00:51 Slp: Setting: SQLSVCACCOUNT
    2014-09-08 10:00:51 Slp: Value specified: "NT,AUTHORITY\\NETWORK,SERVICE /AddCurrentUserAsSQLAdmin /SECURITYMODE=SQL /SAPWD=somePasssword /ACTION=RUNRULES /RULES=GlobalRules /WORKFLOW=Install /TIMESTAMP=20140908_100041 /LOGMARKER=_GlobalRules /MEDIASOURCE=C:\Users\bpo\AppData\Local\Temp\2\SESetup\ /INSTALLMEDIAPATH=C:\Users\bpo\AppData\Local\Temp\2\SESetup\x86\setup\ /ENU /MEDIALAYOUT=Core
    2014-09-08 10:00:51 Slp: New setting source: CommandLine; previous setting source: Default
    2014-09-08 10:00:51 Slp: ----------------------------------------
    2014-09-08 10:00:51 Slp: Completed Action: ProcessFeatureCommandLineArguments, returned True
    Thank you so much for helping. Do I have some incorrect parameters?

    I finally found a solution, using a Configuration.ini file. Blog entry dealing with MS SQL unattended setup
    I suceeded with a configuration file, adding though two parameters to file, IAcceptSQLServerLicenseTerms="True" and SAPWD="passwordOfMyChoice".
    With command line only, I had "path2" parameter null value error, once I added /InstallMediaPath undocumented (?) option to my initial command line switches...

  • Command line property issue

    I am having a problem passing a property value on the command line in a Linux box. Here is a simple version of the script.
    java -DmyName="Joe Smith" ShowName
    I want "Joe Smith" to be the value of the property myName but myName has "Joe instead. What do I need to do so that myName contains both words?

    java -DmyName="Joe Smith" ShowNameYou're doing this on Windows, right? (Thanks (not!) for providing all the necessary information to debug your problem).
    The problem is that "CMD.EXE" is dumb about quotes in the middle of an argument. It treats -DmyName="foo bar" as two strings, with explicit strings.
    You have to say "-DmyName=Joe Smith".

  • Command Line/Javac issues

    Ok, I know this is a really stupid question but I have not had the oppurtunity to explore everything in Java yet. I was wondering how I get javac to recognize my program from any directory on my computer. I know it can be done but I need to know how.

    add your jdk bin directory to your path in autoexec or boot environment varaible settings.
    To run java from anywhere, add . to your classpath environment variable the same way you did for the path.

  • Launching Rescue & Recovery from a Command Line

    Question - I would like to know how I can launch Rescue & Recovery from a command line.
    Issue that is prompting the question -  My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode at the time. When I opened it in the morning, there was a message on the screen saying that a backup had not completed successfully. I then noticed that the battery had run down completely.
    My Plan - I would like to launch Rescue & Recovery (as well as the Defrag utility) from Windows Task Scheduler. If I do, then all schedule tasks will be launched and controlled using the same process. Windows Task Scheduler also provides two key scheduling criteria that the IBM Rescue & Recoverry or the IBM Maintenance Manager utilities do not provide -
    #1 - Run this task only when the PC is on AC power.
    #2 - Run this task ony when the computer is idle (so that it doesn't slow down the PC if I happen to be working on it)
     Background Concerns -
    - Having a backup job automatically start when the computer is in my computer bag will run down my battery when I least expect it.
    - The PC may could also be damaged due to overheating, since the sides of the computer bag  block the ventilation holes.
    Additional Info
    - If I go to the ThinkVantage Productivity Center and select the Quick Link for "Backup Now" this will indeed launch a backup on demand. I assume that selecting this option is calling a specific executable file.
    - However, the only two applicable executable files that I see in the C:\Program Files\Lenovo\Rescue and Recovery directory are "mr_gui.exe" and "wizrr.exe". Both of these files launch an interface that requires the user to make a selection. As a result, it doesn't look as if either of these files would work for unattended operation, unless there is some sort of switch that I can put in that will automatically start the backup process.
    - I called the support line (only once so far), but that particular rep did not know of any way to launch Rescue & Recovery other than from the standard R&R user interfaces.
     Any help is greatly appreciated,
    Mathew

    The correct way to invoke a JSP is to make a request to the Server.
    Normally you would use your browser to do this.
    On a unix system, you can use the wget command to invoke a url without using a browser.

  • Command line compiler wierdness

    Have been compiling RoboHelp 7 HTML Help projects from the command line without issue, but suddenly no glossary text is displayed in the compiled chms. The .glo file is compiled, but the glossary tab is blank.
    All required dlls are registered, and surprisingly, if I compile the project in the RoboHelp 7 GUI, the glossary text does show up in the compiled chm.
    Using RoboHelp 7.0.3. I've uninstalled and reinstalled, and tried building on a different PC with the same results.
    Very odd - anyone else come across this and know how to fix it?

    Hmmm... Thanks Jeff but I think that goes right back to the realm of a manual process.
    Any other thoughts?
    Thanks again!

  • Command Line Output Directory

    I am trying to generate my help files through the commanline utitlity via a bat file.
    Here is my bat file...
    rem Generates the System output files
    :START
    "c:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\RHCL.exe" "c:\Projects\myProj\1.0.0\Development\HelpFiles\MyHelp.xpj" -o
    "c:\userName\Desktop\RoboHelpOutput" -g "c:\userName\Desktop\RoboHelpOutput\log.txt"
    :END
    When I run this, it successfully generates the output files, but it does not generate it in the "c:\userName\Desktop\RoboHelpOutput" directory. Instead, it uses the directory I pointed it at when I generate the output through the RoboHelp UI. I need to figure out why this is ignoring the -o Destination tag in order to be able to work locally and have the help files generated with our automated builds.
    Please Help!!!!
    Thanks in advance!
    hmaprk

    Hi - we are having the same issue. Regardless of what we specify as the output folder, the help file always generates the output on the drive we previously specified in the SSL file.
    SSL:
    <element name="DestinationProjectName" value="X:\doc_4x\html\apps\output\pr\flexi\fpr32.chm" />
    We tried to eleminate the X: to see where the file will generate to. This is the path that showed up on the first wizard screen when I went to generate in RH a few minutes later:
    X:\doc_4x\html\apps\projects\pr\doc_4x\html\apps\projects\pr\doc_4x\html\apps\output\pr\fl exi\fpr32.chm
    Any help in resolving our command line build issue is greatly appreciated!

  • Acroread command line issue nUp and a custom page size

    When I use the dialog box with the settings I need - It works fine..
    Using acroread 9.5.5 on a Linux box.
    Does not work in command line with -toPostScript -nUp 6 4 0 -size=1296x1440 -pairs <file_name>.pdf <out_file_name>.ps
    If I choose size=legal or size=tabloid the resulting ps has reduced size pages and does flow correctly but
    I want to use Large Paper 18"x20" and not downsize the original PDF input files.
    Basically placing the images side by side

    Were you ever able to get it to print on large paper?  I'm facing a similar issue.  A pdf with page size 11x17 but when I run it thru acroread it changes the page size to 8.5x11. 

  • Command Line Issue

    Hey All,
    This batch file works:
    d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb BatchTest /sheet 2010 /batch /export HTML d:\batchtest
    but this one does not:
    d:\oracle\BIToolsHome_4\bin\dis51usr.exe /connect userid/password@database /opendb "00000 Workbook Analysis Begininng 01 Jan 2009" /sheet ALL /batch /export HTML d:\batchall
    The first batch file executes only ONE worksheet and exports the output to a file successfully. The second batch file executes ALL sheets in the workbook but does not produce the output file. Its execution does not produce any error messages but no output is generated. Removing the '/batch /export HTML d:\batchall' commands opens Discoverer Desktop and executes all worksheets successfully.
    I guess I am just being a silly goose but I cannot find the problem. Any help towards solving the problem will be appreciated.
    Thanks,
    Jerre

    Hi Jerre
    Interesting indeed. The export command, taken from my book, is as follows:
    /export <format><export-file-name> This exports the results of executing a worksheet to the file named, in the format specified. If you do not specify a worksheet on the command line, Discoverer exports the results from the active worksheet. If you nominate /sheet ALL on the command line, Discoverer exports all of the worksheets in the workbook and names the output files as <file><sheet-name>.<ext>, identically to the behavior of the Export Data command.
    First of all, because you are using the ALL sheets switch the file name has to be unique and cannot be named the same as a folder. Do you happen to have a folder named batchall? That would cause a problem.
    Next, I am wondering if there is something with the sheet names that could be causing the issue. Can you take a look at the sheet names and see if there are any characters that might cause an issue? As a test, try renaming the sheets to all one word with underscores.
    Best wishes
    Michael

  • Tidal Scheduler Command line issue

    I am unable to pass command parameters with quotes (I need quotes also to be stored in command parameters). The SACmd.exe is not displaying any quotes when Command parameters are passed. I need quotes because I am calling FTP script in Command and source and destination in command parameters. Example is below:
    Command : frppro.exe
    Command parameters should be:  -s "Shared Path!Source" -d "C:\program files\".
    But i am unable to get quotes in command string. Is this a command line issue or let me know is there anyway to get quotes too from command line.

    Try the "fix" I documented at
    http://blog.configmgrftw.com/two-osd-application-install-issues/
    Jason | http://blog.configmgrftw.com

  • Issue while creating BPEL artifacts using BPEL command line tool

    All
    I am trying to create BPEL artificats for SQL server stored procedure for SQO Server 2005 using BPEL Command line tool.
    My demo.properties is
    ProductName=Microsoft SQL Server
    DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
    ConnectionString=jdbc:sqlserver://10.10.20.2:1433;databaseName=dAP
    Username:apcdb
    Password:password1
    SchemaName:dev
    ProcedureName:spiSOATesting
    ServiceName:SQLServerSPService
    DatabaseConnection:MSSQLServer
    Destination:c:/temp/sqlprocedure
    and I have create a batch file called as generate.bat and it contains following information
    java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\jlib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %1
    and when I try to run the command at BPEL PM Developer Prompt, I am getting Procedure not found, Can one please tell, what is the cause of this error. and how does this command line tool exactly work.
    Following is the output from command prompt.
    D:\product\10.1.3.1\OracleAS_1\bpel\samples>D:\temp\sqlprocedure\generate.bat D:\temp\sqlprocedure\demo.properties
    D:\product\10.1.3.1\OracleAS_1\bpel\samples>java -cp D:\jdevstudio10134\integration\lib\DBAdapter.jar;D:\jdevstudio10134\integration\lib\bpm-infra.jar
    ;D:\jdevstudio10134\integration\lib\orabpel.jar;D:\jdevstudio10134\lib\xmlparserv2.jar;D:\jdevstudio10134\lib\xschema.jar;D:\jdevstudio10134\toplink\j
    lib\toplink.jar;D:\jdevstudio10134\integration\lib\connector15.jar;D:\temp\sqlprocedure\JDBC\sqljdbc.jar oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts D:\temp\sqlprocedure\demo.properties
    Procedure not found: dAP.spiSOATesting
    Thank you

    HI
      Pricing will be carried basing on the pricing
    procedure.
    Case1: Prices will be carried out automatically if
    necessary condition records are maintained for the
    condition type.
      For this you can go to Sales Order-> Item Conditions
    In the screen you can click on command button Analysis,
    which gives you the list of condition types associated
    to the pricing procedure. By clicking on the condition
    type you can know the action that has taken place.
    Case2: Manually forcing prices for Items.
      To do this, you have to populate ORDER_CONDITIONS_IN &
    ORDER_CONDITIONS_INX. Also note to identify the item
    numbers, you manually pass the item number for each item
    in the sales order, use the same item number for
    populating conditions.
      Parameters required:
    ORDER_CONDITIONS_IN:
      ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
    ORDER_CONDITIONS_INX:
      ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
       Hope the above info helps you. Do revert back if you
    need more info.
    Kind Regards
    Eswar

  • Issue with variables and white space in powershell script that calls a command line command

    Guys,
    I have a question regarding this script. Each time I run it, it creates the share, but with a space after it. Also I need help figuring out how to put in the variable for the folder path.
    Below is the code
    $Users=Import-Csv C:\users2.csv
    foreach($User in $Users){
         $User.SNCORP
         $User.HPB
         $User
         cmd /c "net share "$User.SNCORP"=D:\Users\"$User.HPB" /grant:Everyone,FULL"
    The csv file looks like this
    HPB,SNCORP
    ccarter,carterch$
    This is my output in powershell
    PS C:\> .\shareflip.ps1
    carterch$
    ccarter
    HPB                                                         SNCORP
    ccarter                                                     carterch$
    The syntax of this command is:
    NET SHARE
    sharename
              sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
                                   [/USERS:number | /UNLIMITED]
                                   [/REMARK:"text"]
                                   [/CACHE:Manual | Documents| Programs | BranchCache | None]
              sharename [/USERS:number | /UNLIMITED]
                        [/REMARK:"text"]
                        [/CACHE:Manual | Documents | Programs | BranchCache | None]
              {sharename | devicename | drive:path} /DELETE
              sharename \\computername /DELETE
    Any help is greatly appreciated. 
    Christopher

    There is no need to use cmd /c. You should be able to use:
    net share "$($User.SNCORP)=D:\Users\$($User.HPB)" "/grant:Everyone,Full"
    Use showargs.exe (from the article) at the beginning of this line to see the command line PowerShell is actually running (very useful for troubleshooting).
    -- Bill Stewart [Bill_Stewart]

  • Issues With Printer Using drv:///sample.drv/generic.ppd from Command Line

    Hi All,
    I was using generic postscript driver earlier with Mountain Lion. I Created a print queue using "lpadmin -p MYPrintQueue -m drv:///sample.drv/generic.ppd -v socket://<IP>:9100 -E"
    This created a print queue with Generic Postscript Driver.
    Now when i am trying same command with Mavericks, It's Creating a Local Raw Printer. Can anyone tell me where i am going wrong.
    I need command line resolution only.
    I know i can create print queue from cups web interface. There its working fine.
    But i need to use command line only.
    Thanks.

    Hi,
    Would you please try following commands?
    Please don't add quotes on the inf file path: change the driver folder name NC Print Drivers as NCPrintDrivers.
    rundll32 printui.dll PrintUIEntry /if /f C:\Temp\NCPrintDrivers\dellopd_A06\dellopd.inf /r "192.168.10.157"
    Make sure to run the command as admin.
    Let me know if it can work fine.
    Kate Li
    TechNet Community Support

  • Un-mounting network volumes with command line

    Does anyone know how to unmount a network volume from the command line in OSX. Using umount deletes the mount but not the mount point. I can't get diskutil or disktool to do it.

    I don't use smb much, but it does look like there's something funny going on. On my system, smb shares mounted from the "Finder" are unmounted normally (mountpoint deleted, "Finder" icon gone) using: 'umount', or eg.<pre>osascript -e 'tell application "Finder" to eject disk "volumename (not mountpoint name)"</pre>But shares mounted using 'mount_smbfs' behave as you describe with respect to the "Finder". But I couldn't reproduce the ".autodiskmounted" file issue in my limited testing involving "normal" use. Sorry, I don't have much more to add - maybe someone more familiar with smb can comment...

Maybe you are looking for

  • Looking for app to recognize song titles

    Just recently I bought myself an iPhone 5S and an iPad. One of the (many) reasons for this is the possibility to obtain an app for song titles or other music to be recognized so I can have this music downloaded on the devices I just bought. However,

  • Music video plays in itunes but not on ipod

    hi like my subject line states, i transferred a whole bunch of music videos off of dvd into mp4 format using videora. they play in itunes but not on my ipod. i transferred about 400 or so at the same time to ipod do you think that's why most of them

  • Just picked up a new 24" iMac and.......

    So far it's awesome. But then I installed World of Warcraft and started playing. It seems that if I enable any of the shader options, I get distorted grpahics. Mostly SNOW filling the screen, I can only see my character and other charatcers, all text

  • What is the easiest tool to debug an SQL script in Oracle XE environment?

    I try to run a simple sql script that creates tables with their keys on Oracle XE. When it runs into bunch errors, I have difficult time to locate the mistake. One of the reason is, I don't know how to view the script in color that distinguishes the

  • Apple policy on inappropriate content for iBooks

    Hello, I have an idea for an iBook that I would create using iBooks Author, and plan to distribute via the App Store (or the iBooks Store, or wherever it ends up when you submit it via Author). However, I've been warned that Apple has a policy on ina