Is there any global command in UNIX?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is there any global command in UNIX?
# 8  
Old 12-23-2010
There was something of the sort on IBM AIX if you had a SP2 with a few nodes, but that ages since last time I saw one... I think you launched on the SP console a command called perspectives but more knowledgeable AIX gurus could confirm as I have poor memory...
SP systems had a few "parallel" commands (you could execute at the console for specified nodes, without passwd for you were to use kerberos...)

---------- Post updated at 16:17 ---------- Previous update was at 16:02 ----------

Do a search on PSSP (Parallel System Support program) IBM AIX...


Good luck
This User Gave Thanks to vbe For This Post:
# 9  
Old 12-23-2010
I think it could be which I've looking for! (cause the man who told me about this was talking about old Unix systems).

Thanks, I'm doing that right now Smilie (I will reply if I find something useful)
Code:
http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=/com.ibm.cluster.pe.doc/pe_422/am10200438.html

---------- Post updated at 06:59 PM ---------- Previous update was at 06:51 PM ----------

I think this could be the answer but I must read it carefully:

Code:
http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=/com.ibm.cluster.pssp.doc/pssp35/am0crmst/am0crmst09.html


Last edited by siavash; 12-23-2010 at 11:28 AM..
# 10  
Old 12-23-2010
That is it but start at the beginning..
I remember now the shell - dsh which was like-but-not rsh for distributed-sh
Was fun ( I worked on a SP2 frame 10 years ago...)
DSH Simplifies the Task of Managing Multiple Systems | AIX | IBM Systems Magazine
This User Gave Thanks to vbe For This Post:
# 11  
Old 12-23-2010
AIX systems still have dsh under CSM (AIX 5.3).

It is possible to write your own dsh (distributed shell). Building on top of dsh I wrote a script gdsh (global dsh, I called it). It uses ssh to run commands on any OS (AIX, HP-UX, Linux).

So, on my MS (management station (CSM), same as CWS for PSSP), I can run my script, gdsh, and run commands on any or all of my Unix/Linux servers.

gdsh is just a shell wrapper for ssh. It's output is also compatible with dshbak.
# 12  
Old 12-23-2010
Thanks vbe, for your help and support Smilie

I will read it ASAP.

---------- Post updated at 08:47 PM ---------- Previous update was at 08:45 PM ----------

Dear purdym,
could you please give me your Global DSH script? (Or at least describing it's mechanism with more details?)

Thank you in advance Smilie
# 13  
Old 12-23-2010
Hi siavash,

the idea behind the script was to replicate what dsh does AIX on all my servers.

The script is nothing special. It's just a loop around ssh. However simpler, it is also very powerful.

Here is how it works:

Code:
gdsh
   Usage: [[-s working_col_file|OS_name] | -w nodename{,nodename}] -c command

   Optional Parameters:
         [-d] [-h] [-n] [-T] [-v]

   Where:
         -C
            Collapses output. Used with dshbak.
         -c specifies the command to run
            Required.
         -d
            Debug mode.
         -h
            Prints this help screen.
         -n
            No Parallel mode. By default the command is run on every node at the same time.
         -s
            Specify a working collective file OR specify an OS name. Use uname -s to specify
             a working collective file with that postfix. ie. /.gwcoll.AIX.
         -T
            Testing mode. NO actual work will be done.
         -v
            Verbose mode.
         -w nodename{,nodename}
            Default: ALL nodes

   Notes:
         One of -s or -w is required.
         Piping the output to dshbak -c will group like results together.
         Use -C with dshbak, or you will get no output.

   Example execution statements:
         gdsh -s /.gwcoll.AIX -c date
         gdsh -s AIX -c date
         gdsh -C -s AIX -c date | dshbak -c
         gdsh -s all.Linux_HP-UX -c date
         gdsh -C -w n,005 -c "date" | dshbak -c

Here's a real example (I did change the host names):

Code:
gdsh -C -c "uname -s" | dshbak -c
HOSTS -------------------------------------------------------------------------
d, iq, m, p, r, t, z
-------------------------------------------------------------------------------
AIX


HOSTS -------------------------------------------------------------------------
001, 002, 003, u04, 005, 006, 007, 010, 011
-------------------------------------------------------------------------------
HP-UX


HOSTS -------------------------------------------------------------------------
101
-------------------------------------------------------------------------------
Linux

In order to make this work I had to setup a separate physical network.
I then run a second SSH daemon.
I had to do those two things because I have different security on this interface and a different ssh configuration.
This User Gave Thanks to purdym For This Post:
# 14  
Old 12-23-2010
Thank you very much,
I got the Idea behind that script Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies

2. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

3. UNIX for Dummies Questions & Answers

Global replace command help

Hello - I am trying to use a global replace command but its not working. Here is the cmd I am using in vi: :%s/OLD/NEW/g However, in my "NEW" I already have a "/" which is not making the replace work: :%s/mytestscript.com:33232/mytestscript:70245/test.com/g the... (2 Replies)
Discussion started by: DallasT
2 Replies

4. Solaris

How to set a global alias in UNIX Solaris?

Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Discussion started by: rbalaj16
3 Replies

5. UNIX for Dummies Questions & Answers

Virtualization of Global Namespace in UNIX

Hi all, I have a small Question here in Unix File System.I am unable to get a proper answer in Internet. Hope someone can get back to me soon. A Unix file system can mount filesystem of several disk partitions to form a single global space. Suppose that you wish to virtualize this global... (1 Reply)
Discussion started by: Pavan Kumar
1 Replies

6. UNIX for Dummies Questions & Answers

Vi global replace command

I am wondering what way, I can remove a certain text with nothing. for example: MyVariable=Y7UHNI to only: Y7UHNI removing 'MyVariable=' globally? thanks (1 Reply)
Discussion started by: DallasT
1 Replies

7. UNIX for Dummies Questions & Answers

set global rm command

Hi, My team does not have root access however many a times my members logon to the unix server and fire the rm command mistakenly on wrong folder and later realise that they have made a mess. The rm -i option prompts for a confirmation before actually deleting the files/folders. I want to... (5 Replies)
Discussion started by: shifahim
5 Replies

8. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

9. UNIX for Dummies Questions & Answers

Unix script to do a global change

I want to write a script to go into a unix directory and recursively change all the instances of a word in every file in every directory and sub directory. Here's where I am now: I can execute find . -print | xargs grep "my_word" to recuresively return all the files with my_word in it. ... (7 Replies)
Discussion started by: progkcp
7 Replies

10. UNIX for Dummies Questions & Answers

Go-Global for Unix V 2.2.4

hi can u help me? i need this software (Go-Global for Unix V 2.2.4) to work on Unix throught the Windows XP operating system, i had looke for this software in the internet and i didn't find it :( So, if any body have this software plz provide it for me and put it as a link to... (1 Reply)
Discussion started by: ahm2002
1 Replies
Login or Register to Ask a Question