Sponsored Content
Full Discussion: OS settings by commands
Operating Systems OS X (Apple) OS settings by commands Post 303024390 by Neo on Sunday 7th of October 2018 09:55:46 PM
Old 10-07-2018
What are you trying to do, exactly?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Password Settings

Is there an easy way to spit out a screen with all the password setting parameters set out? For example: MINWEEKS=1 MAXWEEKS=8 etc. I'm looking for a way to have all the settings consolidated on a report for inclusion in policy documents. (4 Replies)
Discussion started by: Hoju
4 Replies

2. UNIX for Dummies Questions & Answers

CHMOD settings

Right, I'm really new to the UNIX stuff, and the main reason for posting is as follows: I am attempting to install postnuke on the local council webserver. for web server stats search for http://www.haybridge.worcs.sch.uk here and I am being asked to change the CHMOD settings for two of the... (3 Replies)
Discussion started by: womble
3 Replies

3. UNIX for Advanced & Expert Users

.profile settings

I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that. Please help (1 Reply)
Discussion started by: satgur
1 Replies

4. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

5. Shell Programming and Scripting

enviroment settings

What are the environment setting during a cron session? I have HP-UX and I want to send the output/file from a script to several e-mail addresses. I want to create an env-var to store the e-mail addresses in my .profile, but I do not know if it will be visible when a script is executed in a cron. (4 Replies)
Discussion started by: ALTRUNVRSOFLN
4 Replies

6. Linux

Ip settings

Hi, How to set ip address in linux. Regards, Guguli (1 Reply)
Discussion started by: guguli
1 Replies

7. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

8. Red Hat

SMTP Settings

Hi all, Please help to check weather the SMTP settings are configured or not on my LINUX server? I want to send a mail to mailbox. I know that the target SMTP server has to be configured on LINUX box to do so. How can i see weather it is configured or not? --Ramesh Ch. (3 Replies)
Discussion started by: Raamc
3 Replies

9. HP-UX

Vi Editor Settings For Hp-UX

can any one provide me Vi Edior Settings for HP-UX I searched the forum i cound't able to find much information. 1) Need Vi editor setting for Color Code ... to work in C++ (Highlight Syntax .... as Vi Editor in Linux ... which we enable the syntax) 2)Delete , backspace , arrows , home ,... (3 Replies)
Discussion started by: girija
3 Replies

10. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
xsanadmin(8)						    BSD System Manager's Manual 					      xsanadmin(8)

NAME
xsanadmin -- command-line interface to Mac OS X Server administrative daemon for Xsan SYNOPSIS
xsanadmin [-d | -x] command [command_args] xsanadmin [-h | -v] DESCRIPTION
xsanadmin is a utility for administering services. In general, it gives you access to the same functionality present in the Xsan Admin application. It must be run by root. OPTIONS
The following options are available: -d --debug Print command to the terminal. -h --help Print usage summary and exit. -v --version Print build version and exit. -x --xml Generate output as XML instead of key-value pairs. USAGE
Except when requesting information with xsanadmin -h or xsanadmin -v, you must specify a command to select a specific function to perform. Each command accepts its own arguments. COMMAND SUMMARY
Here are brief descriptions of all the xsanadmin commands: list Returns a list of all available services. start service Starts the specified service. stop service Stops the specified service. status service Returns whether or not the service is running. fullstatus service Returns service specific status information. This generally corresponds to the information shown in the status panel of the Xsan Admin application. settings command_args This command is used to read and write settings information. It can take arguments from the command line or standard input. set can be used instead of settings. command command_args Allows service specific commands to be performed. com can be used instead of command. COMMAND ARGUMENTS
Input and output is done using key value pairs. Keys are specified using colon separated strings, with the first element being the service name (eg. afp:idleDisconnectFlag:adminUsers). Values have types. If the value is in quotes, it is always considered to be a string. Other- wise numbers (5, 10, 8.2) and booleans (yes or no) are converted to the appropriate type. Assignments are always of the form key = value (eg. afp:guestAccess = yes). If only one key needs to be specified (or set), it can be placed on the command line after the command (eg. xsanadmin set afp:guestAccess = yes). However, in some case when doing settings or command, multiple key/value pairs need to be specified. In this case, leaving them out of the argument list (eg. xsanadmin settings) will cause the program to read either keys or key/value pairs from the standard input until an end of file (EOF) is reached. The keys or key/value pairs must be one per line. For settings, if no values are specified for the keys, the key value will be read and printed. Otherwise if there is a key/value pair of the form key = value, the value will be set and then echoed back to the output. In general, the best approach is to fetch the settings for an individual service (eg. xsanadmin settings afp > dumpfile and then using the output as a template for changing settings. Any output when fetching settings can be fed in to set values. When setting array values, special notation is needed. There are two types of arrays. Some arrays have special id keys that allow you to access individual array elements. These are accessed using the special key _array_id followed by the value of the id tag (eg. web:Mod- ules:_array_id:dav_module). To add a new element to such an array, you need to have a special line with a "create" value. For example, to add a new web site to the web configuration, you would need: web:Sites:_array_id:MySite = create web:Sites:_array_id:MySite:enabled = yes etc. To delete an element of an array, use the "delete" value (eg. web:Sites:_array_id:MySite = delete). For command, you always need to specify the command type (eg. afp:command = getConnectedUsers). Commands are highly specific to the individ- ual services. See the examples sections for some possible commands. EXAMPLES
xsanadmin settings all > outfile Stores settings from all services into a file. xsanadmin settings < outfile Will take any settings file and set the values. xsanadmin command < commandFile Will execute a command specified in commandFile. Some examples of commands are: info:command = getHardwareInfo info:variant = withQuotaUsage FILES
/usr/sbin/xsanadmin SEE ALSO
xsanmgrd(8) Mac OS X 04 January 2005 Mac OS X
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy