Rename Device Group via CLI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

Rename Device Group via CLI

L1 Bithead

Hello,

As part of a large migration process we're maximizing the use of CLI to create configuration within NW, FW, HA dedicated templates, + template stacks + device groups.

One area that I'm having difficulty with is the renaming of existing device-groups (containing existing member devices) via CLI. I'm aware of commands such as 'set device-group' and 'request move-dg' that we'll use for the migration process, however to comply with new naming conventions I need to also rename some existing device-groups.

Does anyone know of commands that will achieve this please? I searched within the 'request' commands hierarchy, but no luck so far (screenshot attached).

I found in LIVEcommunity - Replace a panorama managed device with a new device (different model) - LIVEcommunit... a reference to a command of type 'rename device-group <Groupname> device <OLD SN#> to <new SN#>" but cannot find this command in Panorama.

 

Thanks in advance, if anyone has ideas on this it would be great !

1 accepted solution

Accepted Solutions

Cyber Elite
Cyber Elite

that's the right command... you do need to be in configuration mode though:

 

> configure

# rename device-group OLDDG to NEWDG

 

 

hope this helps

 

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

View solution in original post

2 REPLIES 2

Cyber Elite
Cyber Elite

that's the right command... you do need to be in configuration mode though:

 

> configure

# rename device-group OLDDG to NEWDG

 

 

hope this helps

 

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

Thanks Tom !

If ever anyone finds a CLI reference sheet for all the 'request' commands that would be great !! I've recently learned that all I really need to do to find all possible commands is to use the search command:

#find command keyword <keyword>

I no longer have direct access in my current role to any PAN devices, so am relegated to scouring the net for anything beyond my limited experience.

  • 1 accepted solution
  • 1475 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!