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

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020