Can I manage resource designates via the command line?

I would like to manage resource designates via the command line and
the <i>"unires"</i> command does not seem to have this function. Could I use
<i>"uniadmrights"</i>?
# uniadmrights -e -add -resrc -n 10000
<br>
-e modify user rights, search filter
<br>
-add set user right on (-e only, default)
<br>
-resrc resource administration
<p>
The <I>uniadmrights</I> command is not able to assign designate rights. You can assign
rights such as the ability to create and manage public and administration
groups. The "Resource administration" flag exists so far only on the
server side, and it is currently not used by the client. This is for future use.
<p>
There are two ways to assign a designate to a resource:
<ol>
<LI>Log on as the resource via the client. There are only a few commands
available, one of them being the "Access Rights".
<P>
<LI>On the server side:
<P>
Edit the /users/unison/misc/resource.ini
file and create a new section to specify the resource designate.
<P>
[DES]
Designate0 = S=Lastname/G=Firstname
<P>
Run the unires command as follows:
<P>
% unires -mod "R=resourcename" -s DES 10000
[sysOpPsw]
</OL>
<P>
<B>Note:</B> The full resource name should be used eg. "R=Resource/N=1/CA=2/ID=2
57"

This sounds like a job for wget . You'll have to build and run it on Unix or Cygwin.
You could also build a test suite to do this in various testing tools. You could even write a short Perl or Groovy script to do this, or a slightly longer Java class.

