IOS commands

Configure access lists

http://www.cisco.com/c/en/us/support/docs/security/ios-firewall/23602-confaccesslists.html

 

Edit access lists

http://www.omnisecu.com/cisco-certified-network-associate-ccna/how-to-edit-a-named-access-control-list-acl-on-router.php

configure-terminal

ip access-list extended 150

15 permit ip host 8.8.8.8 78.32.60.15 0.0.0.7

 

Delete sequence from access list

ip access-list extended 150

no 20

exit

 

Basic configuration

http://www.petri.co.il/csc_basics_of_cisco_switch_administration_02.htm

copy running-config startup-config

 

Configure PPPoA

http://networklessons.com/cisco/how-to-configure-pppoa-dsl-on-cisco-ios-router/

 

Configure Dynamic NAT

http://networklessons.com/network-services/how-to-configure-dynamic-nat-on-cisco-ios-router/

Advertisements

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 https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | sort -r

Or add option to filter list:

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | 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 https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -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: http://exchangeserverpro.com/restore-individual-mailbox-exchange-2010/

 

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: http://technet.microsoft.com/en-us/library/dd298062(v=exchg.141).aspx

Mailbox Statistics

List mailbox databases:

Get-MailboxDatabase

 

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