1753659 Members
5868 Online
108798 Solutions
New Discussion юеВ

Re: swreg

 
SOLVED
Go to solution
Steven E. Protter
Exalted Contributor

Re: swreg

Shalom,

So set up the ip address in /etc/hosts to support hostname in the local system.

ip address hostname

You can support any format you want this way.

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
Mel Burslan
Honored Contributor

Re: swreg

Now I see what you mean...

You are looking for the file:

$HOME/.sw/defaults.hosts

if you edit this file, you will see a asection like this:

swinstall.hosts_with_depots = {
server1
server2
server3
}

along with other sections. In order to browse this server by selecting it in the drop-down items, your server name must be in this swinstall.hosts_with_depots section.

HTH
________________________________
UNIX because I majored in cryptology...
Bill Hassell
Honored Contributor

Re: swreg

> swinstall -s 10.11.10.34:/tmp/PHNE_39872.depot

You are missing a very important part of the swinstall command: the list of products to be installed from the depot. Add an escaped * at the end like this:

swinstall -s 10.11.10.34:/tmp/PHNE_39872.depot \*

Now the interactive window won't pop-up with confusing choices.


Bill Hassell, sysadmin
himacs
Super Advisor

Re: swreg

Hi Bill,

I have tried with suggested by u.But enede with error which i have attached..

I used below command..
swinstall -p -s 10.11.10.34:/tmp/PHNE_39872.depot\*

Hi Steven,
Hostname is fine,has all the needed entries.

Hi Mel,

I didnot find any file as u mentioned in target server

$HOME/.sw/defaults.hosts

regards
himacs
Dennis Handly
Acclaimed Contributor

Re: swreg

>Mel: imitating to be on a tape. And since sw commands do not support remote tape drive access, what you are seeing makes perfect sense.

I recently ran into this and mentioned it. You can swreg your tape depot and swlist it but you can't swinstall.

>then register this directory as a depot

No need since swcopy does that.
Mel Burslan
Honored Contributor

Re: swreg

> Hi Mel,

>I didnot find any file as u mentioned in target server

Then you should not see any hosts listed other than the local host name when you highlight the source host and hit enter. If you need another hostname to appear on this list you will need to have this file.

And please pay attention to what I have said before and what Dennis has concurred. .depot files are to be used on the local host, not to be used on a remote host as a remote depot. If you have the depot file, why don't you get the single file copied to this host and do your install ? If this is going to go onto too many hosts, the use swcopy to create a depot on the source server, which you can access from anywhere on your network.
________________________________
UNIX because I majored in cryptology...
Sudeesh
Respected Contributor

Re: swreg

There is no point in doing swreg for a *.depot file. You will be able to use it locally but not from remote systems.

You should swcopy the depot first to a folder and then swreg the folder to do remote installs.


Thanks

Sudeesh
The most predictable thing in life is its unpredictability
Dennis Handly
Acclaimed Contributor

Re: swreg

>Sudeesh: There is no point in doing swreg for a *.depot file.

Right, you can only do swlist, probably not that useful.
Tingli
Esteemed Contributor

Re: swreg

I still think remote installation is possible when the depot can be seen from swlist -l depot. But I don't know why it doesn't work.

How about /tmp? is it a link to somewhere else or just the real directory?
himacs
Super Advisor

Re: swreg

Hi admins,

yes i can copy depot to all the nodes and install locally.

But then whats the use of swreg...?

As sudheesh advised let me do a swcopy before swreg..


regards
himacs