cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
191
Views
0
Helpful
0
Replies
Highlighted
Cisco Employee

APIC-DC config pull using SSH

Hi 

 

Using SSH in APIC we can able to view configuration ( show running-config) 

 

apic1# show running-config leaf 101

# Command: show running-config leaf 101

# Time: Tue Dec  5 05:11:47 2017

  leaf 101

    template hsrp group-policy default tenant common

      exit

    vrf context tenant common vrf Internet-VRF l3out Internet-L3Out

      router-id 192.168.0.101

      route-map Internet-L3Out_in

        scope global

        exit

 

 

but when I tried to pull the same via SSH libraries using Java , I am getting below output

 

command :  show running-config all leaf 301

 

cd '/aci/fabric/access-policies/monitoring-policies/default/stats-collection-policies'

mocreate mon-infratarget 'extended-chassis-fabric-port-(eqpt.extchfp)'

moconfig commit

 

# mon-infratarget

cd '/aci/fabric/access-policies/monitoring-policies/default/stats-collection-policies'

mocreate mon-infratarget 'extended-chassis-host-port-(eqpt.extchhp)'

moconfig commit

 

These two are different , I would like to get configuration in the above ( case 1) format 

 

can any one suggest how to pull config using ( REST or PYTHON or IBASH or VHS or any technology that supports ACI / APIC ) 

 

Thanks in advance 

Everyone's tags (3)
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards