BookmarkSubscribeRSS Feed
stove
Fluorite | Level 6

How do I use SAS Cli (sas-viya) in a proxy environment?
I try to use environment variables(http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY) but not work.


My SAS environment is below:
Viya4 , 2023.01

Cli version : 1.21.3


Thanks in advance.

6 REPLIES 6
gwootton
SAS Super FREQ
When you configure your profile for sas-viya you should supply the URL you would use to connect to the Viya environment.
--
Greg Wootton | Principal Systems Technical Support Engineer
stove
Fluorite | Level 6

Hi Greg,

I'm sorry for the incompleteness of the content.
The profile is set correctly, but the connection via proxy is not possible.
Apparently, it has been recognized as a bug and will be fixed in the February 2023 release.

shalaka
SAS Employee
Could you please elaborate on which command is not working? Are you not able to install any plugins?
stove
Fluorite | Level 6

Hi shalaka,

I was check identities plugin is not work. (I can install all plugins.)
At March 2023  , SAS technical support said you can use only authenticate plugin in proxy enviroment.(Cli version : 1.21.6)

I give up to use sas cli in proxy enviroment and do not follow any information about this.

Best Regards,

Sajid01
Meteorite | Level 14

Hello @stove 
if any user is running the sas-viya cli on a machine (e.g. laptop, desktop etc.)  behind the proxy/firewall, then the connection has to be allowed between the source and destination in the firewall. 
This may be the case in your situation. Please make a request to your local admins to assist.

Drewb1n
Calcite | Level 5

In a proxy environment, using SAS CLI can be a bit tricky. One helpful approach is to configure the proxy settings directly in your SAS CLI environment. You can set environment variables for HTTP_PROXY and HTTPS_PROXY, which should direct the traffic properly through the proxy server.

Additionally, if you’re dealing with a lot of proxy changes or need to manage different proxies, a tool like a Proxy Rotator could be useful. This type of tool automates switching between multiple proxy servers, which can simplify managing connections and avoiding issues with blocked requests.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1397 views
  • 1 like
  • 5 in conversation