XDE SDK Forums

« Back to Technical Discussion

Inventory resources

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
How can I change the password for access devices?, what is the syntax for inventory.properties file?.
 
Thanks

RE: Inventory resources
Answer
11/5/10 10:57 PM as a reply to Jose Enrique Palacios Gimenez.
Hi,
 
How can I change the password for access devices?, what is the syntax for inventory.properties file?.
 
Thanks


Hi Jose,
 
In the current CDN public release of XDE/PAL (1.0.284) the format is as follows
 
It's a standard Java properties file where each line has the following syntax:
 
<deviceID>-<attributeName>=<value>
 
The key inventory attributes to set for Telnet-based CLI access are the following:
 
{Java attribute name, Property file attribute name, Default Value}
 

{InventoryProperties.CLI_ENABLE_PASSWORD, "enablepassword", "cisco"}
{InventoryProperties.CLI_LOGIN_PASSWORD, "loginpassword", "admin"}
{InventoryProperties.CLI_LOGIN_USERNAME, "loginusername", "nouser"}
{InventoryProperties.CLI_TRANSPORT, "transport", "telnet"}
{InventoryProperties.CLI_PORT, "port", "23"}
{InventoryProperties.CLI_ADDRESS, "address", ""}
{InventoryProperties.SOFTWARE, "software", "IOS"}

 
Note that device ID is not the hostname, domain name or ip address, it is just an ID which you would use from XDE/PAL.
 
So for a device with ID "myRouter1"  you might have the following in your inventory.properties file
 
myRouter1-address=10.34.64.125
myRouter1-loginusername=josh
myRouter1-loginpassword=josh123
myRouter1-enablepassword=josh123
myRouter1-software=IOS
myRouter1-transport=telnet
myRouter1-port=23
 
You can store details of multiple devices in the file.
 
In later releases of the SDK an XML-based file format is also supported and there is SDK support for editing the file, so watch this space.
 
Regards,
 
Josh Singer
XDE/PAL dev team
SPMABU
NMTG
Cisco

 Go
By API/SDK: