Problem with PACLI command

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Problem with PACLI command

L4 Transporter

Field_Content_versions_oct20__0682J0000065lyqQAA.pngI copy script for pacli from this link https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/PACLI-Overview.htm?Highlight=pacli#h2-item-2

But it does not work. Errors you can see on this screanshotsField_Content_versions_oct20__0682J0000065lybQAA.png

Screanshot of scriptField_Content_versions_oct20__0682J0000065lylQAA.png

Vault user Vajda is exist and have access to safe Golf, Vault name is "Vajda", it's you can see this screanshot:

Field_Content_versions_oct20__0682J0000065lz0QAA.png

Screanshot of vault.ini file (ip and port is correct)

Field_Content_versions_oct20__0682J0000065m0NQAQ.png

1 accepted solution

Accepted Solutions

L4 Transporter

I would recommend you to always try with PowerShell. Also, do a "type vault.ini" to check if there are invisible characters around. Encoding is a b****.

 

Hope this helps.

 

Workaround would be to use:

DEFINE VAULT=vault ADDRESS=address

instead of the DEFINEFROMFILE.

View solution in original post

8 REPLIES 8

L7 Applicator

Looks like there is space in the vault.ini file

can you try this

VAULT="DemoVault"

ADDRESS=192.168.0.71

Hope it helps.

It is does not help, i try to enter combination

VAULT="DemoVault"

VAULT = "DemoVault"

VAULT="Demo Vault"

VAULT = "Demo Vault"

VAULT=DemoVault

VAULT = DemoVault

VAULT=Demo Vault

VAULT = Demo Vault

in vault.ini file and in script but error is same with previous

Field_Content_versions_oct20__0682J0000065nVgQAI.pngField_Content_versions_oct20__0682J0000065nVlQAI.pngField_Content_versions_oct20__0682J0000065nVqQAI.png

L4 Transporter

I would recommend you to always try with PowerShell. Also, do a "type vault.ini" to check if there are invisible characters around. Encoding is a b****.

 

Hope this helps.

 

Workaround would be to use:

DEFINE VAULT=vault ADDRESS=address

instead of the DEFINEFROMFILE.

Also, check the requirements are all okay.

Sorry, but it does not help too, i have new error "Error: parse error, expecting `__PACLI_STRING'"

 

Field_Content_versions_oct20__0682J0000065nXhQAI.png

vault.ini file hasn't any invisible characters, you can see this on this screanshot:

Field_Content_versions_oct20__0682J0000065nXmQAI.png

And sreanshot of script code

Field_Content_versions_oct20__0682J0000065nXrQAI.png

 

L4 Transporter

You are using VAULT with different names. Unify that name. Quotate every parameter just to make sure. And also, if you want my opinion. Use the DEFAULT FUNCTION to set your VAULT and USER parameters only once.

 

Btw, what I meant about Powershell was that you made a new script for powershell (ps1 format).

 

can you try

PACLI INIT

PACLI DEFINE VAULT="Demo Vault" ADDRESS="192.168.0.71"

PACLI DEFAULT VAULT="Demo Vault" USER="vajda"

PACLI LOGON

PACLI OPENSAFE SAFE="Golf"

 

 

PACLI

OOOOH, thank you so much. It is work!

Glad to hear 🙂

  • 1 accepted solution
  • 1335 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!