Similar Messages

  • Setting proxy servers via the command line

    I am looking to find out how to set up the system to use http and https proxies via the command line instead of through system preferences. How do I do this. I have basic command line knowledge.

    This information is stored in a plist file and is easiest to manipulate with PlistBuddy. For example, to set the HTTP proxy name, use:
    /usr/libexec/PlistBuddy -c "Set NetworkServices:6CFBA910-E4A0-4418-82E5-66A6480EBC71:Proxies:HTTPProxy http://my.proxy.com" /Library/Preferences/SystemConfiguration/preferences.plist
    Note: 6CFBA910-E4A0-4418-82E5-66A6480EBC71 is a UUID and likely to be unique on each machine. I don't have another Mac handy to check this. If so, you'll need to do some heavy to find out which one is the interface you need to address.
    Try man PlistBuddy and/or a web search for more information on how this tool can be used.
    Try man PlistBuddy or a web searc for more info on using it.

  • How do I open a PDF to a specific page via the command line?

    Several questions about opening PDFs from the Mac OS X command line:
    1) How do I use the "open" command to open a PDF to a specific page? (I know I can open a document via: open doc_name.pdf)
    2) How do I use the "open" command to pass multiple arguments (page no, zoom scale, view mode, etc...) to open a PDF file in a specific manner?
    3) Does Preview handle the same parameters as Acrobat Reader? If not, what are the differences in options?
    I've spent hours searching for this answer and have come up dry. I've downloaded Adobe's "PDF Open Parameters" document -- it lists all of the parameters I need, however I can't get any of them to work from the command line.
    My goal: Open a PDF from the command line to a specific page. At first glance, I thought this would be simple to do and find -- however, after a lot of searching I haven't found an example on how to do it.
    Anyone have any experience doing this, and care to share?
    Much appreciated! ---> Kelsey

    I don't know of any way to do what you want using the 'open' command. It can probably be done with Applescript, which you could call from a shell script. The Preview application doesn't seem to be scriptable. I don't use Acrobat, so I can't tell you anything about that. Looking through the dictionaries of the apps I do have, it seems that Skim (another PDF viewer) has an AS 'page' class. Below are a couple of links that may get you started. Look for more specific guidance in Applescript forums.
    http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript
    http://links.tedpavlic.com/shell_scripts/skim

  • Sending Reporting Services report via the command line

    I would like to either execute a subscription that sends a report via email on demand.  That or just email the report without having to edit the subscription date.  Can this be done from the command line?  I see there is the rs.exe utility
    that allows you to deploy reports and run configuration commands, but I would like to execute and email the report.  Is this possible?

    The easiest way to run a subscription manually is to run the agent job in SQL server that is associated to the subscription.  You'll need to know the subscription ID to do that.  So, you could either run it through SSMS, or if it needs to be in
    command line, interact with SQL Server via command line and do so.
    You can use the ReportService2010 API methods and and powershell script to identify the subscription ID
    https://msdn.microsoft.com/en-us/library/reportservice2010.reportingservice2010.aspx?f=255&MSPPError=-2147217396

  • How to initialize consumer from supplier via the command line ?

    We have a small directory that gets loaded from scratch every night.
    We also setted up replication to a couple of consumers (read only).
    The problem is that since the data is loaded everynight, we get compliants in logs "Replica has a different generation ID than local database"
    I can initialize the consumers via the gui. But how to do it from the command line from the master ? I know that an option is to do a db2ldif and then an ldif2db on the consumer but it's not an option for us.
    I also tried setting the nsds5beginreplicarefresh to start, but that doesn't seem to do a full init.
    There must be a way, as the gui actually does it.
    TIA

    Basically it's very simple. Supposing your replication is already setup and you reload data to your master. If you want the initialization pushed to all the replicas automatically, you can simply setup a flag in all the agreements. This flag is called nsDS5BeginReplicaRefresh.
    Please check the link:
    http://docs.sun.com/source/816-6699-10/confattr.html#18194
    nsDS5BeginReplicaRefresh
    Allows you to initialize a replica. This attribute is absent by default. However, if you add this attribute with a value of start, the server reinitializes the replica and removes the attribute value.
    Property
    Value
    Entry DN
    cn=ReplicationAgreementName,cn=replica,cn="suffixName",
    cn=mapping tree,cn=config
    Valid Range
    stop | start
    Default Value
    N/A
    Syntax
    DirectoryString
    Example
    nsDS5BeginReplicaRefresh: start
    Please note that this value is absent by default and will disappear whenever initialization to replica finished. Next time whenever you want it to happen again, use ldapmodify to set this flag up.
    Also, if you want this happen to all the master's replicas, you have to setup for all the agreements.
    I already tested and it turns out very magic.
    So what you should do is whenver your master get reloaded, when it gets finished, call ldapmodify to set the attribute to be "start".
    Hope it helps!

  • How can I start System Preferences from the command line?

    Hello All,
    I have an issue I'm not quite sure how to solve. I have been tasked within my business environment  with tightening security on a Mac Leopard system and I've been granted Admin Rights to do this on a temporary basis.
    The problem is as follows:
    1) The original Sys Admin that set up this system is gone, no longer available.
    2) He was a Dvorak Keyboard fan and set up the system for a Dvorak Keyboard.
    3) The system actually has a standard Apple keyboard and is marked accordingly, i.e., qwerty (Most Users in the building have stopped using this system altogether - a terrible waste of a good system - even though some of their apps can be run normally (US style qwerty settings). The command line is useless, as is texteditor.app and a few others unless you know Dvorak layout)
    5) When I open System Preferences, the Dvorak keyboard checkbox is grayed out and I cannot change it. There is no lock at the bottom of that particular screen for me to unlock.
    6) Even though I select the US Keyboard at Login, and some apps work accordingly (like MatLab for example) the terminal is borderline useless. I spent over 2 hrs yesterday doing what should have been able to be done in about 30 minutes. I estimate a frustrating and mistake prone additional 8 to 10 hours to do what is normally a a 4 hour job at the command-line.
    7) I do not have the time or desire to re-mark all the keys on the keyboard, particularly since it is not my call to do so, nor do I have the time to re-learn Dvorak touch-typing, and finally I do not want to re-load the entire system. I just want to change the darn keyboard to a standard qwerty keyboard that is somewhat useful in a terminal environment with vi, command line, etc. It's either that or I go mildly insane
    This is frustrating as all get-out. The new Admin logged in and was able to uncheck his Dvorak settings (he is not a UNIX guy, nor is he comfortable om Macs), and we were hoping this was a system wide setting, but No. We re-booted the system, I logged in, still Dvorak, and the checkbox was still grayed out.
    So I figure, short of re-loading the entre system and all the applications necesary, I can either start the Systems Preferences GUI using sudo and hopefully that will change system-wide settings, or I can delete the .AppleSetupDone file and resetup the system (if the keyboard settings are part of the setup) without spending a couple of days reloading everything and re-setting up users, networks, etc.
    Needless to say, I am hoping for the easiest and quickest solution to this extremely frustrating and  aggravating problem.
    Thanks.

    For my situation the following C# code does the job:
        Process.Start(
           @"c:\Program Files\National Instruments\CVI71\cvi.exe",
           @"c:\temp\experiment.c" );
    The file must already exist.

  • Visualizer via the command line?

    Does anyone know of a way to start iTunes from the command line with the Visualizer engaged? (preferably in full screen mode). My mother-in-law likes to have the Visualizer running even when not listening to music, so I was wondering if it possible to activate it as a type of screen saver.

    Not being able to browse is a common problem under Sno. Adding a new location has worked for some.
    Go System Preferences > Network > Location.
    Edit location (whatever name you want).
    Click + and then click done.
    Try your browser.
    And, here is another possibility that has worked for others.
    Go Finder > Your HD > Library > Preferences > SystemConfiguration.
    Move the SystemConfiguration folder to your Desktop.
    Restart.
    Try your browser.
    Keep your System Configuration folder for a while just in case.

  • Rollbak of SPAM transaction via the command line

    Hi All,
    Can you please tell me, what command line can I exucute in order to rollbak the installation of an addon via SPAM?
    I can't not connect to my SAP solution manager via SAP GUI because the installation of the Addon failed.
    Thanks

    Once applied you cant uninstall the patch. So its better to open an OSS call with SAP to resolve your issue
    Thanks
    Prince Jose

  • Why can't I kill db_stat at the command line?

    Hi,
    I have been running the db_stat utility on a couple of mid-size databases, however I do not seem to be able to kill the process with ctl+c, and was wondering why this is should be the case? For some reason this command, and the $ kill PID command seem to have no effect. I am running fedora core 4.

    hello,
    ctrl-c would not stop db_stat, but kill -9 <pid> should work.
    You can always try a truss or the equivalent on your system
    to check what is going on.
    One thing to note is that recovery needs to be performed after
    killing a process holding Berkeley DB locks. This is discussed at:
    http://www.oracle.com/technology/documentation/berkeleydb/db/ref/program/appsignals.html
    thanks,
    Sandra

  • Can apple mail be used from the command line?

    Can the Mac Mail application be used from the OSX command line?  Has anyone installed
    a command-line, Linux-like mail application to run on OSX?

    I don't know about the Mail app, but have you tried installing and configuring postfix? Here is a link to a blog with some details for a postfix solution.

  • Using DHCP via the command line

    Hi,
    I'm using a PowerMac G4 with OSX 10.4 as a home server machine. This weekend, my ISP did some kind of network change and now this computer isn't able to connect to the internet. I use DHCP to connect, and on two other Macs I was able to go to network settings, turn off DHCP and turn it back on - and they can connect just fine now.
    However, I have no display connected to the PowerMac and thus I can only connect to it locally over SSH and VNC. This means that if I were to turn off DHCP, my connection to the machine would die and I wouldn't be able to do anything.
    So now I'm looking for a way to make a script that will turn off DHCP and re-enable it. The problem is that I have no idea what the GUI preferences actually do. Are there command-line commands I can use for this? Any help would be greatly appreciated.
    Thanks in advance,
    Cosmo

    You could use the ifconfig command to bring the network interface down and back up again.
    sudo ifconfig en0 down
    sudo ifconfig en0 up
    however this will of course break your connection if remotely administrating the mac.
    So you would be best writing a script that would carry out both commands.

  • Is there a tool to execute an swf via the command line?

    I have two video cameras connected to a linux box via usb and I want to send the streams from those cameras to a flash media server. But to do that I don't want to have to run X and a browser, because I'm running on an embedded system, I can't afford those processor cycles.
    Please Help!

    On Thursday 24 Apr 2008, John Brahy wrote:
    > I have two video cameras connected to a linux box via usb and I want to
    > send the streams from those cameras to a flash media server. But to do that
    > I don't want to have to run X and a browser, because I'm running on an
    > embedded system, I can't afford those processor cycles.
    Please
    > Help!
    I'd look at non-Flash solutions here, such as the many webcam/security system
    Linux has available.
    Tom Chiverton
    This email is sent for and on behalf of Halliwells LLP.
    Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.
    CONFIDENTIALITY
    This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
    For more information about Halliwells LLP visit www.halliwells.com.

  • Need to delete urlbar history via the command line

    I need to embed a line in our login script that deletes the url bar history from Firefox, as part of our needs to keep browsing histories private. How can I do this?

    The only way to do that would be to delete places.sqlite in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder].
    Places.sqlite also stores the bookmarks, but Firefox will restore those from the most recent JSON backup in the bookmarkbackups folder.

  • Instructions: easy roaming wifi via the command line

    First off, you don't need netcfg, wicd, or networkmanager for this. All you need is ifplugd, wpa_supplicant, and the Arch initscripts.
    If you don't already have ifplugd and wpa_supplicant, install them.
    # pacman -S ifplugd wpa_supplicant
    Now put this in /etc/wpa_supplicant.conf (replace the file if it's already there):
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=network
    eapol_version=1
    update_config=1
    fast_reauth=1
    ap_scan=1
    network={
    key_mgmt=NONE
    and this in /etc/rc.local, replacing "wlan0" with the name of your wireless interface:
    # Start wpa_supplicant on wireless interface
    echo "Starting wpa_supplicant"
    wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant.conf -B || echo " ... FAILED"
    In /etc/ifplugd/ifplugd.conf, uncomment the section relating to wlan0, and if necessary rename it. Add wlan0 (or whatever) to the interfaces controlled by ifplugd.
    Finally, in /etc/rc.conf, add your wireless interface (in my case wlan0) to the INTERFACES list:
    wlan0="dhcp"
    INTERFACES=(foo bar baz ... wlan0)
    Add ifplugd to your daemons list and remove network (or wicd or networkmanager). And that's it, you're done. wpa_supplicant will auto-associate with the nearest open network, and when it does, ifplugd will run dhcpcd and connect you. To select another network you can use wpa_cli or wpa_gui, and ifplugd will connect you automatically. Simple, fast, and it works.

    This should go on the wiki, not the forums

  • How can I start a second window of a second profile through the command line?

    I have two profiles set up, 'default' and 'second'. If both are already running how can I start a second window of profile 'second'?
    firefox -p 'second' : opens a new window of the default and,
    firefox -p 'second' -no-remote : tells me that firefox is already running.

    I don't think that this is possible.<br />
    You need to open this second instance (Firefox profile folder) with the -no-remote command line switch and that makes it impossible to open external links via the command line or via a double-click.<br />
    You can only open a link in such an instance by dragging the link on the tab bar of that Firefox window.

Maybe you are looking for

  • Identifying long running reports via SQL

    I need to generate a list of reports which took longer than a specified duration threshold to run, and I am trying to build a Query Builder select statement which compares the start and execution end time of report instances.    I see from CMC Instan

  • Error in running juit test case for struts2 action class

    Hi, I am getting error when i am running my junit test case for struts2 action class. Here is the code. public class RoleMasterNewActionTest extends StrutsTestCase {      public void setUp() throws Exception {         super.setUp();         ObjectFac

  • ClassNotFoundException with Custom OWSM Policy in Oracle Service Bus

    Hi All, I have a situation where I have created a custom web service manager policy. When I attach this policy to an Oracle Service Bus Proxy Service and invoke the service I get a ClassNotFoundError Caused By: java.lang.ClassNotFoundException: au.co

  • Cannot install 8GB on my mac mini

    When I install two 4GB super talent modules on my mac mini I get 3 beeps. However, if I install one module only or mixed 4GB and 1GB modules it works fine. What could be wrong? My modules are Super-Talent w1333sb4gm Thanks in advance

  • Does it do any good to use a "N" router with a "G" computer

    I need a little more range not speed. I see extended range "G" routers but they cost as much as an "N router.  I would continue to use a standard "G" internal card in the computer.