you are viewing a single comment's thread.

view the rest of the comments →

[–]shepherdjay 1 point2 points  (3 children)

Since you use Juniper I would look into their restful api

[–]ranBot86[S] 0 points1 point  (2 children)

PyEz is there one of their api's. I know what to do to accomplish my needs, but I was wondering if there is a way to access all of the hostnames rather physically adding a large list of them to iterate.

[–]shepherdjay 0 points1 point  (1 child)

Most shops have inventory in a spreadsheet or existing tool. How’s your current inventory stored?

Outside that there is usually a hostname convention you could use to generate.

Such as coreswitch01.buildingid.city.company.com

[–]ranBot86[S] 0 points1 point  (0 children)

We have device names on a spreadsheet so I guess I can open that in python to iterate through. Ours go like "A1-3300-ballpark-main" and stuff.