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;








0















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









share|improve this question
























  • 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

















0















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









share|improve this question
























  • 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













0












0








0








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















0














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.






share|improve this answer
































    0














    Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.






    share|improve this answer























    • 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











    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer





























      0














      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.






      share|improve this answer



























        0












        0








        0







        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.






        share|improve this answer















        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 9 '15 at 15:38

























        answered Feb 9 '15 at 15:28









        IainIain

        105k14165258




        105k14165258























            0














            Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.






            share|improve this answer























            • 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















            0














            Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.






            share|improve this answer























            • 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













            0












            0








            0







            Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.






            share|improve this answer













            Try to create netbackup client configuration file and put it into RPM package. No need expect script which is for creating client configuration file.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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

















            • 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

















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company