#Change default port for CiscoRest poller

1 messages · Page 1 of 1 (latest)

snow crown
#

Wondering if it's possible to change the port from 443 to something else on a CiscoRest poller like you can with an ONTAP poller. I can't get it to work. Thanks for the help!

plain light
#

@snow crown Harvest will include the port in the address if it’s configured in the addr field in the Harvest configuration for the Cisco switch. Could you test from outside to confirm that your updated port works by running the curl command below? Harvest uses NXAPI for communication, so you may need to change something on the Cisco switch side as well.

Please replace IP, PORT, USER, and PASSWORD as needed.

curl -k --location 'https://IP:PORT/ins' \
--header 'Content-Type: application/json' \
--user 'USER:PASS' \
--data '{
  "ins_api": {
    "version": "1.0",
    "type": "cli_show",
    "chunk": "0",
    "sid": "sid",
    "input": "show version",
    "output_format": "json"
  }
}'