Automate NetBackup agent installation via RPMHow can I avoid press “Enter” during Java Sun (Oracle) 1.6 installation on Linux (CentOS)Mysql rpm package build for Scientific LinuxBuilding RPM containing passwordsBuilding Tripwire RPM on CentOS6Is it legal to create an RPM which only runs %post scripts to modify a file owned by another RPM?Yum does not install specific RPM version with custom reporpm spec file is not executed on rpm installrpm - how to execute a php file in %post rpmLibrary Dependency is different when checked via yum vs. rpmRPM package dependencies
What is the term for a person whose job is to place products on shelves in stores?
How bug prioritization works in agile projects vs non agile
Is Electric Central Heating worth it if using Solar Panels?
Is there a word for the censored part of a video?
Multiple fireplaces in an apartment building?
Is there metaphorical meaning of "aus der Haft entlassen"?
All ASCII characters with a given bit count
Can someone publish a story that happened to you?
Von Neumann Extractor - Which bit is retained?
My bank got bought out, am I now going to have to start filing tax returns in a different state?
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
What is the unit of time_lock_delta in LND?
As an international instructor, should I openly talk about my accent?
Can I criticise the more senior developers around me for not writing clean code?
What does a straight horizontal line above a few notes, after a changed tempo mean?
How important is it that $TERM is correct?
A faster way to compute the largest prime factor
How do I produce this Greek letter koppa: Ϟ in pdfLaTeX?
How to be good at coming up with counter example in Topology
Island of Knights, Knaves and Spies
How do I reattach a shelf to the wall when it ripped out of the wall?
A Note on N!
Should the Product Owner dictate what info the UI needs to display?
What does "function" actually mean in music?
Automate NetBackup agent installation via RPM
How can I avoid press “Enter” during Java Sun (Oracle) 1.6 installation on Linux (CentOS)Mysql rpm package build for Scientific LinuxBuilding RPM containing passwordsBuilding Tripwire RPM on CentOS6Is it legal to create an RPM which only runs %post scripts to modify a file owned by another RPM?Yum does not install specific RPM version with custom reporpm spec file is not executed on rpm installrpm - how to execute a php file in %post rpmLibrary Dependency is different when checked via yum vs. rpmRPM package dependencies
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to the machine, extract the archive and run an interactive installation script.
So I was thinking about building a custom RPM for this which contains the NetBackup agent installation files and runs a custom expect script to automate the interactive installer. We could then simply push this RPM to the server.
However, I'm new to building RPMs (read: never done this before) so I don't know how to "glue" the parts together. I already have the expect script and of course the agent installation files (tar.gz archive). Now how would I package this all together into one RPM?
Expect script:
#!/usr/bin/expect -d
set timeout -1
spawn ./install
expect "Do you wish to continue?"
send "yn"
expect "Do you want to install the NetBackup client software for this client?"
send "yn"
expect "Enter the name of the NetBackup master server"
send "myserver.example.comn"
expect "name of the NetBackup client?"
send "nn"
expect "Enter the name of this NetBackup client"
send "client.example.comn"
expect eof
Archive: client-7.6.0.1.tar.gz
.
├── Doc
├── install (the interactive installer)
└── NBClients
rpm netbackup
add a comment |
We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to the machine, extract the archive and run an interactive installation script.
So I was thinking about building a custom RPM for this which contains the NetBackup agent installation files and runs a custom expect script to automate the interactive installer. We could then simply push this RPM to the server.
However, I'm new to building RPMs (read: never done this before) so I don't know how to "glue" the parts together. I already have the expect script and of course the agent installation files (tar.gz archive). Now how would I package this all together into one RPM?
Expect script:
#!/usr/bin/expect -d
set timeout -1
spawn ./install
expect "Do you wish to continue?"
send "yn"
expect "Do you want to install the NetBackup client software for this client?"
send "yn"
expect "Enter the name of the NetBackup master server"
send "myserver.example.comn"
expect "name of the NetBackup client?"
send "nn"
expect "Enter the name of this NetBackup client"
send "client.example.comn"
expect eof
Archive: client-7.6.0.1.tar.gz
.
├── Doc
├── install (the interactive installer)
└── NBClients
rpm netbackup
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58
add a comment |
We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to the machine, extract the archive and run an interactive installation script.
So I was thinking about building a custom RPM for this which contains the NetBackup agent installation files and runs a custom expect script to automate the interactive installer. We could then simply push this RPM to the server.
However, I'm new to building RPMs (read: never done this before) so I don't know how to "glue" the parts together. I already have the expect script and of course the agent installation files (tar.gz archive). Now how would I package this all together into one RPM?
Expect script:
#!/usr/bin/expect -d
set timeout -1
spawn ./install
expect "Do you wish to continue?"
send "yn"
expect "Do you want to install the NetBackup client software for this client?"
send "yn"
expect "Enter the name of the NetBackup master server"
send "myserver.example.comn"
expect "name of the NetBackup client?"
send "nn"
expect "Enter the name of this NetBackup client"
send "client.example.comn"
expect eof
Archive: client-7.6.0.1.tar.gz
.
├── Doc
├── install (the interactive installer)
└── NBClients
rpm netbackup
We have an automated process of deploying new RHEL VMs. However, there's still an annoying manual step to install a NetBackup agent on the machine. This requires coyping a large archive (~ 1 GB) to the machine, extract the archive and run an interactive installation script.
So I was thinking about building a custom RPM for this which contains the NetBackup agent installation files and runs a custom expect script to automate the interactive installer. We could then simply push this RPM to the server.
However, I'm new to building RPMs (read: never done this before) so I don't know how to "glue" the parts together. I already have the expect script and of course the agent installation files (tar.gz archive). Now how would I package this all together into one RPM?
Expect script:
#!/usr/bin/expect -d
set timeout -1
spawn ./install
expect "Do you wish to continue?"
send "yn"
expect "Do you want to install the NetBackup client software for this client?"
send "yn"
expect "Enter the name of the NetBackup master server"
send "myserver.example.comn"
expect "name of the NetBackup client?"
send "nn"
expect "Enter the name of this NetBackup client"
send "client.example.comn"
expect eof
Archive: client-7.6.0.1.tar.gz
.
├── Doc
├── install (the interactive installer)
└── NBClients
rpm netbackup
rpm netbackup
edited Feb 9 '15 at 15:13
EsTeGe
asked Feb 9 '15 at 15:03
EsTeGeEsTeGe
1321210
1321210
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58
add a comment |
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58
add a comment |
2 Answers
2
active
oldest
votes
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation, amongst other things you'll probably find the --after-install FILE
useful as it names A script to be run after package installation
.
add a comment |
Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f666188%2fautomate-netbackup-agent-installation-via-rpm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation, amongst other things you'll probably find the --after-install FILE
useful as it names A script to be run after package installation
.
add a comment |
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation, amongst other things you'll probably find the --after-install FILE
useful as it names A script to be run after package installation
.
add a comment |
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation, amongst other things you'll probably find the --after-install FILE
useful as it names A script to be run after package installation
.
Take a look at fpm is allows you to build arbitrary .rpm ( and other package types quite easily). There's plenty of documentation, amongst other things you'll probably find the --after-install FILE
useful as it names A script to be run after package installation
.
edited Feb 9 '15 at 15:38
answered Feb 9 '15 at 15:28
IainIain
105k14165258
105k14165258
add a comment |
add a comment |
Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
add a comment |
Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
add a comment |
Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.
Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.
answered Jun 25 '15 at 6:59
Solaris EnnineerSolaris Ennineer
91
91
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
add a comment |
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
The expect script does more than just creating the client config file. It invokes the installer which does lots of other stuff.
– EsTeGe
Jun 25 '15 at 11:04
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f666188%2fautomate-netbackup-agent-installation-via-rpm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What version of NetBackup were you running?
– chilemagic
May 27 '15 at 17:42
We're using 7.6.0.2
– EsTeGe
May 28 '15 at 11:58