Wireless Access

Reply
Highlighted
Frequent Contributor II

AOS8 - adding device via CLI with hostname

Hi,

 

In preparation for mass migration from 6.x to 8.x, we want to add configuration for all the controllers before they get migrated.

 

After adding new device via CLI [(config)#configuration device <MAC> device-model <MODEL> <path>] it is only visible in GUI, but not in CLI. Only once the hostname is changed in GUI, MD can be seen in CLI (#cd).

 

Is anyone aware of the CLI command that will allow us to change the MD hostname after it is added, as we would like to script migration tasks? Thanks.

Regards,
NesaM --ACMP, ACCP, ACDP, CWNA--
Highlighted
MVP Expert
MVP Expert

Re: AOS8 - adding device via CLI with hostname

Hi NesaM,

 

1. Be sure your controller ipsec psk is add to the MM configuration

HomeLAB-MM01) [mm] (config) #localip #.#.#.# ipsec yoursecret

Note: This is the IP of your MD controller.

 

2. Make a managed device folder hierarchy.

(HomeLAB-MM01) [md] (config) #configuration node /md/HomeLAB

 

3. Add your MD device to the managed device group

(HomeLAB-MM01) [mm] (config) #configuration device ##:##:##:##:##:## device-model MC-VA /md/HomeLAB

 

Note: This is the mac-adres of your MD Controller, run "show switchinfo" on your MD to get this.

 

Note: The hostname in the GUI under managed devices will be inherited from the MD devices.

(HomeLAB-MM01) [mm] (config) #cd HomeLAB-mc01

(HomeLAB-MM01) [mm] (config) #hostname giveitaname

 

4. Wait some minutes for the controllers are synced

(HomeLAB-MM01) [mm] (config) #show switches

 

Hope this helps you!

 

Kind Regards Marcel Koedijk
HPE ASE Flexnetwork | ACMP | ACCP | Ekahau ECSE Design - Was this post usefull, Kudos are welcome.
Highlighted
Frequent Contributor II

Re: AOS8 - adding device via CLI with hostname

Hi Marcel,

 

Thank you for the instructions. However, I am still experiencing issues after adding device with its MAC address in step 3. The commands below are not being accepted as HomeLAB-mc01 doesn't exist as a node at this stage (we are doing this in preparation of mc01 being migrated to AOS8).

 

(HomeLAB-MM01) [mm] (config) #cd HomeLAB-mc01

(HomeLAB-MM01) [mm] (config) #hostname giveitaname

 

If I try to add the hostname to the HomeLAB folder directly, error message is "Command can be executed only on device nodes and /mm/mynode".

Regards,
NesaM --ACMP, ACCP, ACDP, CWNA--
Highlighted
MVP Expert
MVP Expert

Re: AOS8 - adding device via CLI with hostname

When changing the name in the GUI (changing the mac into a logical name) in fact it change the global hostname of the controller. 

 

If your at the /mm level and type "cd ?" could you see the controller mac-adres there?

  • Can you go to "cd ##:##:##:##:##:##" 
  • Configure terimal
  • hostame giveitaname
  • write mem

If this is not possible i think it can only be changed after your controller is online.

 

How many controller do you need to migrate? For a large environment the best you can do is raise a TAC case.

 

Kind Regards Marcel Koedijk
HPE ASE Flexnetwork | ACMP | ACCP | Ekahau ECSE Design - Was this post usefull, Kudos are welcome.
Highlighted
Frequent Contributor II

Re: AOS8 - adding device via CLI with hostname

The fact that I cannot see my newly added device (##:##:##:##:##:##) when doing 'cd ##:##:##:##:##:##' is the problem I am trying to resolve through CLI (if possible :-)).

 

You are right, that once the controller connects to MM after going through the initial setup, everything clicks in its place.

 

Globally, we are looking at the migration of hundred controllers. As doing everything via CLI is obviously not going to be possible I will just add an explanation for implementation engineers to use GUI for that step.

 

Thank you for your help.

Regards,
NesaM --ACMP, ACCP, ACDP, CWNA--
Highlighted
MVP Expert
MVP Expert

Re: AOS8 - adding device via CLI with hostname

I think that the /md/mac-address is automatic change into the controller hostname after it joined the mobility master. In fact it read the hostname of each MD controller.

 

Hundred of controllers sounds as a nice environment Please plan the migration with care and be free to ask TAC support to assist you if needed.

 

Kind Regards Marcel Koedijk
HPE ASE Flexnetwork | ACMP | ACCP | Ekahau ECSE Design - Was this post usefull, Kudos are welcome.
Highlighted
Guru Elite

Re: AOS8 - adding device via CLI with hostname

Please feel free to work with your Aruba SE to leverage all of his/her knowledge about your organization and what you are trying to accomplish to come up with a work flow that will succeed.

 

There are many ways to do a migration, and "best practices" only work if they account for your work flow, the experiences/talent of your staff and any gotchas that might exist in your environment.  Leveraging your SE or even professional services if this consumes too much of your time would give you enough ideas to determines what works for you.


*Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba Networks or Hewlett Packard Enterprise.*
ArubaOS 8.5 User Guide
InstantOS 8.5 User Guide
Airheads Knowledgebase
Airheads Video Knowledge Base
Remote Access Point Solution Guide
ArubaOS Consolidated Release Notes
ArubaOS 8 ViA VPN Solution Guide
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: