Guest User

Untitled

a guest
Dec 15th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 73
  2.  
  3. % Total % Received % Xferd Average Speed Time Curr.
  4. Dload Upload Total Current Left Speed
  5. 0 0 0 0 0 0 0 0 --:--:-- 0:05:01 --:--:-- 0
  6. curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 73
  7.  
  8. search index=os_nix host=spock source=/var/adm/messages latest=-30d NOT snmpd authentication (error OR fail OR failure) | head
  9.  
  10. URLPROTO='https://'
  11. URLHOST='splunkapi.example.com'
  12. URLPORT=':8089'
  13. URLDIR='/servicesNS/admin/search/search/jobs/export'
  14. URL="${URLPROTO}${URLHOST}${URLPORT}${URLDIR}"
  15. luser=(read from user input)
  16. lpassword=(read from user input)
  17. OUTFILE=(generated from hostname and the type of search I'm running)
  18. mySEARCH=(read from input file)
  19. USER=(User ID read from environment)
  20.  
  21. curl -k -o "${OUTFILE}" -u ${luser:=${USER}}:${lpasswd} ${URL} -d search="${mySEARCH}" -d output_mode="csv"
  22.  
  23. curl 7.11.1 (powerpc-ibm-aix5.2.0.0) libcurl/7.11.1 OpenSSL/0.9.7g ipv6
  24. Protocols: ftp gopher telnet dict ldap http file https ftps
  25. Features: IPv6 SSL NTLM Largefile
Add Comment
Please, Sign In to add comment