Cisco Switches
Prepare Cisco switch¶
NetApp Harvest requires login credentials to access Cisco switches. Although, a generic admin account can be used, it is better to create a dedicated monitoring user with read-only permissions.
If you want to create a dedicated monitoring user for Harvest, follow the steps below.
- ssh into the switch with a user than can create new users. e.g.
ssh admin@switch-ip
- Create a new user with read-only permissions by running the following commands. Replace password with a strong password.
configure terminal
username ro_user role network-operator password Netapp123
exit
Enable NX-API on Cisco switch¶
NetApp Harvest uses NX-API to collect metrics from Cisco switches. You need to enable NX-API on the switch, follow the steps below.
- ssh into the switch with a user than can enable NX-API. e.g.
ssh admin@switch-ip
- Enable NX-API by running the following commands:
configure terminal
feature nxapi
exit
Reference¶
See Configuring User Accounts and RBAC for more information on Cisco NX-OS user accounts and RBAC.
See NX-OS Programmability Guide for more information on the Cisco NX-API.