A method and apparatus are disclosed for managing network devices using a parsable string that conforms to a specified grammar. The parsable string is used to represent locations of entities and is called an entity location specifier. The grammar may conform to Augmented Backus-Naur Form