VMware Cloud Community
hypermike
Contributor
Contributor
Jump to solution

startup/shutdown scripts every upgrade requires updating path --Can we star

Everytime I need to upgrade Hyperic agents, my numerous Solaris/linux startup/shutdown scripts need to change since the path changes to the name of the new version.

like: hyperic-hq-agent-3.0.0/hq-agent.sh
hyperic-hq-agent-3.0.1/hq-agent.sh
hyperic-hq-agent-3.0.2//hq-agent.sh

Is there any way we can just use the same path. ???

I hate to have to modify 100 plus startup scripts just 4 this entry change each time I upgrade.

Is there something I can do to make this easier???

Message was edited by: hypermike
Reply
0 Kudos
1 Solution
12 Replies
ama_hyperic
Hot Shot
Hot Shot
Jump to solution

Do you keep the old version of the agents in the same directory or do you remove them as you upgrade?
admin
Immortal
Immortal
Jump to solution

You can also just symlink the agent directory to the current HQ agent.

ln -s hyperic-hq-agent-3.0.2 hq-agent

Then change all your scripts to use the hq-agent directory.

-Ryan
hypermike
Contributor
Contributor
Jump to solution

I remove the old one ,then download the 1 agent properties file and the new agent software
and install.
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

I just think that if the 3.0.0,3.01.3.02 was just dropped off the directory name, I wouldnt have
to do anything but install the new clients without ever logging into the machine since I use the
properties file for the agent and dont have to interact with the upgrade. Maybe some other Identification mechanism could be created to identy version. Just my thoughts.

I think I would still have to change my soft links evertime I install new agent versions correct??
Reply
0 Kudos
jduino
Enthusiast
Enthusiast
Jump to solution

Using sym links is a very common practice, as it is common practice for
software releases to have the version #'s as part of the path. I noticed
that even Java has started doing that, plus it includes a sym link
(/usr/java/latest -> /usr/java/jre6.X). Perhaps adding a small install
script that sets the proper sym link?

I currently push, install, and modify my links from a central machine with
trusted SSH. Fairly trivial.

John


> I just think that if the 3.0.0,3.01.3.02 was just dropped off the
> directory name, I wouldnt have
> to do anything but install the new clients without ever logging into the
> machine since I use the
> properties file for the agent and dont have to interact with the upgrade.
> Maybe some other Identification mechanism could be created to identy
> version. Just my thoughts.
>
> I think I would still have to change my soft links evertime I install new
> agent versions correct??
>



Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

logging on to 80 systems and changing symbolic links is NO easy task either. If It were software that didnt change much it would be ok. But every 2 oe 3 months is a lot of extra work that I feel is NOT needed.
Reply
0 Kudos
Todd_1215
Contributor
Contributor
Jump to solution

WOW with that many servers to manage I personal would be using a management tool like Webmin to manage them all. That way you could use the cluster module and send a command to all of them to create the symbolic link change in about 2 minutes vs. ?? minutes / hours to login to 80 servers and do it manually.

That's my two cents.
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot
Jump to solution

I have to agree that with 80 systems, management tools are needed. How are you deploying the client updates?
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Since I added the systems one at a time I initially just logged in the server and download
the new afent software. Now that I have numerous Solaris and Linux systems , I dont know
how Im going to do it. The linux admin says he has a way to download to a bunch of systems
at the same time. NOw I have to figure out the best way to update these various systems .
Reply
0 Kudos
BradFelmey
Hot Shot
Hot Shot
Jump to solution

Using ssh keypairs and a script with an argument list of hosts should work.
Reply
0 Kudos
hypermike
Contributor
Contributor
Jump to solution

Thanks. Do you have any sample example scripts , on what you mentioned.
even if its ONt applicable for me. Im NOt sure how you want me to use the ssh keypairs ?
Reply
0 Kudos