quarta-feira, 24 de maio de 2017

Como alterar facilmente a sub-rede do escopo de um DHCP Server.

Você precisará salvar essas informações:
- IPs excluídos
- Reserva (s)
- Opção (ões) do escopo do DHCP

Existe uma maneira fácil de fazê-lo com NETSH, execute o comando:

     netsh dhcp server \\"Server" scope "ip_of_scope" dump > c:\dhcp.txt

Edite o arquivo dhcp.txt e altere a linha:
     dhcp Server \\"Server" add scope 192.168.0.0 255.255.255.0 "Pool DHCP" ""

Salve o arquivo e quando estiver pronto, apague o escopo DHCP e executar o comando:
    netsh exec c: \ dhcp.txt


quinta-feira, 31 de março de 2016

Boas Praticas após clone de VM Linux

Best Practices Linux VMWare Clonning

After you clone the VM login and...

1) rm -rf /etc/ssh/ssh_host_*
2) Edit the hostname in /etc/sysconfig/network
3) rm -rf /etc/udev/rules.d/70-*
4) Remove the HWADDR line and UUID line from /etc/sysconfig/network-scripts/ifcfg-eth* file(s). Also change the IP address in this/these files
5) If you'd like, delete all the logs from /var/log and build logs from /root

Reboot VM

domingo, 14 de fevereiro de 2016

Windows 2008 - Domain Controller - Blue Screen - Recovery NDTS

Windows 2008 x86, erro, tela azul, Domain Controller, Directory Services Restore Mode, event id 1003 e 1168
  1. Restart the server and press F8 key, select Directory Services restore mode.
  2. Log in with the local administrator username and password
  3. Type: cd \windows\system32
  4. Type: NTDSUTIL
  5. Type: activate instance NTDS
  6. Type: files
  7. If you encounter an error stating that the Jet engine could not be initialized exit out of ntdsutil.
  8. Type: cd\
  9. Type: md backupad
  10. Type: cd \windows\ntds
  11. Type: copy ntds.dit c:\backupad
  12. Type: cd \windows\system32
  13. Type: esentutl /g c:\windows\ntds\ntds.dit
  14. This will perform an integrity check, (the results indicate that the jet database is corrupt)
  15. Type: esentutl /p   c:\windows\ntds\ntds.dit
  16. Agree with the prompt
  17. Type: cd \windows\ntds
  18. Type: move *.log c:\backupad   (or just delete the log files)
This should complete the repair.  To verify that the repair has worked successfully:
  1. Type: cd \windows\system32
  2. Type: ntdsutil
  3. Type: activate instance ntds
  4. Type: files        (you should no longer get an error when you do this)
  5. Type: info       (file info should now appear correctly)
One final step, now sure if it’s required:
From the NTDSUTIL command prompt:
  1. Type: Semantic Database Analysis
  2. Type: Go
fonte: http://distefano.biz/blog/index.php/2013/01/22/windows-server-2008domain-controller-failed-to-start/

Dell T110 - Windows 2008 x86 - PERC S300, falha no boot após falta de energia

Baixar o driver da controladora PERC - Salvar em um pen-drive

Download File

http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=WPJ2J

Boot no servidor com mídia de instalação do S.O.

Selecionar o idioma

Selecionar "Modo de reparação"

Carregar o driver da controladora PERC

Selecionar a partição de sistema e Avançar

Prompt de comando

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
x:\sources\recovery\StartRep.exe





quarta-feira, 30 de dezembro de 2015

Limpeza manual da "ConflictAndDeleted" no DFSR

Manually Clearing the ConflictAndDeleted Folder in DFSR

http://blogs.technet.com/b/askds/archive/2008/10/06/manually-clearing-the-conflictanddeleted-folder-in-dfsr.aspx


segunda-feira, 27 de julho de 2015

Cisco - DHCP reservar IP

show ip dhcp binding

-> selecionar o identifier/IP a reservar e executar o clear

