IOS commands

Configure access lists


Edit access lists


ip access-list extended 150

15 permit ip host


Delete sequence from access list

ip access-list extended 150

no 20



Basic configuration

copy running-config startup-config


Configure PPPoA


Configure Dynamic NAT


VIB Management

Command to view list of installed VIBs:

esxcli software vib list


Removed named VIB package:

esxcli software vib remove --vibname=OpenManage

Remotely upgrade host ESXi

Put host into Maintenance Mode and connect to host via SSH:

vim-cmd /hostsvc/maintenance_mode_enter


Run the following command to enable the httpClient in the firewall:

esxcli network firewall ruleset set -e true -r httpClient


Run to following command to check for available packages:

esxcli software sources profile list -d | sort -r

Or add option to filter list:

esxcli software sources profile list -d | grep ESXi-5.5


Review list of available packages and note the name of the package to update to.

Run the following command to begin the update:

esxcli software profile update -d -p ESXi-5.5.0-20140302001-standard


Once the update is complete type reboot to restart the host.

Reconnect via SSH once rebooted and exit maintenance mode:

vim-cmd /hostsvc/maintenance_mode_exit


Option to disable httpClient in firewall:

esxcli network firewall ruleset set -e false -r httpClient

Mailbox Recovery

Create recovery database using recovered database files:

New-MailboxDatabase -Recvoery -Name "database name" -Server "server name" -EdbFilePath "pathtodatabase" -LogFolderPath "pathtologfiles"


Check database status (using local PowerShell):

eseutil /mh 'pathtoEDBfile'


Check logs status:

eseutil /ml 'pathtologfolder'


Guide to recovery:


Once recovery database is mounted; recover mailbox to current user:

Restore-Mailbox -Identity "Administrator" -RecoveryDatabase "database name" -RecoveryMailbox "username" -TargetFolder "Recovery"


This command is better one to use as it recovers the dumpster also:

New-MailboxRestoreRequest -SourceDatabase "database name" -SourceStoreMailbox "username" -TargetMailbox "username" -TargetRootFolder "Recovery"


Can then use New-MailboxExportRequest to export to PST.

Mailbox Permissions

Add permissions on mailbox for another user:

Add-MailboxFolderPermission -Identity DOMAIN\Username -User DOMAIN\PermittedUsername -AccessRights Reviewer
Add-MailboxFolderPermission -Identity DOMAIN\Username:\Inbox -User DOMAIN\PermittedUsername -AccessRights Reviewer


Remove permissions:

Remove-MailboxFolderPermission -Identity DOMAIN\Username -User DOMAIN\PermittedUsername
Remove-MailboxFolderPermission -Identity DOMAIN\Username:\Inbox -User DOMAIN\PermittedUsername


Guide to mailbox permissions:

Mailbox Statistics

List mailbox databases:



List mailbox sizes (has to be run on Local Exchange CLI else TotalItemSize does not work):

Get-MailboxStatistics -Database "Mailbox Database" | Select DisplayName, ItemCount, TotalItemSize, StorageLimitStatus | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBSizes.csv