Forum Discussion

Shashank_Sharma's avatar
Shashank_Sharma
Icon for Altostratus rankAltostratus
May 11, 2017
Solved

BIG-IQ v. 5.1 automation: Script to import multiple BIG-IPs errors out with "401 Authorization Required"

Hi,

 

I am using "bulkDiscovery.pl" and my own "data.csv" from https://github.com/carldubois/bigiq-cm-restapi-bulk The csv file has just two BIG-IPs (VIP-1\nVIP-2). The script is run with the following command line args: perl bulkDiscovery.pl -a admin:"PASSWD" -v -l -c data.csv -q admin:"PASSWD"

 

The following error is displayed-

 

 

 

401 Authorization Required

 

 

 

webd

 

Further analysis shows the error is from line 302 of the script: my $trustTask = &callCurl ($trustCmd, "Establish trust with $mip", $opt_v);

 

I have tried to curl the URI (line 301) from the command line with various permutations, but it gives the same error every time.

 

Any advice would be appreciated.

 

-Thanks

 

  • by carldubois-

     

    Hi, in 5.1 basic authentication was disabled. You can re enabled by ssh into bigiq shell and "set-basic-auth on".

     

4 Replies

  • carldubois_1031's avatar
    carldubois_1031
    Historic F5 Account

    Hi, in 5.1 basic authentication was disabled. You can re enabled by ssh into bigiq shell and "set-basic-auth on". Will need to find cycles to retrieve an authentication token and use it for this script.

     

  • carldubois_1031's avatar
    carldubois_1031
    Historic F5 Account

    By the way this was optimized to include re import and is located on the site for bigiq.

     

  • Thank you for the solution, Carl. I have downloaded the latest script from and it worked perfectly after "set-basic-auth on" on BIG-IQ.

     

    -Regards, Shashank

     

  • by carldubois-

     

    Hi, in 5.1 basic authentication was disabled. You can re enabled by ssh into bigiq shell and "set-basic-auth on".