clear ip dhcp binding "IP"

-> criar o escopo reservas e cadastrar os IP's / identifiers


conf t

ip dhcp pool RESERVA1
 host 192.168.1.1 255.255.255.0
 client-identifier 0154.04a6.822e.0d

ip dhcp pool RESERVA2
 host 192.168.1.2 /24
 client-identifier 0148.5b39.bb26.8d

ip dhcp pool RESERVA3
 host 192.168.1.3 /24
 client-identifier 01a4.badb.06e2.78

ip dhcp pool RESERVA4
 host 192.168.1.4 /24
 client-identifier 0174.867a.fa14.92


segunda-feira, 1 de junho de 2015

Configurar Linux para captura de Wireshark de Wireless

Sequencia de comandos, executado em uma distro Fedora

#listar as interfaces
ifconfig

#down na interface wireless
ifconfig wlp3s2 down

#alterar a interface para type monitor
iw dev wlp3s2 set type monitor

#up na interface
ip link set wlp3s2 up

#ajustar o canal a ser monitorado
iw dev wlp3s2 set channel 6

#carregar o wireshark selecionar o interface a ser monitorada
wireshark

quarta-feira, 29 de abril de 2015

Configurar / Fortigate / USB Modem 3G

Fortigate  / USB Modem 3G

#config system modem
#set status enable

This should get the modem showing up in the GUI

#set phone1 *99#
#set extra-init1 "at+cgdcont=1,\"IP\",\"broadband.windmobile.ca\""

If modem id needs to be added:

First get the USB device ID:

#fnsysctl cat /proc/bus/usb/devices

#config system 3g-modem custom
#edit 1
#set vendor "My Phone Company"
#set model "my phone model"
#set vendor-id "ff55"
#set product-is "88aa"
#end

Enable 4G/LTE:

#config system global
-----#set usb-lte enable
#set wimax-4g-usb enable
#end

Troubleshooting:

#diagnose sys modem detect wireless
#diagnose sys modem external-modem

Outros comandos

#config system modem
#set wireless-port {ttyusb0 | ttyusb1 | ttyusb2}
#end

#config system modem
#set mode standalone
#set auto-dial enable
#set idle-timer 2
#set redial 5
#end

#diagnose sys modem query


---------------------------------

Outra forma

Firstly, ensure that your modem is firmly plugged into a USB Port on the back of the Fortigate, and that you've power-cycled the unit to detect the modem. You'll need to enable the modem with the following command:

config system modem
set status enable
end

Next, try and detect the custom vendor and product IDs with the following command. Be sure to note it down, as you'll need it later!

FortiGate # diagnose sys modem wireless-id
vendor: 0x12d1, product: 0x1003, registered: yes

Next, we'll configure the modem settings in our FortiGate to activate the modem connection:

config system modem
set status enable
set status enable
set dial-on-demand enable
set connect-timeout 30
set wireless-custom-vendor-id 0x12d1
set wireless-custom-product-id 0x1003
set modem-dev1 pcmcia-wireless
set phone1 "*99#"
set username1 "3services" # Set this to your provider's APN
set altmode disable
end 

We're almost there! The last thing to do is to turn on debugging (to watch the progress of the dial), and to actually execute the dial:

diagnose debug enable
diagnose debug application ppp 255
diagnose debug app modemd 255

execute modem dial

Once you're done, don't forget to turn off your logging:

diagnose debug application modemd 0
diagnose debug application ppp 0
diagnose debug disable

quinta-feira, 4 de dezembro de 2014

Alterar a senha do Administrador da Farm SharePoint

No servidor de aplicação:

  On the computer running the Central Administration Web site, open the command line and navigate to the
Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN folder.

At a command prompt, type the following command, and then press ENTER:
stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>
NoteNote:
userlogin is the server farm account.

You must restart the Web application pool for the changes to be saved.
At a command prompt, type the following command, and then press ENTER:
iisreset /noforce

Alterar a senha dos serviços do Windows