Foro en Español

Reply
New Contributor
Posts: 1
Registered: ‎07-03-2014

forgot airwave's password

 

 

Antes que nada muy buenos dias a todos , tengo dos preguntas sobre airwave:

 

LA primera: no tenemos el password del admin AMP's web interface , he buscado por la red y encontre dos metodos de recuperar password , uno era del root y otro del admin pero no funciono. Aqui les anexo cuales metodos encontre:

 

If you've lost the password you use to log in as admin to AMP's web interface, you can update it from the command line with this command which stores a hashed version of 'admin' as the password in our database:
From the CLI:
# dbc "update users set password='2cf94b0aea63ebf7bf41c90fe500603e' where username ='admin';"
If you use a name other than admin, you can change your user's password by modifying the where clause above. For example, to change joemontana's password to admin, this would work:
# dbc "update users set password='2cf94b0aea63ebf7bf41c90fe500603e' where username ='joemontana';"

 

y para root este:

 

Forgotten root password

If you've forgotten the AMP's root password, it's possible to reset it by booting into Linux Single User Mode.

1. Reboot the server with CTRL-ALT-DELETE.
2. When the blue boot screen pops up (depending on what OS you have, you may have an AirWave logo or CentOS or another OS logo on this page), press "e" to edit the boot configuration.
3. Move the cursor down to the line that starts with 'kernel', and press "e"
again to edit that line
4. Make sure you're at the end of the line, give a space and add the word "single" (without quotes) to the string, then hit
5. Type 'b' to continue the boot process; you'll boot quickly into a shell without having to enter a password
6. Use the 'passwd' command to enter and confirm a new password for the root user
7. Write down the new password and keep it someplace safe.
8. Use the 'reboot' command to reboot the server into full operations mode.

 

 

 

¿Conocen algun otro metodo que me podrian brindar si son tan amable ?

 

 

Segunda pregunta: ¿Algun comando via CLI para ver el numero de licencias instaladas en el Airwave ?

 

Muchas gracias  y excelente dia para todos.

 

 

 

 

Frequent Contributor I
Posts: 105
Registered: ‎09-29-2009

Re: forgot airwave's password

Hola,

 

No se por que en ocasiones (me ha pasado mas de 2 veces) "se pierde" el acceso y no deja entrar, siguiendo el procediminento mencionado (dbc "update users set password='2cf94b0aea63ebf7bf41c90fe500603e' where username ='admin';") en versiones anteriores a la 7.7.11 en mi caso si funcionaba pero por alguna razon esta vez dejó de funcionar.

Al revisar la base de datos (sorry pero le tenia que buscar) encontré que la ultima columna (campo) el usuario aparecia desabilitado, lo habilite y funionó.

 

Así:

 

 

[root@airwave mercury]# dbc "update users set password='2cf94b0aea63ebf7bf41c90fe500603e' where username='admin';" UPDATE 1

 

Siguió sin funcionar así que:

 

[root@airwave mercury]# dbc "select * from users;"

 

id | username | password | role_id | full_name | email | phone | notes | password_format | login_attempts | is_enabled

----+-------------------+----------------------------------+---------+------------------------------------+--------------------------------------+-------------+----------------------------------------------------------------------------------+-----------------+----------------+------------

10 | awsupport | Ch4n63dYoUKnwitHoWerOtRixHel0wrd | 5 | Aruba support | | | | md5 | 0 | 1

15 | monitoreo | Ch4n63dYoUKnwitHoWerOtRixHel0wrd | 10 | Usuario para monitorear | | | | md5 | 0 | 1

  6 | admin | 2cf94b0aea63ebf7bf41c90fe500603e | 5 | | homerotrix@someting.mx | | | md5 | 10 | 0

(9 rows) ~ ~ ~ ~ [root@airwave mercury]#

 

 

[root@airwave mercury]# dbc "update users set is_enabled='1' where username='admin';" UPDATE 1

 

 

[root@airwave mercury]# dbc "select * from users;" id | username | password | role_id | full_name | email | phone | notes | password_format | login_attempts | is_enabled

----+-------------------+----------------------------------+---------+------------------------------------+--------------------------------------+-------------+----------------------------------------------------------------------------------+-----------------+----------------+------------

10 | awsupport | 022cc707f969892ed204580abdfbdcbe | 5 | Aruba support | | | | md5 | 0 | 1

15 | monitoreo | 1799c22f1cce4598a97998a5fadfb79e | 10 | Usuario para monitorear | | | | md5 | 0 | 1

  6 | admin | 2cf94b0aea63ebf7bf41c90fe500603e | 5 | | homero.borgo@informatica.uson.mx | | | md5 | 10 | 1

(9 rows) [root@airwave mercury]#

 

 

 Airwave password.png

P.D.: Puedes traducir el post y puedo ponerte un kudos o como se llamen para ti. ;)

 

 

Search Airheads
Showing results for 
Search instead for 
Did you mean: