Can you run following command to check if this command available:
oclip schema-list -product onap-dublin -service aai
NOTE: this command is available from AAI.
If you are not finding service-instance-list command listed , then add the YAML
from
https://github.com/onap/cli/blob/master/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/so-components/service-instance-list-schema-dublin.yaml
into $OPEN_CLI_HOME/open-cli-schema.
And you will get this new command on-the-fly with zero down time !
If auto-discovery is disabled in the OCLIP-> open-cli.properties, then run
following command to re-discover the new command manually
Oclip schema-refresh
Hope this would help you. If you face any issue, let me know.
Regards
Kanagaraj Manickam
Senior System Architect
P&S ONAP
Huawei Technologies India Pvt. Ltd.
Survey No. 37, Next to EPIP Area, Kundalahalli, Whitefield
Bengaluru-560066, Karnataka
Tel: + 91-80-49160700 ext 72410 Mob: 9945602938
[Company_logo]
________________________________
This e-mail and its attachments contain confidential information from HUAWEI,
which
is intended only for the person or entity whose address is listed above. Any
use of the
information contained herein in any way (including, but not limited to, total
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify
the sender by
phone or email immediately and delete it!
From: Vamshi Namilikonda [mailto:[email protected]]
Sent: 01 August 2019 16:18
To: [email protected]; [email protected]; Huang, Haibin
<[email protected]>; Ukponmwan, Itohan <[email protected]>
Cc: Ying, Ruoyu <[email protected]>; Kanagaraj Manickam
<[email protected]>
Subject: [onap-discuss][cli] Command service-instance-list is not available for
product version onap-dublin
Hello CLI team,
When I tried automation script from the following location for vFW automation,
the script executed seamlessly till command "oclip service-instance-list".
Later it fails with following errors (from open-cli.log). Kindly please suggest.
https://github.com/onap/integration/blob/master/test/hpa_automation/heat/hpa_automation.py
root@dev-cli-cli-7d8b9f7454-tq7t5:/opt/oclip/logs# oclip -v
CLI version : 3.0.0 [20190515T051012Z]
Available products: [open-cli, onap-dublin, sample-helloworld]
Enabled product : onap-dublin
To enable a product, use one of following methods:
1. In scripting mode, set environment variable OPEN_CLI_PRODUCT_IN_USE
2. In interactive mode, use the directive 'use <product>'
2019-08-01 09:21:21 ERROR OnapCli:166 - 0x6003::Command service-instance-list
is not available for product version onap-dublin
org.onap.cli.fw.error.OnapCommandNotFound: 0x6003::Command
service-instance-list is not available for product version onap-dublin
at
org.onap.cli.fw.registrar.OnapCommandRegistrar.get(OnapCommandRegistrar.java:255)
at
org.onap.cli.fw.registrar.OnapCommandRegistrar.get(OnapCommandRegistrar.java:238)
at org.onap.cli.main.OnapCli.handleCommand(OnapCli.java:468)
at org.onap.cli.main.OnapCli.handleInteractive(OnapCli.java:440)
at org.onap.cli.main.OnapCli.handle(OnapCli.java:645)
at org.onap.cli.main.OnapCli.main(OnapCli.java:751)
Thanks & Regards,
Vamshi Krishna | Tech Mahindra
Sharda Centre, Off Karve Road, Erandwane, Pune 411 004, INDIA
Mobile: +91 9848639561, ext : 3492
Email Id - [email protected]<mailto:[email protected]>
[cid:[email protected]]<http://www.techmahindra.com/>
============================================================================================================================
Disclaimer: This message and the information contained herein is proprietary
and confidential and subject to the Tech Mahindra policy statement, you may
review the policy at http://www.techmahindra.com/Disclaimer.html externally
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18376): https://lists.onap.org/g/onap-discuss/message/18376
Mute This Topic: https://lists.onap.org/mt/32677459/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-