Operating System - HP-UX
1756379 Members
3055 Online
108847 Solutions
New Discussion юеВ

Re: copy only netconfig from ignite tape ?

 
SOLVED
Go to solution
DnD_1
Regular Advisor

copy only netconfig from ignite tape ?

hi,

was wondering, is there any way we can copy only netconfig file from ignite tape ?

thanks!!
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: copy only netconfig from ignite tape ?

shalom,

You have to run some mt commands to get past the tape header, then you can extract any file you wish.

http://home.tampabay.rr.com/batcave/ignite.htm

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=382566


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DnD_1
Regular Advisor

Re: copy only netconfig from ignite tape ?

i am extracting only netconf file, here are the command i will use,

mt -t /dev/rmt/0m rew
mt -t /dev/rmt/omn fsf 1
cd /tmp
tar -xvf /dev/rmt/omn/ etc/rc.config.d/netconf

will it work ?

another question is, i can insert the tape and do it from the normal command prompt or i should do it from reboot ?
Kenan Erdey
Honored Contributor

Re: copy only netconfig from ignite tape ?

Hi,

Note that usage mt -t is Obsolescent mt -f you can use. and device file ends with 0mn not omn. You can use these commands from command line.

Kenan.

Computers have lots of memory but no imagination
Pete Randall
Outstanding Contributor

Re: copy only netconfig from ignite tape ?

No, you do not need to reboot. This can be done from the command line. Pay attention to your device file, though. You call it /dev/rmt/0m part of the time, and /dev/rmt/om the rest of the time.


Pete

Pete