Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to automate mksysb To DVD on Aix 5.3

Status
Not open for further replies.

Veraga

MIS
Jan 10, 2008
2
US
I am trying to automate to mksysb command.
Currently I have to run the following commands

smitty mksysb then output it to an ISO image

then I run the command smitty mkdvd choose existing image
The dvd burner is on a different server so after this step I Rcp it to that server then I burn the ISO image.

We have talked about installing a NIm server but no luck on that yet...

Thanks for your help..


 
Press F6 in smit to show the command.

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
I would agree with Mike.

I presume you have rsh setup between the machines so you can take the commands from smitty mksysb and smitty mkdvd menus (using the F6 as suggested by Mike) and then go to the machine where the dvd is located and write a small script to remotely run the mksysb and the mkdvd commands!

So the sequence would be this:
(From the machine with dvd run this commands in a script)

rsh machine_with_no_dvd mksysb (take the rest of the parameters from the F6 on the smit menu)
rsh machine_with_no_dvd mkdvd (take the rest of the parameters from the F6 on the smit menu)
rcp machine_with_no_dvd:/location_of_iso_image /location_of_destination_on_dvd_machine
then issue the command to burn the iso image to the dvd drive!

I hope this is clear.

Regards,
Khalid
 
Ok I am still having difficulty...
Can you explain ??
 
Ok let's start step by step:

let's name the machine with the dvd as VeragaDVD and the machine with no dvd as VeragaNoDVD.

Then you should be able to do the following:

From the VeragaDVD run these commands:

rsh VeragaNoDVD mksysb -i /location_of_iso_image/VeragaNoDVD_image

once this command runs successfully and you see the image VeragaNoDVD_image created in /location_of_iso_image then go ahead with the next command which is copying this image to VeragaDVD machine to burn it to the DVD

(Now assuming you are still in VeragaDVD machine issue this command)

rcp VeragaNoDVD:/location_of_iso_image/VeragaNoDVD_image /location_of_destination_iso_image

Now you will have the VeragaNoDVD_image image in VeragaDVD machine in the /location_of_destination_iso_image directory

Now you are able from VeragaDVD machine to burn it directly to the tape using mkdvd command.

You can find the exact mkdvd and mksysb commands that you use by pressing the F6 on the smitty menu after updating your choices.

My apology on the previous comment coz the sequence of your script should be this way instead:

Code:
rsh VeragaNoDVD mksysb -i /location_of_iso_image/VeragaNoDVD_image
rcp VeragaNoDVD:/location_of_iso_image/VeragaNoDVD_image /location_of_destination_iso_image
mkdvd -d /dev/cd1 (assuming that this is the command u use for mkdvd)

Please let me know which step that you are not getting so i can elaborate more.

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top