Monday, April 29, 2013

EMC VNX CLI Reference – VNX 5300, VNX5500

By Joe Piggee

*Please note that EMC advises using the GUI, or opening a SR prior to using CLI. These commands have been gather from multiple sites and is pretty straight forward

 


 
Server specific commands:
 
server_cpu server_<x> -r now   Reboots a datamover
server_ping <IP>    ping any IP from the control station
server_ifconfig server_2 –all   View all configured interfaces
server_route server_2 {-list,flush,add,delete}   Routing table commands
server_mount     Mount a filesystem
server_export     Export a filesystem
server_stats     Provides realtime stats for a datamover, many different options.
server_sysconfig    Modifies hardware config of the data movers.
server_devconfig    Configures devices on the data movers.
server_sysstat     Shows current Memory, CPU, and thread utilization
server_log server_2    Shows current log
vi /nas/jserver/logs/system_log   Java System log
vi /var/log/messages    System Messages
server_ifconfig server_2 <interface_name> up  Bring up a specific interface
server_ifconfig server_2 <interface_name> down Take a specific interface down
server_date     Sets system time and NTP server settings
server_file     FTP equivalent command
server_dns     Configure DNS
server_cifssupport    Support services for CIFS users
 
To view HBA Statistics:
.server_config server_2 -v “printstats fcp reset”  Toggles the service on/off
.server_config server_2 -v “printstats fcp full”     View the stats table (must wait a while for some stats to collect before viewing)
 
To Join/Unjoin a CIFS Server from the domain:
server_cifs server_2 -Join compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
server_cifs server_2 -Unjoin compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
 
To view the current domain controllers visible on the data mover:
.server_config server_2 -v “pdc dump”
 
To enable or disable a domain controller on the data mover:
.server_config server_2 -v “pdc enable=<ip_address>”  Enable a domain controller
.server_config server_2 -v “pdc disable=<ip_address>”  Disable a domain controller
 
To stop and start the CIFS service:
server_setup server_2 -P cifs -o stop   Stop CIFS Service
server_setup server_2 -P cifs -o start  Start CIFS Service
 
To stop, start or check the status of the iSCSI service:
server_iscsi server_2 -service -start     Start iSCSI service
server_iscsi server_2 -service -stop      Stop iSCSI service
server_iscsi server_2 -service -status  Check the status of the iSCSI service
 
To enable/disable NDMP Logging:
Turn it on:
.server_config  server_x  “logsys set  severity  NDMP=LOG_DBG2″
.server_config  server_x  “logsys set  severity  PAX=LOG_DBG2″
Turn it off:
.server_config  server_x  “logsys  set severity  NDMP=LOG_ERR”
.server_config  server_x  “logsys set severity   PAX=LOG_ERR”
 
For gathering performance statistics:
server_netstat server_x -i               Interface statistics
server_sysconfig server_x -v         Lists virtual devices
server_sysconfig server_x -v -i vdevice_name  Informational stats on the virtual device
server_netstat server_x -s -a tcp  Retransmissions
server_nfsstat server_x                    NFS SRTs
server_nfsstat server_x -zero        Reset NFS stats
 
Filesystem specific commands:
 
fs_ckpt      Manage Checkpoints
fs_dhsm     Manage File Mover
fs_group     Manage filesystem groups
 
Complete List of  “nas_”  Commands:
 
This is just for reference, you can easily pull up this list from a Celerra by typing nas_ and hitting the tab key.
 
nas_acl
nas_ckpt_schedule
nas_dbtable
nas_emailuser
nas_inventory
nas_pool
nas_slice
nas_task
nas_automountmap
nas_cmd
nas_devicegroup
nas_event
nas_license
nas_quotas
nas_stats
nas_version nas_cel
nas_copy
nas_disk
nas_fs
nas_logviewer
nas_replicate
nas_storage
nas_volume
nas_checkup
nas_cs
nas_diskmark
nas_fsck
nas_message
nas_server
nas_symm
nas_xml
 
Complete list of  “server_”  Commands:
 
This is just for reference, you can easily pull up this list from a Celerra by typing server_ and hitting the tab key.
 
server_archive
server_cifssupport
server_file
server_log
server_name
server_ping6
server_sysconfig
server_vtlu
server_arp
server_cpu
server_ftp
server_mgr
server_netstat
server_rip
server_sysstat
server_cdms
server_date
server_http
server_mount
server_nfs
server_route
server_tftp
server_cepp
server_dbms
server_ifconfig
server_mountpoint
server_nfsstat
server_security
server_umount
server_certificate
server_devconfig
server_ip
server_mpfs
server_nis
server_setup
server_uptime
server_checkup
server_df
server_iscsi
server_mpfsstat
server_param
server_snmpd


server_usermapper
server_cifs
server_dns
server_kerberos
server_mt
server_pax
server_standby
server_version
server_cifsstat
server_export
server_ldap
server_muxconfig
server_ping
server_stats
server_viruschk
 
Complete list of  “fs_” Commands:
 
This is just for reference, you can easily pull up this list from a Celerra by typing fs_ and hitting the tab key.
 
fs_ckpt
fs_dedupe
fs_dhsm
fs_group
fs_rdf
fs_timefinder

*reference sites: http://emcsan.wordpress.com/2011/06/03/useful-celerra-commands/

https://mydocs.emc.com/VNX/relatedDocs.jsp

Thursday, April 25, 2013

Check my Exchange Server Version

by Joe Piggee Sr.

1. Open EMS

2. Type  Get-ExchangeServer | fl name,edition,admindisplayversion

Check build numbers here.

Thursday, April 18, 2013

How To Add Holidays to Outlook 2010

By Joe Piggee Sr.

1. Open Outlook and Click on the File Tab. Step1
2. Scroll Down and Select “Options” Step2
3. Click Calendar
4. Click Add Holidays
Step3n4

Wednesday, April 17, 2013

How to Remove a Domain Controller

 
By Joe Piggee Sr.
Removing a domain controller by using the Windows interface

You can use the Active Directory Domain Services Installation Wizard to remove a domain controller from an existing domain.

Administrative credentials

To perform this procedure, you must be a member of the Domain Admins group in the domain.

Click Start, click Run, type dcpromo, and then press ENTER.
  1. On the Welcome to the Active Directory Domain Services Installation Wizard page, click Next.

  2. If the domain controller is a global catalog server, a message appears to warn you about the effect of removing a global catalog server from the environment. Click OK to continue.

  3. On the Delete the Domain page, make no selection, and then click Next.

  4. If the domain controller has application directory partitions, on the Application Directory Partitions page, view the application directory partitions in the list, and then remove or retain application directory partitions, as follows:

    • If you do not want to retain any application directory partitions that are stored on the domain controller, click Next.
    • If you want to retain an application directory partition that an application has created on the domain controller, use the application that created the partition to remove it, and then click Refresh to update the list.
  5. If the Confirm Deletion page appears, select the option to delete all application directory partitions on the domain controller, and then click Next.

  6. On the Remove DNS Delegation page, verify that the Delete the DNS delegations pointing to this server check box is selected, and then click Next.

  7. If necessary, enter administrative credentials for the server that hosts the DNS zones that contain the DNS delegation for this server, and then click OK.

  8. On the Administrator Password page, type and confirm a secure password for the local Administrator account, and then click Next.

  9. On the Summary page, to save the settings that you selected to an answer file that you can use to automate subsequent operations in Active Directory Domain Services (AD DS), click Export settings. Type a name for your answer file, and then click Save. Review your selections, and then click Next to remove AD DS.

  10. On the Completing the Active Directory Domain Services Installation Wizard page, click Finish.

  11. You can either select the Reboot on completion check box to have the server restart automatically or you can restart the server to complete the AD DS removal when you are prompted to do so.

  12. Open Server Manager. Click Start, point to Administrative Tools, and then click Server Manager.

  13. In Roles Summary, click Remove Roles.

  14. If necessary, review the information on the Before You Begin page, and then click Next.

  15. On the Remove Server Roles page, clear the Active Directory Domain Services check box, and then click Next.

  16. On the Confirm Removal Selections page, click Remove.

  17. On the Removal Results page, click Close, and then click Yes to restart the server.

*http://technet.microsoft.com/en-us/library/cc771844(v=ws.10).aspx

To View or Change the Tombstone LifeTime

To View or Change the Tombstone LifeTime

*To perform the following steps you'll need to be a member of the Enterprise Admins group.

By Joe Piggee Sr.

To view or change attribute values by using ADSIEdit:

  1. On the Start menu, point to Run and then type ADSIEdit.msc and press Enter.
  2. In the next window, click Action-> Connect to
  3. In the center, change the connection point to "Select a well known Naming Context"
  4. Click the drop down menu, and select Configuration, then click OK
    ADSIEDIT-1
  5. Navigate to Configuration->CN=Services->CN=Windows NT->CN=Directory Service, Right click, and select properties
  6. ADSIEDIT-2
  7. Scroll down to "tombstoneLifetime" and double click to edit. It will be displaying the current value, which will be in days.
  8. When done just click OK.
  9. Click OK and then close ADSIEdit.

* When you view properties on cn=Directory Service,cn=Windows NT, cn=Services,cn=Configuration,dc=, if no value is set it means that the default value is in effect. Any value that you type in the Edit Attribute box replaces the default value when you click Set .

Saturday, April 13, 2013

What Files Make up a virtual Machine on ESXi 5.x

By Joe Piggee Sr.

 

Ok, I have received this question 4 times this week, via email, so decided to just put up a quick FAQ. “What files make up a VM, on ESXi 5?” Below you see a screenshot one of my virtual machines, which just happens to be also be my vCenter.

 

image

Quick Note: Virtual machines lock the .vswp, -flat.vmdk and -delta.vmdk, .vmx and .log files while powered on.

 

File Description
*.vmx This is the configuration file for the VM.
*.vmxf This is also a configuration file, but not really used. It’s main purpose is for compatibility. If you were to move a VM from ESXi to a VMWare Workstation installation, this file would be used.
*.vmsd This is just a snapshot descriptor file, that stores metadata. As you see above, mine is 0KB, because I have not created any snapshots.
*.vmdk This is the VM’s hard disk descriptor. This contains all the VM HD’s settings. Like how large etc..
-flat.vmdk This is the actual VM HD that contains the data.
*.log VM Log Files, there maybe additional log file with vmname-(Number) that contain old versions of the logs
*.nvram VM System Bios data
*.vswp VM Swap File reated when the virtual machine boots and is used to swap memory if access to physical memory isn’t possible. Especially useful when ballooning.
*.lck This is the file that has locked your running files. A running virtual machine creates lock files to prevent consistency problems on virtual disks. If the virtual machine did not use locks, multiple virtual machines might read and write to the disk, causing data corruption. Lock files are always created in the same directory as the .vmdk files

Thursday, April 11, 2013

How to remove Windows Update install Files

By Joe Piggee

 

1.     Click on "Start" and then "Run."

2.      Type "services.msc" (without quotes) and press "Enter."

3.      Install Service Packs

4.      Install service packs on business networks with minimal effort.

5.      Right-click on "Automatic Updates Service," then select "Stop." Wait for the service to stop, then click on "Start" and open "Run" again.

6.      Type "%windir%\SoftwareDistribution" (without quotes), then press "Enter."

7.      Double-click on the "Download" folder. Press "CTRL+A" to select all the contents of the folder, then press "Delete."

8.      Open "Run" from the Start menu again, then type "services.msc" (without quotes) and press "Enter."

9.      Right-click on "Automatic Updates Service," then select "Start.

A life saver... Recreate disk descriptors

Restart Management agents, or Web Management Service on an ESXi 5.x Host

By Joe Piggee Sr.

You may run into a scenario when you can’t connect to a host via vCenter, vSphere client etc.

Quick and easy:

To restart the management agents on ESXi:
 
DCUI:
1. Connect to the console of your ESXi host.
2. Press F2 to customize the system.
3. Log in as root.
4 . Use the Up/Down arrows to navigate to Restart Management Agents.

5. Press Enter.
6. Press F11 to restart the services.
7. When the service has been restarted, press Enter.
8. Press Esc to log out of the system.

From Local Console or SSH:
1. Log in to SSH or Local console as root.
2. Run this command:

./sbin/services.sh restart