Monday, September 7, 2015

Postfix mailserver



1) How to display the mailqueue

  •   mailq
  •  postqueue -p

2)  Delete mails from the mail queue


   Delete all the pending mails from the mail queue

   postsuper -d ALL


   To delete only the deferred mail from the mail queue

   postsuper -d ALL deferred

Tuesday, September 1, 2015

VMware ESXi 5.x - to mount a netapp NFS share from ESXi command prompt


VMware ESXi 5.x - to mount a netapp NFS share from ESXi command prompt 

1)   To list the current NFS mounts on the server


esxcli storage nfs list

2) Command to mount the a Netapp NFS share 

       volume name : /vol/v2tc_x1/qtc_x1/
       hostname :  remotehost.domain.com
       mount folder name:  DataStore_Name

 esxcli storage nfs add -H remotehost.domain.com  -s /vol/v2tc_x1/qtc_x1/ -v DataStore_Name


3) To remove the NFS mount

esxcli storage nfs remove -v DataStore_Name