QuestionQ80

Configuration Basics

According to HPE Juniper Networking guidance, in which situation should the replace pattern command be used rather than the rename command?

  • A You want to create a private candidate configuration.
  • B You want to disable a physical interface.
  • C You need to edit a single component name in the configuration.
  • D You want to globally replace all occurrences of a specific string.
Explanation

The replace pattern command performs a global find-and-replace across the configuration hierarchy, substituting every occurrence of a specified string with a new string, whereas rename only changes the name of one specific configuration element. Because of this, replace pattern is the appropriate tool when you need to globally replace all occurrences of a specific string in the configuration, while rename is used when editing a single component name.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!