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

            RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos