cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1066
Views
0
Helpful
0
Replies

Cisco Prime 3.4 - DB Variables - Management IP Address or Interface

DustinBAE
Level 1
Level 1

I'm trying to write a template that will save the management interface as a variable and then use that variable in the various '... source-interface $interface' commands on each device.

 

I've tried using the DB built in variable 'IPAddress' to loop through interfaces to find the correct interface matching that IP, but since the device's hostname was used to add the device to Prime that returns the hostname of the device instead of the IP address of the device.

 

I've tried making variations of the DB Variables in the /opt/CSCOlumos/conf/ifm/templates/*.properties files, but those files are data models abstracted by some EJB engine or something and not just straight SQL.  Not all of the DB tables are exposed through those data models.

 

If anyone has links to the DB Variable documentation, the EJB data models, or other useful detailed documentation (not just the 'shut down all interfaces' example in the config guide) that would be appreciated as well.

 

Does anyone have any suggestions?

 

Thank you,

0 Replies 0