is it ok to run AIX mksysb script on vio servers?


 
Thread Tools Search this Thread
Operating Systems AIX is it ok to run AIX mksysb script on vio servers?
# 1  
Old 08-04-2008
Error is it ok to run AIX mksysb script on vio servers?

Hi to all

now we running mksysb to nim on aix servers.
we are planning to take mksysb from vio servers.
can we use the same script for vio servers.

thanks
# 2  
Old 08-04-2008
with VIO you'd rather use the
# backupios
command
IBM Redbooks | NIM from A to Z in AIX 5L
# 3  
Old 08-04-2008
thanks shockneck
i through the book
i got few intresting points

thanks alot
# 4  
Old 08-08-2008
We create mksysbs to our NIM server for our vio servers automatically by NFS mounting a directory on our NIM server and sending the backups there. Here is the script we use. Perhaps you can modify it to meet your needs. This runs out of root's crontab and is generic so it can be copied to all your VIO servers and run without having to be modified. We save all our mksysbs into nimserver:/export/mksysb:

Code:
exec 2>&1
exec 1>${0}.out

# Mount NIM server
/usr/sbin/mount nimserver:/export/mksysb /mnt

echo "backupios started at `date`"

# su to padmin and execute the backup to the NFS on nimrod
su - padmin -c '
        ioscli backupios -file /mnt/`ioscli hostname` -mksysb
'

# If the file exists, then we are good
if [ -f /mnt/`hostname` ]; then
        if [ $? -gt 0 ]; then
                echo "Copy to nimserver failed"
        else
                echo "backupios (mksysb) completed at `date`"
        fi
else
        echo "backup file not found."
fi

# Unmount nimserver
/usr/sbin/umount /mnt

# 5  
Old 08-15-2008
hi this is the command , i am using from nim server.

nim -o define -t mksysb -a server=master -a location=/export/mksysb_dev/VDEVVIO1/vdevvio1.mksysb -a source= vdevvio1 -a mk_image=yes -a size_preview=yes -a verbose=yes -a mksysb_flags=ipX vdevvio1_08152008

for this, i am getting following error,

0042-001 nim: processing error encountered on "master":
0042-006 m_mkbosi: (From_Master) connect A remote host refused an attempted connect operation.
vdevvio1: A remote host refused an attempted connect operation.

can anyone please help me on this issue.

thanks
# 6  
Old 08-15-2008
Have you setup vdevvio1 as a NIM client yet?

Try logging into your vdevvio1 server as root (login as padmin, then oem_setup_env) and running "smitty nim" and set it up as a NIM client. This may be what the problem is.
# 7  
Old 08-15-2008
i got these options, which one i need to set..

cust, update_all, bos_inst , diag ,reset, maint_boot ,restvg .

thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run a shell script on all 15 servers at the same time?

We have 15 servers. Hostnames for these 15 servers are stored in a text files and loop through each server to connect to the remote server and run a command, but this loop process runs the command one after another. However, the requirement is to run the same command on all 15 servers at the same... (10 Replies)
Discussion started by: laknar
10 Replies

2. Shell Programming and Scripting

Run a script on multiple servers

I need to run a script on a bunch of remote servers. how can this be done without ssh into each individual server and run it its under /sbin/script.sh on each server (1 Reply)
Discussion started by: tdubb123
1 Replies

3. AIX

How to write a script to run without password on a batch of servers?

I need run a command such as ps -ef |grep xxx on a batch of servers, how to write a script to run it without password? don't need go in each server to check? Thanks (7 Replies)
Discussion started by: rainbow_bean
7 Replies

4. AIX

Mksysb for vio servers

Dears i have a total of 6 VIO servers i was trying to take a mksysb to the VIOs through NIM server but i can not process with it (6 Replies)
Discussion started by: thecobra151
6 Replies

5. UNIX for Dummies Questions & Answers

Script to run in vio server

I want to grab all the luns in vscsi disks from vio that are assigned to client lpars. They are not powerpath disks. Now when I do lspv as root in vio server I see 956 disks..the problem right now is that each disks lun are in hex so when I do lscfg vpl from vio..the FRU number is on hex. Can... (3 Replies)
Discussion started by: pregmi
3 Replies

6. Shell Programming and Scripting

Run a script in parts on 2 servers

Hi all, I have a task for which I need to run some commands on one server1 and then jump from the server1 (using ssh and asking user to enter login credentials manually for server2 server) to server2 and run some commands there and exit. I know the script I need here but problem is when I... (5 Replies)
Discussion started by: pat_pramod
5 Replies

7. Shell Programming and Scripting

Need a script to run on multiple mail servers..

Hello, I am a Unix newbie and I need a script in which I can run a command on multiple servers at work. The command is to start a storage process and I am sick of doing it manually on all servers.. Here's the command: /opt/bss/bin/snmptable -CB -v2c -c P67LzuBm hostname hrStorageTable... (4 Replies)
Discussion started by: kinyyy
4 Replies

8. Shell Programming and Scripting

How to run same script on multiples servers

Hi All, I have some script that run some commands and send results to my email. I want to run same script on mulitiple servers. How can I do that. I know there is an option "ssh". But I'm not quite sure how to use it in the script. And also. scripts has some parameters like following, if :... (10 Replies)
Discussion started by: s_linux
10 Replies

9. Shell Programming and Scripting

script to automate mksysb via nim in AIX 5.3

#!/bin/ksh # # nim_mksysb # get mksysb from each client machine specified with -m. If no # machines specified, get mksysb from ALL machines. -r flag says # remove oldest existing mksysb for the machines being backed up. # use -n no_make flag with -r to remove a generation of mksysb, #... (0 Replies)
Discussion started by: barkath
0 Replies

10. AIX

Restoring mksysb to vio lpar?

I have a standard template I deploy for each of my AIX servers. It's in a mksysb format which I pulled via the nim server after I originally set it up. I'm trying to restore this mksysb over the wire to a remote system. The remote system is an lpar running under vio (no HMC attached). The disk... (1 Reply)
Discussion started by: scottsl
1 Replies
Login or Register to Ask a Question