• United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.206

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Any command to accept apiconnect license?

270003YHW8 gravatar image
Question by GauravBhattacharjee  (80) | Apr 19, 2016 at 01:37 AM apiconnect

Hi,

I have a node application setup on git and inside that have a shell script in which I am trying to run the apic commands to login to an API connect server.

Here is the script content as of now.

APIC=$(pwd)/node_modules/.bin/apic

echo "\n BEFORE API login" ${APIC} login --server apiconnectserver --username ${APIM_LOGIN} -password ${APIM_PWD}

This shell script is being invoked by a Jenkins (Jenkins setup is in linux) task. The issue that I face is that whenever the apic command is invoked I get the following message.

Please review the license for API Connect available in /home/jenkins/jenkins_root/workspace/script_gaurav/scripts/node_modules/apiconnect/LICENSE.txt and select yes to accept. (Use arrow keys) ❯ yes no [?25l[?25h

Now since this is in a script, I can't find a way to accept the license. Is there any apic command or any other way that can help to accept the license from within the shell script? Or am I doing something wrong here?

Thanks, Gaurav

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
270003YHW8 gravatar image
Accepted answer

Answer by GauravBhattacharjee (80) | Apr 19, 2016 at 01:41 AM

OK. As I posted this query, one of my colleagues tried this command echo "yes" | apic So for anyone who has a similar issue, following script would resolve the issue.

APIC=$(pwd)/node_modules/.bin/apic echo "yes" | ${APIC} login --server apiconnectserver --username ${APIM_LOGIN} -password ${APIM_PWD}

Thanks Gaurav

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100023SE2 gravatar image

Answer by Gr3g (1) | Aug 24, 2018 at 06:17 AM

You can execute the following command to programmatically accept the license...

apic --accept-license

And this command to disable analytics...

apic --disable-analytics

Source: https://www.ibm.com/support/knowledgecenter/en/SSFS6T/com.ibm.apic.toolkit.doc/rapim_cli_command_summary.html

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100023SE2 gravatar image

Answer by Gr3g (1) | Aug 24, 2018 at 06:23 AM

And just to make it clear, you can obviously do both at once...

apic --accept-license --disable-analytics

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

57 people are following this question.

Answers

Answers & comments

Related questions

Unable to delete a catalog due to a hanging plan 1 Answer

Cannot find the TLS profile "client:Loopback-client" with API Connect 3 Answers

API Connect & delay in publishing documentation to developer portal 6 Answers

Unable to discover tables in SQL database which has schema other than "dbo." 0 Answers

Roles and Scopes in API Connect 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • DataPower
  • Decision Optimization
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges