Using opmn to start/stop hub repo and adapters

Also posted as a thread on the OracleAS General forum, I'm hoping the duplication will cover both areas of expertise. Apologies if I offend.
"Configuring custom process with OracleAS 10g Release 2 (10.1.2) "
A Metalink note kindly informed me that I could use OPMN to start and stop Interconnect hub and adapter processes. The hyperlink sent me to the OPMN documentation and that's where the fun started!
So far I have only tried to add the repository as an ias-component and this is how the section of the opmn.xml file looks.
<ias-component id="HUBDEV3" status="enabled" id-matching="true">
<process-type id="HUBDEV3-repository" module-id="CUSTOM">
<environment>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/integration/interconnect/lib/oai.jar"/>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/jdk/jre/lib/i18n.jar" append="true"/>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/jdbc/lib/classes12.jar" append="true"/>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/jdbc/lib/nls_charset12.jar" append="true"/>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/jlib/oraclepki.jar" append="true"/>
<variable id="CLASSPATH" value="/du01/OAI/oracleas1/jlib/ojpse.jar" append="true"/>
<variable id="PATH" value="/du01/OAI/oracleas1/jdk/jre/bin" append="true"/>
<variable id="LD_LIBRARY_PATH" value="/du01/OAI/oracleas1/lib32" append="true"/>
</environment>
<process-set id="repo" numprocs="1">
<module-data>
<category id="start-parameters">
<data id="java-parameters" value="-server -Drepo=InterConnectRepository -DORBdisableLocator=true -mx512m -ms8m oracle.aob.repository.Repomain"/>
<data id="jar-file" value="/du01/OAI/oracleas1/integration/interconnect/lib/oai.jar"/>
</category>
<category id="stop-parameters">
<data id="java-parameters" value="-server -Drepo=InterConnectRepository -DORBdisableLocator=true -mx512m -ms8m oracle.aob.repository.Repomain -shutdown"/>
<data id="jar-file" value="/du01/OAI/oracleas1/integration/interconnect/lib/oai.jar"/>
</category>
</module-data>
<start timeout="600"/>
<stop timeout="120"/>
</process-set>
</process-type>
</ias-component>
This parses okay and when I call opmnctl status I get the following:
$ opmnctl status
Processes in Instance: hubASDEV3.xxxxxxxxxx
------------------------------------------------+---------
ias-component | process-type | pid | status
------------------------------------------------+---------
LogLoader | logloaderd | N/A | Down
DSA | DSA | N/A | Down
HTTP_Server | HTTP_Server | 27533 | Alive
dcm-daemon | dcm-daemon | 217 | Alive
OC4J | home | 27534 | Alive
OC4J | jacada | 27535 | Alive
HUBDEV3 | HUBDEV3-repository | N/A | Down
I tried opmnctl startproc ias-component=HUBDEV3 & opmnctl startproc process-type=HUBDEV3-repository but both retun the following message:
opmn id=crm-drtest:6200
no enabled components for this request
Can anyone advice on where and why I'm going wrong?
Sometimes you wish you'd never seen the hint in the first place!!

Well, I now have a working solution.
The section from the opmn.xml file now reads (the major changes in bold):
<ias-component id="HUBDEV3" status="enabled" id-matching="true">
<process-type id="HUBDEV3-repo" module-id="CUSTOM" working-dir="/du01/OAI/oracleas1/integration/interconnect/repository">
<environment>
<variable id="JAVA_HOME" value=""/>
<variable id="THREADS_FLAG" value="native"/>
<variable id="PATH" value="/du01/OAI/oracleas1/jdk/jre/bin" append="true"/>
<variable id="LD_LIBRARY_PATH" value="/du01/OAI/oracleas1/lib32" append="true"/>
</environment>
<process-set id="repo" numprocs="1">
<module-data>
<category id="start-parameters">
<data id="start-executable" value="/du01/OAI/oracleas1/jdk/jre/bin/java"/>
<data id="start-args" value="-server -Drepo=InterConnectRepository -DORBdisableLocator=true -mx512m -ms8m -classpath /du01/OAI/oracleas1/integration/interconnect/lib/oai.jar:/du01/OAI/oracleas1/jdk/jre/lib/i18n.jar:/du01/OAI/oracleas1/jdbc/lib/classes12.jar:/du01/OAI/oracleas1/jdbc/lib/nls_charset12.jar:/du01/OAI/oracleas1/jlib/oraclepki.jar:/du01/OAI/oracleas1/jlib/ojpse.jar oracle.aob.repository.Repomain"/>
</category>
<category id="stop-parameters">
<data id="stop-executable" value="/du01/OAI/oracleas1/jdk/jre/bin/java"/>
<data id="stop-args" value="-classpath /du01/OAI/oracleas1/integration/interconnect/lib/oai.jar:/du01/OAI/oracleas1/jdk/jre/lib/i18n.jar:/du01/OAI/oracleas1/jdbc/lib/classes12.jar:/du01/OAI/oracleas1/jdbc/lib/nls_charset12.jar:/du01/OAI/oracleas1/jlib/oraclepki.jar:/du01/OAI/oracleas1/jlib/ojpse.jar oracle.aob.repository.Repomain -shutdown"/>
</category>
</module-data>
<start timeout="600"/>
<stop timeout="120"/>
</process-set>
</process-type>
<process-type id="HUBDEV3-adapters" module-id="CUSTOM" working-dir="/du01/OAI/oracleas1/integration/interconnect/adapters/CRMAPPS">
<environment>
<variable id="JAVA_HOME" value=""/>
<variable id="THREADS_FLAG" value="native"/>
<variable id="PATH" value="/du01/OAI/oracleas1/jdk/jre/bin" append="true"/>
<variable id="LD_LIBRARY_PATH" value="/du01/OAI/oracleas1/lib32" append="true"/>
</environment>
<process-set id="crmapps" numprocs="1">
<environment>
<variable id="LANG" value="en_US"/>
</environment>
<module-data>
<category id="start-parameters">
<data id="start-executable" value="/du01/OAI/oracleas1/jdk/jre/bin/java"/>
<data id="start-args" value="-server -Dadapter=CRMAPPS -DORBdisableLocator=true -ms8m -mx512m -classpath :/du01/OAI/oracleas1/integration/interconnect/lib/oai.jar:/du01/OAI/oracleas1/jdk/jre/lib/i18n.jar:/du01/OAI/oracleas1/jdbc/lib/classes12.jar:/du01/OAI/oracleas1/jdbc/lib/nls_charset12.jar:/du01/OAI/oracleas1/rdbms/jlib/aqapi.jar:/du01/OAI/oracleas1/rdbms/jlib/jmscommon.jar:/du01/OAI/oracleas1/lib/xmlparserv2.jar:/du01/OAI/oracleas1/jlib/oraclepki.jar:/du01/OAI/oracleas1/jlib/ojpse.jar:/du01/OAI/oracleas1/jdk/jre/lib/ext/mail.jar:/du01/OAI/oracleas1/jdk/jre/lib/ext/activation.jar:/du01/OAI/oracleas1/integration/interconnect/lib/UserDefinedTransforms.jar: oracle.oai.agent.service.AgentService"/>
</category>
<category id="stop-parameters">
<data id="stop-executable" value="/du01/OAI/oracleas1/jdk/jre/bin/java"/>
<data id="stop-args" value="-mx64m -classpath /du01/OAI/oracleas1/integration/interconnect/lib/oai.jar oracle.oai.agent.proxy.ShutdownAgent persistence/Agent.ior"/>
</category>
</module-data>
<start timeout="600"/>
<stop timeout="120"/>
</process-set>
</process-type>
</ias-component>
Once I added the working-dir attribute to the process-type tag, things began to fall into place. working-dir is set to the directory location of the repository start script and I repeated the same for the crmapps adapter. My biggest clue came when I added the crmapps adapter to the opmn.xml and when I tried to start it, the log file indicated that it couldn't find the adapter.ini file. The rest came naturally after that breakthrough.
It needs a bit of rejigging but so far, results are good.
Message was edited by:
Devious Scully

Similar Messages

  • How to start/stop Event Mgr. and RFID information server?

    I take over our form RFID admin (who quit) position.
    I cannot find any document which tells me How to start/stop Event Mgr. and RFID information server.
    Even the "Sun Java System RFID Software 3.0 Administration Guide" does not have this piece of info.
    Would you please help? Points guaranteed. Thanks!

    Ashley you are still not clear to me.
    Please mention what applications are these??
    Is it SAP Event Manager??
    What is the RFID Information server??
    Is it SAP based, or some other vendor??
    How is the integration done?
    Thanks

  • Using photoshop album starter edition 3.o and need to copy to laptop, missing my program cd.

    I am presently using photshop album starter edition 3.) and need to copy to new laptop.  I have misplaced my program cd.  Is there any way I can get this program on my laptop.  It is windows 7 and the photshop is on XL.  Thanks so much.

    I am sorry but we no longer have older software available for download.  I am not sure Photoshop Album Starter Edition would even function in Windows 7. 
    I would recommend trying Photoshop Elements 10 on your new computer.  It has all the features of Photoshop Album Starter Editon plus many more.  On top of that it has been designed to work with Windows 7.  You can find more details at http://www.adobe.com/products/photoshop-elements.html.

  • Using ncAction to Start & Stop CAN objects

    Hello,
    I have to start and stop CAN Objects and I have unexpected results : if
    I set NC_ATTR_START_ON_OPEN to NC_TRUE in the interface configuration,
    everything works properly. Then if I set NC_ATTR_START_ON_OPEN to
    NC_FALSE, ncAction function does not work properly.
    I'm using NI-CAN v2.3.
    Here is a sample of my code.
    Any suggestion about that problem ?
    Attachments:
    CAN_ncAction.c ‏5 KB

    Hi JCX,
    I can reproduce your Problem. It seems that there is something wrong with the handles. We work to get it fixed, but it can take a little while.
    For the moment the workaround is to start the second Object (ncAction) before you try to Stop it. The new Start will fix  a kind of a handle problem, so you should be able to Stop the Object then.
    It should look like this then:
     // Start the network interface and CAN objects
      NiCANErrChkMsgPopup(ncAction (PortHandle, NC_OP_START, 0));  
      // Stop the Second Frame
      NiCANErrChkMsgPopup(ncAction (HdleSTD301, NC_OP_STOP, 0)); 
    // Start the  CAN object
      NiCANErrChkMsgPopup(ncAction (HdleSTD1495, NC_OP_START, 0));  
      // Stop the First Frame
      NiCANErrChkMsgPopup(ncAction (HdleSTD1495, NC_OP_STOP, 0));
    because the Stop cleanes the message queues, you have to write a new message to the write queue before any restart.
    hope that helps
    DirkW

  • Using IPMI to Start,Stop Oracle VM server via OVMM fails

    I have tried to manually start and stop an OVM server by using the ipmitool cmd from the environment of OVMM and it worked fine
    To start:
    ipmitool -U username -I lanplus -H xxx.xxx.xxx.xxx power off
    And to stop:
    ipmitool -U username -I lanplus -H xxx.xxx.xxx.xxx power on
    so, I thought that the IPMI method works! However when I tried via the OVMM GUI environment, I got the following error. Actually the server stopped, most probably because of the acpi, but with an error, and after that It couldn't start again.
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/3 remote_power_off xxx xxx xxx xxx, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Failed to run: ipmitool -I lan/lanplus -H 192.168.1.5 ['power', 'off'] [Fri Jan 03 15:06:08 EET 2014
    The server is a FUJITSU RX200 S5 and  I am not sure if it is certified for OVM, but that shouldn't matter for the starting and stooping via the IPMI.  Anyway has anyone else experienced similar problems? Is there a way to alter the ipmitool cmd options that OVMM uses?
    Thanks,
    Nikos

    I have tried to manually start and stop an OVM server by using the ipmitool cmd from the environment of OVMM and it worked fine
    To start:
    ipmitool -U username -I lanplus -H xxx.xxx.xxx.xxx power off
    And to stop:
    ipmitool -U username -I lanplus -H xxx.xxx.xxx.xxx power on
    so, I thought that the IPMI method works! However when I tried via the OVMM GUI environment, I got the following error. Actually the server stopped, most probably because of the acpi, but with an error, and after that It couldn't start again.
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/3 remote_power_off xxx xxx xxx xxx, Status: org.apache.xmlrpc.XmlRpcException: exceptions.RuntimeError:Failed to run: ipmitool -I lan/lanplus -H 192.168.1.5 ['power', 'off'] [Fri Jan 03 15:06:08 EET 2014
    The server is a FUJITSU RX200 S5 and  I am not sure if it is certified for OVM, but that shouldn't matter for the starting and stooping via the IPMI.  Anyway has anyone else experienced similar problems? Is there a way to alter the ipmitool cmd options that OVMM uses?
    Thanks,
    Nikos

  • Music on my iPhone 5s starts, stops, speeds up and skips seemingly at random.

    Hi
    Randomly my iphone 5s (ios 8.1.3) starts playing music.  Also when I am listening to any sort of audio (podcast, music or a phone call), my iphone audio randomly stops, skips and speeds up.  I can be on a phone call and the phone call gets ended and music starts. 
    I've restarted, reset setting and cleaned my headphone jack and used various headphone and still have the issue.
    Any suggestions are appreciated

    Hi mnmboca,
    Is the Music app on your iPhone the only application that is behaving erratically?  If so, I would suggest backing up your iPhone, deleting all of the music and podcasts, and then re-downloading just a few songs that you've already purchased to monitor the behavior.  If the issue persists, you may need to restore the iOS, since Music is a part of the iPhone's operating system.  Here are some resources that will explain the steps in more detail:
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    http://support.apple.com/en-us/HT203977
    See how much storage you've used on your iPhone, iPad, and iPod touch - Apple Support
    http://support.apple.com/en-us/HT201656
    View storage usage on your iOS device
    Tap Settings > General > Usage > Manage Storage to see the amount of space each app and its content takes on your device.
    Tap an app for more detailed information about its usage.
    Depending on the app, you might be able to delete some of the app's content, or delete the app and all of its content.
    When you tap on the Music App, and tap Edit in the top right corner, You will see a red dot to the left of All Songs.  Tapping on that will remove all of the music from your iPhone.
    Download past purchases - Apple Support
    http://support.apple.com/en-us/HT2519
    Download previous purchases on your iPhone, iPad, or iPod touch
    Music
    Tap Settings > Music and make sure Show All Music is on.
    Tap the Music app.
    Find the item that you want to download.
    Tap the Download  icon.
    I hope this information helps ....
    - Judy

  • Unable to Start/Stop SBO Mailer and SBO Backup services

    Hi All,
    With reference to the thread of the following Link : SBO Backup and Messenging Service - Starting , We have a customer on SAP B1 8.8 PL 16 and we faced the same issue wherein after restarting the server, SBO Mailer and SBO Backup services show status as starting and all buttons are greyed out.
    As per the thread we did re-install the server tools and it worked fine. But when we restart the server again the same issue arises.
    Kindly reply back at the earliest...
    Thanks and Regards,
    Pritesh Shah

    Dear Pritesh Shah,
    please try the following:
    Exit the Service Manager.
    On the Server got to Start- > and locate the Icon of the Service Manager -> click right and "Use as Administrator.
    After this open the Service Manager and take a look if you could activate the SBO Mailer and SBO Backup.
    I hope this helps.
    Best regards,
    Indira

  • Start/stop apps tier and database tier

    Hi,
    Could anybody told me why is necessary the database be up in order to start the apps tier ? How could I be sure that when the command (in a script) start the apps tier, the command which start the database is accomplished ?
    Thanks,
    Paul

    It depends on your hardware configuration as well as the database size.
    The best thing to do is to practice it yourself. See how long does it take for your database to start and based on that set the time interval before starting your application services. You may also use the DB script to trigger the application script so once the DB is up your application will start up.
    In Linux, You can use either "wait command" OR "sleep command". Please refer to the following links for more details about 'Job Control Commands':
    http://www.linux.com/guides/abs-guide/x6689.shtml
    http://enterprise.linux.com/article.pl?sid=05/03/25/1216215&tid=89

  • How to Start Essbase without using OPMN in 11.1.2.1

    All,
    We have installed and configured Essbase 11.1.2.1 successfully on 64 bit AIX server. Now I need to know how to start the essbase without using OPMN?
    As we can start essbase using :-

<EPM_ORACLE_HOME>\user_projects\epmsystem1\bin\startEssbase.bat

; But this method will still use OPMN, if OPMN is not running it will first start up the OPMN processes and then start up Essbase.

    As we are not using Essbase clustering and so do not find OPMN more beneficial and moreover OPMN is not working properly to start any processes. so we just do not want to use OPMN in starting the essbase.
    is there any workaround to just skip the OPMN while starting/stopping/restart essbase?
    Thanks in advance,

    In 11.1.2.0 there was startEssbase.bat at <EPM_HOME>\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startEssbase.bat

    which basically just called setEssbaseEnv.bat which sets a number of variables, one being %ESSBASEPATH% which points to <EPM_HOME>\EPMSystem11R1\products\Essbase\EssbaseServer
    Then called %ESSBASEPATH%\bin\essbase.exe
    This bypasses opmn
    Now in 11.1.2.1 Oracle removed <EPM_HOME>\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startEssbase.bat

    but still left setEssbaseEnv.bat, it is possible to call setEssbaseEnv.bat and then %ESSBASEPATH%\bin\essbase.exe
    Essbase starts up fine and bypasses opmn.
    I would have thought it would be possible on other OS types as long as the environment variables are set first being starting up essbase.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using non-administrator user to start/stop services

    We have Crystal Report Server (BOE XI) running on Windows platform.
    Our customer's policy dictates that operator ID are to be use to manage starting/stopping of Crytal Report Server. The operator ID has no administrator rights and it has no access to the Microsoft Management Console.
    Would it be possible to use non-administrator ID to start/stop Crystal Report Server services? Appreciate if anyone could share on the configuration.
    Thank you.

    salafrance wrote:A simple way would be to write a small C program to run systemctl setuid root.
    So perhaps like this?
    #include <stdlib.h>
    #include <unistd.h>
    int main(void)
    execl("/usr/bin/systemctl", "systemctl", "start", "calibre", NULL);
    return(EXIT_SUCCESS);
    compiled it, then "chown root:root test", "chmod u+s test" and it worked.
    But is this safe? I have absolutely no knowledge about potential security issues...
    I also have thought about periodically restarting calibre, but on the Raspberry Pi, with it's slow ARM, the start takes ages and the processor is completely busy with that task for some minutes.
    And that's the reason why I also want to avoid starting an entire second systemd session... Or is this not that resource intensive?

  • 24pA - Captured timecode and DV Start/Stop

    Hello - I've got what I hope will be an easy one - though I haven't found the answers lurking around here. I'm capturing footage shot on my DVX-100A in 24p Advanced mode. I'm capturing it from my DSR-11 deck using the Advanced Pulldown Removal in FCP 5.0.3 on my Dual 1G G4 tower running OS 10.4.3. My tapes should all be Non-Dropframe I believe.
    I'm having an issue with DV Start/Stop Detect. It's putting markers where there is no start/stop between clips, and NOT finding any of the start/stop locations on the tape at all. This led me to examine my timecode more closely. I found that clips have timecode that increments like this (in the frames category):
    01, 02, 04, 05, 06, 07, 09, 10, 11, 12, 14, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 29, 00
    It plays fine in sequences set to 23.98, and even displays fine on an NTSC television I've hooked up to my DSR-11. This from the clip itself in the viewer, or from the canvas in the sequence.
    Should my timecode be incrementing that way so that it can re-reference the 29.97 timecode on my original tapes, or do I have a problem? Does anybody know why my Start/Stop Detect feature won't work? Incidentally, it works just fine for 24p normal footage captured at 29.97.
    Thanks for your help.
    Zac

    Zebulun -
    I did what you suggested. I was able to capture a few clips just fine at 29.97. I also was able to use the dv start/stop detect feature with success.
    However, using the "remove advanced pulldown" from the tools menu yielded the same odd results. It appeared to work just fine, and the info window for the clip says that the frame rate is 23.98 (with lower field dominance), but my time code still reads as it did from the above posting. Up to 29 frames, skipping frames to make it count only 24 times.
    It still seems to play fine. Any thoughts on why my timecode is doing this?

  • Service start stop scripts and Nagios scripts

    Hello. Are there some "official" service start stop scripts somewhere? And: Has somebody already written a Nagios monitoring script for Oracle NoSQL? Thanks, Jesus.

    Hi. Yes, but I mean something like service kvclient start / stop / restart / status, and using e.g. daemon without nohup. Of course one can be written, e.g. I have a simple one based on a script I found in internet long time ago for Cassandra, but then by Murphy's Law you will probably have an "official" one in the .124 version : - ).

  • SQL Command to Start/Stop SQL services for multiple server

    From Central server I want to Start/Stop SQL services and SQL Agent service. Is there any SQL command which I can execute on query analyzer which can Start/Stop SQL services?
    Rahul

    See command line options here using net start
    http://msdn.microsoft.com/en-IN/library/hh403394.aspx
    You can invoke them using xp_cmdshell from management studio as
    ie like below for default instance
    EXEC xp_cmdshell 'net start MSSQLSERVER'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT'
    etc
    and below for named instance
    EXEC xp_cmdshell 'net start MSSQLSERVER$instancename'
    EXEC xp_cmdshell 'net start SQLSERVERAGENT$instancename'
    etc
    and use net stop for stopping services
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    EXEC xp_cmdshell 'net start MSSQLSERVER' EXEC xp_cmdshell 'net start SQLSERVERAGENT' etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • DV Start/Stop issue with DVC Pro 50

    Hey guys/ladies... I'm editing with Final Cut studio 2 (FCP 5) and i want to use the "DV Start/Stop Detect" feature. I'm capturing video with the DV50 NTSC 48KHz codec, however, when I try to use the DV Start/Stop Detect function, it gives me an error that reads "The clip you have selected does not reference a movie that can be analyzed". I've brought this video in via FireWire, and I see in the manual that it should work with DV, DVCPro, DVCPro 50, and DVCPro HD... The deck i'm using is the Panasonic AJ-SD93P (DVCPro 50), and the camera for aquisition is Panasonic AJ-SDX900P (DVCPro 50). What am I missing?
    G5   Mac OS X (10.4.9)   2x 3GHz Dual-Core Intel Xeon

    Ah! the operative word here is "may"... it's bad information I believe. The camera has to have a time of day code function recorded in the signal or it won't work... and only the consumer/prosumer level cameras have this feature. If you can't superimpose the time of day and date over the picture in the recording mode (like consumer cameras do) this isn't going to work.
    FCP reads this code and when it detects a break in time (every time you pause would be when this happens) it can place the markers. But if the feature isn't on the camera, FCP can't read it. I've never read nor seen this work on anything but DV 25 recordings... and then only if the camera has the time of day capability.
    Jerry

  • Command to Start/Stop "Windows File Sharing" on OsX Tiger Client

    Dear Mac Gurus:
    How to use command to start/stop “Windows File Sharing” on OSX Tiger client?
    Thanks!
    Max

    Hi Max,
    Windows file sharing requires two daemons, nmbd and smbd. They can be started/stopped as follows:
    To start (type the following all in a single line):
    sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
    To stop:
    sudo launchctl unload -w /System/Library/LaunchDaemons/nmbd.plist /System/Library/LaunchDaemons/smbd.plist
    The option "-w" indicates that the default setting (whether start them at boot time or not) is also modified (the same effect as you turn them on/off via System Preferences -> Sharing). This means, if you start them and shutdown your Mac without stopping them, then they will be automatically restarted next time you reboot the Mac.
    If you use "load -F" instead of "laod -w", then they are started but the default setting is not modified (if it is off then remains off).
    If you use "unload" instead of "unload -w", then they are stopped the default setting is not modified (if it is on then remains on and will be started at next reboot).
    If you feel the commands are too long to type, then you can devide them into two commands, for example:
    sudo launchctl load -w /System/Library/LaunchDaemons/nmbd.plist
    sudo launchctl load -w /System/Library/LaunchDaemons/smbd.plist
    See launchctl man page for more detail.
    HTH
    PowerMacG4, PowerBookG4, iMac(C2D)   Mac OS X (10.4.9)  

Maybe you are looking for