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