Network Management

 View Only
  • 1.  Does anyone have a solution for getting backups of Cisco N9k?

    Posted Jun 19, 2019 07:27 AM

    Trying to create adapter for the switch cisco Nexus9000 93180YC-EX chassis but no success.

    This I have dons so far:

    1. Create device model with OID 1.3.6.1.4.1.9.12.3.1.3.1812

    2. Created files and folder /opt/iMC/server/conf/adapters/ICC/Cisco/CiscoNX9K

    [root@x5152 CiscoNX9K]# ls -la
    total 68
    drwxr-xr-x 2 root root 4096 Jun 19 12:55 .
    drwxr-xr-x 21 root root 4096 Jun 19 12:52 ..
    -rw-r--r-- 1 root root 630 Jun 19 12:55 adapter.xml
    -rw-r--r-- 1 root root 6105 Jun 19 12:10 backup_running_config_scp.tcl
    -rw-r--r-- 1 root root 1392 Jun 19 12:10 backup_running_config_tftp.tcl
    -rw-r--r-- 1 root root 5894 Jun 19 12:10 backup_startup_config_scp.tcl
    -rw-r--r-- 1 root root 1418 Jun 19 12:10 backup_startup_config_tftp.tcl
    -rw-r--r-- 1 root root 1469 Jun 19 12:10 CiscoNX9K_Config_Backup_Builder_Script.xml
    -rw-r--r-- 1 root root 733 Jun 19 12:10 CiscoNX9K_Config_Backup_Builder.xml
    -rw-r--r-- 1 root root 1261 Jun 19 12:10 CiscoNX9K_Config_Deploy_Builder_Script.xml
    -rw-r--r-- 1 root root 1231 Jun 19 12:10 CiscoNX9K_Config_Deploy_Builder.xml
    -rw-r--r-- 1 root root 1384 Jun 19 12:10 deploy_running_config_tftp.tcl
    -rw-r--r-- 1 root root 1381 Jun 19 12:10 deploy_startup_config_tftp.tcl
    -rw-r--r-- 1 root root 622 Jun 19 12:10 reload.tcl
    -rw-r--r-- 1 root root 773 Jun 19 12:10 save_config.tcl

    3. And edited /opt/iMC/server/conf/adapters/ICC/Cisco/adapter-index.xml

    <adapter name="CiscoNX9K">
    <description>Cisco Nexus 9000 series</description>
    <sysoid>1.3.6.1.4.1.9.12.3.1.3.1812</sysoid>
    <version series="CiscoNexusSeries" vrp="" release=""/>
    <defaultver series="CiscoNexusSeries" vrp="" release=""/>
    </adapter>

    But still getting this error below: I have tried to run manually and it works so I have connection frpm switch to IMC. Any ideas?

     

    1 Initialize task parameters. Succeeded.   2019-06-19 13:19:20 2019-06-19 13:19:21 2 Back up device startup configuration file to system. Failed to send configuration file from the device to the system by TFTP. 1. Use the display startup command to check whether the startup configuration file exists on the device. If not, execute the save command. 
    2. Check that the TFTP user has high-enough access right to the InstallDir/server/tmp directory. The TFTP user should have the read and write right at least. 
    3. The system failed to send the GetNext response. Capture packets to verify the condition. 
    4. Check that if exist firewall.
    5. Check that if the TFTP Server is running.
    6. Check that if the device TFTP Client IP address is correct.



  • 2.  RE: Does anyone have a solution for getting backups of Cisco N9k?

    Posted Jun 19, 2019 08:34 AM

    Is it a log that can provide more information of what's failing?



  • 3.  RE: Does anyone have a solution for getting backups of Cisco N9k?

    Posted Jun 20, 2019 03:12 AM

    Hello again,

    You can find out what is going wrong by setting "imccfgbakdm" process to DEBUG via System Configuration > Log Configuration. Then run the backup again and check the iMC\server\conf\log\imccfgbakdm.log.

    Are you sure that you need a separate adapter for N9K? IMC already has working Cisco Nexus adapters, though you might need to specify a VRF in the Configuration Center Options > VPN Instance tab if you use one.



  • 4.  RE: Does anyone have a solution for getting backups of Cisco N9k?

    Posted Jun 20, 2019 03:33 AM

    It, actually works now. Probably I needed the new adapter because of OID that was not present in adapter.xml. And yes it was probably also bacause of VPN instance. Thanks again.



  • 5.  RE: Does anyone have a solution for getting backups of Cisco N9k?

    Posted Jun 20, 2019 06:10 AM

    You're welcome! Note that you can also use an existing adapter with newer devices that are unknown to IMC by updating the adapter-index.xml in the Cisco folder (assuming you created Device Definition already). Simply add the SysOID entry beneath the adapter you would like that model to use, and restart IMC for the change to take effect. Note that you sometimes need to delete and re-add the device to IMC if the adapter change isn't updating properly.