This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

quarta-feira, 2 de setembro de 2015

Mikrotik - User Manager API - create new user

solved with this code..
require('C:\Program Files\EasyPHP-12.1\www\my portable files/class routeros_api.php');
// new object api
$API = new routeros_api();
$API->debug = true;
if ($API->connect('192.168.3.1', 'userapi', '1234') ) {

$ARR=$API->comm("/tool/user-manager/user/add",Array( 
"customer" => "admin",
"name" => "11",
"password" => "11",
"shared-users" => "1",
"copy-from" => "1D",
));


$API -> disconnect();

}

?>

thanks...

quinta-feira, 27 de agosto de 2015

Cisco Prime Infrastructure 2.2 - manutenção da base de dados?

Rascunho dos problemas:

# NCS stop
# NCS cleanup
# NCS start
# NCS stop
# NCS DB reinitdb
# NCS start
O problema é que depois do DB ReinitDB você não pode mais acessar o prime via browser.
# ncs db reinit
-All data will be lost. Do you wish to continue? (y/n)
y
-Creating a new, empty database. This may take 10 to 20 minutes
-Database re-initialization completed
nem tentando usar o comando:
# ncs password root password your-password-here
Loading USER - root
EXECUTION FAILED. Details:
                Unknown user.
Exception in Result
Error Occured ::EXECUTION FAILED. Details:
                Unknown user.
ERROR: Web interface 'root' password reset failed, Please check the server log file, exiting

# ncs webroot status
Web interface root account status :
# ncs webroot enable
ERROR : Unable to enable root account (db update error)
ou seja só serve para restaurar um backup com  a base de dados limpa:
# restore filename repository repositoryName

Database backup and restore related information can be obtained from the below logs:
/opt/CSCOlumos/logs/rman.log
/opt/CSCOlumos/logs/dbadmin_StdOut.log

quarta-feira, 26 de agosto de 2015

Cisco Prime 2.2 - upgrade

Usei este link como referencia para realizar upgrade de um Prime

http://mrncciew.com/2014/12/18/how-to-go-there-pi-2-2/ 


Vou comentar as pegadinhas:

1- é interessante montar o repositorio em um servidor externo, pois tentar copiar manulmente do antigo prime é praticamente impossivel.

2- tomar cuidado com a preinstalaçao do prime virtual...

3- se der problema durante o primeiro setup e a apllicação não subir é melhor não perder tempo e apagar a VM e instalar novamente, tentar  instalar a aplicação via CLI é impossivel.