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




segunda-feira, 3 de novembro de 2014

WMI reset failed

WMI reset failed

Resolução de vários problemas, tais como não instalar o cliente SCCM e desaparecendo namespaces cluster. Geralmente redefinir o WMI é um último recurso e só deve ser utilizado quando você já tentou todas as outras opções. por exemplo reiniciar o serviço WMI, reiniciar servidor.

O comando para redefinir o repositório WMI deve ser executado em um prompt de comando elevado:

winmgmt / resetrepository

No entanto, por vezes, esta falha com este erro:

C: \ Users \ adminuser> Winmgmt / resetrepository

C:\Users\adminuser>Winmgmt /resetrepository
WMI repository reset failed
Error code:     0x8007041B
Facility:       Win32
Description:    A stop control has been sent to a service that other running services are dependent on.

Embora seja possível contornar parando os serviços dependentes manualmente ou até mesmo editar o registro para que nada seja dependente deste, existe uma solução muito mais fácil.

1. Inicie um (admin) janela do PowerShell elevado.
2. Digite o comando a seguir.
Stop-Service winmgmt -Force; winmgmt / resetrepository
3. Reinicie o computador.

terça-feira, 8 de julho de 2014

Liberar e bloquear tipos de extensões de anexo no OWA - Exchange 2013

Verificar o nome da politica do OWA padrão:
Acesse o Centro de Administração do Exchange > Permissões >  Politicas do Outlook Web App

Através do powershell:
Para verificar as extensões já liberadas
Get-OwaMailboxPolicy Default | select -ExpandProperty allowedfiletypes

Para verificar as extensões bloqueadas
Get-OwaMailboxPolicy Default | select -ExpandProperty blockedfiletypes

Remover extensão da lista de bloqueados: Ex.: xml
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -BlockedFileTypes @{Remove = “.xml”}
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -BlockedMimeTypes @{Remove = “text/xml”, “application/xml”}

Adicionar na lista de extensões permitidas
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy –AllowedFileTypes @{Add = “.xml”}
Get-OwaMailboxPolicy Default | Set-OwaMailboxPolicy -AllowedMimeTypes @{Add = “text/xml”, “application/xml”}

Referencia: http://technet.microsoft.com/en-us/library/dd297989(v=exchg.150).aspx

terça-feira, 8 de abril de 2014

Comandos Exchange

Desabilitar IMAP do mailbox do usuário:
     Set-CASMailbox -Identity "usuario" -IMAPEnabled $false

Listar todos os usuários:
     Get-Mailbox | Sort database, name | Format-Table name, database

MessageTracking:
     Search-MessageTrackingReport -Identity ad\usuario.mailbox -sender "usuario.externo@contoso.com.br" -BypassDelegateChecking -DoNotResolve


     Search-MessageTrackingReport -Identity "ad\usuario.mailbox" -Sender "usuario.externo@contoso.com.br" -ByPassDelegateChecking -DoNotResolve | ForEach-Object { Get-MessageTrackingReport -Identity $_.MessageTrackingReportID -DetailLevel Verbose -BypassDelegateChecking -DoNotResolve -RecipientPathFilter "usuario.mailbox@minhaempresa.com.br" -ReportTemplate RecipientPath }



Implantar atualizações do System Center 2012 Endpoint Protection via Share UNC

Segue link referencia:

http://www.niallbrady.com/2013/02/22/how-can-i-deploy-system-center-2012-endpoint-protection-definition-updates-from-a-unc-file-shares/


sexta-feira, 21 de março de 2014

YUM - Install epel and remi repositories

1. Install epel and remi repositories:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

2. Enable remi repository:
# sudo vi /etc/yum.repos.d/remi.repo
In the [remi] section of the file, set the "enabled" option to 1.