Purpose: Creates DNS entries for the interfaces on Juniper devices using the XML configuration from that device.
Install Python. Nothing more required.
- Run command 'show interfaces | display xml' command on Juniper device and place the output in a file (default name is 'config.xml')
- Remove all output before <configuration> and after </configuration>
- If using a bash log file, remove any ---<more xx%>--- statements
- Make sure that the <configuration> tag has no other information in it (ex: junos:changed-seconds="1494007269" junos:changed-localtime="2017-05-05 14:01:09 EDT")
- Modify 'coreNumber', 'domain', and 'hostName' variables to match the core number, host name, and domain of the device
- Put this script in the same folder as your xml file and run
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Trevor Rowe
Special thanks to Trevor Rowe
Justin Oeder
Managed Public Cloud Provider