Idira Remote Access: command not found when entering the command remote-access-cli

Idira Remote Access: command not found when entering the command remote-access-cli

83
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:10 PM


Question


alero cmd error.png
Getting the above "command not found ... " when entering the command to login connector cli "remote-access-cli", confirmed connector has been installed on the machine.


Environment


21.6 Identity Alero SaaS

Answer


This could be related to the PATH value:

Command is located here: /var/lib/snapd/snap/bin/remote-access-cli OR soft link: /snap/bin/remote-access-cli
[root@localhost ~]# whereis remote-access-cli
remote-access-cli: /var/lib/snapd/snap/bin/remote-access-cli
[root@localhost /]# cd /snap/bin/
[root@localhost bin]# ll
total 0
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.env -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.evil -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.sh -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jun 6 15:31 remote-access-cli -> /usr/bin/snap

$PATH shows where to find command for execute. If confirmed snap is installed, edit $PATH variable (PATH=$PATH:newPath1:newPAth2 ; export PATH)

# echo $PATH
>> Suppose you should see the below for example:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin

>> check if your value of $PATH shows missing the above snap one

you can change the PATH into the value by the command:
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin   or  PATH=$PATH;/var/lib/snapd/snap/bin
#export PATH


~/.bash_profile: This is the file that run everytime when user use bash shell
  • [root@localhost ~]# cat .bash_profile
    # .bash_profile

    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi

    # User specific environment and startup programs

    PATH=$PATH:$HOME/bin

    export PATH


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001ZQMCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail