Posts

Fortigate cheat sheet and commands

Image
Command Cheat sheet Cheet sheet created by By Frederic Kasmirczak ( http://www.frederick.lu ), I just simply converted it to a wiki for copy and paste easiness. Main Command Structure Command Description show Display changes to the default configuration get List the configuration of the current object or table edit Create or edit a table in the current object edit 0 will use the next ID available in a sequence number set Set a filed / Reset a field to the default value end Save the current changes abort Exit commands without saving the fields delete Remove a table from the current object Basic Command Description get sys status Show status summary get sys perf stat Show Fortigate ressources summary execute ping Ping something execute shutdown Shutdown the device/reboot with reboot get sys arp Show the current arp table execute date/time Show the current date / time delete Remove a table from the current object Interface Command Description show sys int Show interfaces status Sh sys int...

Reset forgotten Windows Administrator password

Image
  1. Boot the server from a Windows installer ISO 2. Select "Repair" and "Troubleshooting" then click to open a command prompt 3. At the command prompt type: move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe 4. Disconnect the ISO media and Reboot the server 5. When at the login screen click the below icon: 6. This will open a command prompt, at the command prompt type: net user <username> <password> 7. Type "exit" to close the command prompt

Netapp swapping failed disk

  Finding which node has the failed disk Run the below command to find the failed disk, which node and owner it belongs to: disk show -container-type broken Gathering and submitting logs Depending on who your support is with you may need to gather and submit logs with all the info required for them to be able to issue the disk, to do this run the commands below: run -node netapp01 -command sysconfig -A Copy and paste the results in to a txt file and call it something like sysconfig-a-results.txt Now run the below command: system controller fru show-manufacturing-info Copy and paste the results in to a txt file and call it something like sysconfig-m-results.txt You may be asked for these by NetApp or whoever your support is with before they will process a disk replacement. Replacing the disk Run the following command to list the disk ID and it's owner: storage disk show –container-type broken Remove the failed disk and wait for 1 minute then insert the new replacement disk. Run the ...

AnywhereUSB/14

  Here are some basic steps to get your AnywhereUSB/14 on the network, the rest of the config can be done via the webUI. 1. Connect a serial cable to the management port 2. Use Putty to make a serial connection to the device and you will get a screen as below: #> 3. From there type: set network This will display the current network configuration for the ethernet port, make note of the ethernet interface, its normally "eth0": #> set network "eth0" interface configuration: MAC Address  : 00:40:9D:C2:45:A0 Currently in use by the network stack Stored configuration -------------------- ------------------- ipaddress  : 169.254.90.52 0.0.0.0 submask  : 255.255.0.0 0.0.0.0 gateway  : 0.0.0.0 0.0.0.0 static  : off off dhcp  : on ...

Remote Desktop Connection Internal Error has Occurred Fix

  I recently had this issue when trying to RDP to a Windows 2012 server and here is how I resolved the issue. 1. Console to the server either by connecting a KVM to it if its physical or via the console session if using vMware and or Hyper-V 2. Browse to: C:\ProgramData\Microsoft\Crypto\RSA 3. Rename the following folder Machinekeys to Machinekeys_backup 4. Open services.msc and restart the "Remote desktop services" service

Powershell Unable to find module repositories

  When running: Get-PSRepository in Powershell and you get the error: WARNING: Unable to find module repositories. This is normally because you are behind a poxy and you need to set the proxy settings for Powershell, to do this follow these steps: Run notepad $PROFILE Notepad will open and probably tell you the file is not present and would you like to create it, select yes and enter the following in the file, obviously changing the proxy and port to your proxy and port: [system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy('http://YOURPROXY:8080') [system.net.webrequest]::defaultwebproxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials [system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true Save and exit the file Close and re open Powershell Run Register-PSRepository -Default This should now allow you to register the repos.