June 2014
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories

WordPress Quotes

It doesn't matter where you are coming from. All that matters is where you are going.
Brian Tracy
June 2014
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Short Cuts

2012 SERVER (64)
2016 windows (9)
AIX (13)
Amazon (40)
Ansibile (19)
Apache (135)
Asterisk (2)
cassandra (2)
Centos (211)
Centos RHEL 7 (270)
centos8 (3)
chef (3)
cloud (2)
cluster (3)
Coherence (1)
DB2 (5)
DISK (25)
DNS (9)
Docker (30)
Eassy (11)
ELKS (1)
EXCHANGE (3)
Fedora (6)
ftp (5)
GIT (3)
GOD (2)
Grub (1)
Hacking (10)
Hadoop (6)
health (2)
horoscope (23)
Hyper-V (10)
IIS (15)
IPTABLES (15)
JAVA (7)
JBOSS (32)
jenkins (1)
Kubernetes (7)
Ldap (5)
Linux (188)
Linux Commands (166)
Load balancer (5)
mariadb (14)
Mongodb (4)
MQ Server (24)
MYSQL (84)
Nagios (5)
NaturalOil (13)
Nginx (35)
Ngix (1)
openldap (1)
Openstack (6)
Oracle (35)
Perl (3)
Postfix (19)
Postgresql (1)
PowerShell (2)
Python (3)
qmail (36)
Redis (12)
RHCE (28)
SCALEIO (1)
Security on Centos (29)
SFTP (1)
Shell (64)
Solaris (58)
Sql Server 2012 (4)
squid (3)
SSH (10)
SSL (14)
Storage (1)
swap (3)
TIPS on Linux (28)
tomcat (62)
Ubuntu (1)
Uncategorized (30)
Veritas (2)
vfabric (1)
VMware (28)
Weblogic (38)
Websphere (71)
Windows (19)
Windows Software (2)
wordpress (1)
ZIMBRA (17)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Who's Online

0 visitors online now
0 guests, 0 bots, 0 members

Hit Counter provided by dental implants orange county

PowerShell To Add IP Address

Setting an IP address PS C:\Users\Administrator> Get-NetAdapter

Name InterfaceDescription ifIndex Status MacAddress LinkSpeed —- ——————– ——- —— ———- ——— Ethernet0 Intel(R) 82574L Gigabit Network Conn… 12 Up 00-0C-29-3C-C0-2F 1 Gbps PS C:\Users\Administrator> Get-NetIPAddress -InterfaceIndex 12 -AddressFamily IPv4

 

To add the IP address use:

New-NetIPAddress -InterfaceIndex 12 -AddressFamily IPv4 -IPAddress 192.168.1.9 -PrefixLength 24

PowerShell to Shutdown Windows Server 2012

Launch PowerShell, type stop then tab, you should see Stop-Computer. If this flashy technique does not work, then just type this one simple command long-hand:

# PowerShell command to shutdown Windows Server 2012

Stop-Computer

 

shutdown utility. However, there is a little known switch to bring-up a GUI version of this command line utility.

# […]

Reboot Windows Server 2012 using Powershell

For occasions where you employ the shutdown command, then instead of typing -s, substitute -r.

# How to Reboot Server 2012 with PowerShell Restart-Computer

# How to Reboot with the built-in command Shutdown -r -m \\localhost

shutdown /r /t 0

 

Install and Remove DHCP SERVER Using PowerShell

Install DHCP SERVER Using PowerShell

 

PS C:\Users\Administrator> get-command -Module servermanager

CommandType Name ModuleName ———– —- ———- Alias Add-WindowsFeature ServerManager Alias Remove-WindowsFeature ServerManager Function Disable-ServerManagerStandardUserRemoting ServerManager Function Enable-ServerManagerStandardUserRemoting ServerManager Cmdlet Get-WindowsFeature ServerManager Cmdlet Install-WindowsFeature ServerManager Cmdlet Uninstall-WindowsFeature ServerManager

 

 

PS C:\Users\Administrator> Add-WindowsFeature -IncludeAllSubFeature -Name DHCP, RSAT-DHCP

Success Restart Needed Exit Code Feature Result ——- […]

Add A DHCP using PowerShell

Here is a quick powershell script to set your network card TCP/IP setting to dynamic addressing:

$NICs = Get-WMIObject Win32_NetworkAdapterConfiguration | where{$_.IPEnabled -eq “TRUE”}

Foreach($NIC in $NICs)

{

$NIC.EnableDHCP()

$NIC.SetDNSServerSearchOrder()

}

IPConfig /all

Add A Static IP using PowerShell

$NICs = Get-WMIObject Win32_NetworkAdapterConfiguration -computername . | where{$_.IPEnabled -eq $true -and $_.DHCPEnabled -eq $true} Foreach($NIC in $NICs) { $ip = “192.168.1.10” $gateway = “192.168.1.254” $subnet = “255.255.255.0” $dns = “8.8.8.8”,”192.168.1.254″ $NIC.EnableStatic($ip, $subnet) $NIC.SetGateways($gateway) $NIC.SetDNSServerSearchOrder($dns) $NIC.SetDynamicDNSRegistration(“FALSE”) } IPConfig /all

Diskpart to Create and Format Partitions

To use the command line to bring a disk online, create a partition, and format it, run the following commands:

June 20th, 2014 | Category: 2012 SERVER | Leave a comment

LVM Linux

Logical Volume Manager

Page Contents

•Gathering Information •Creating and Moving Volume Groups •?Partition The Disk ?Initialise The Physical Volumes ?Add the PVs to a Volume Group ?Add Logical Volumes to the Volume Group ?Add Filesystems to the Logical Volumes

• •Migrating a Volume Group to Another System •Reducing the Size of a Logical Volume •Extending […]

Repair filesystem” prompt

How to edit /etc/fstab when at Centos/Redhat “Repair filesystem” prompt?

Now system was unable to boot the system because it was reading /etc/fstab file was unable to find the device for it. This can also happen when you have some external hard-drive attached with your linux system and you remove device but forgot to clean […]

How to mount or unmount NAS/NFS share on ESXi

How to mount or unmount NAS/NFS share on ESXi

 

First you need to have the vmkernel port group configured for the NAS/NFS. To mount NAS/NFS share on esxi: esxcfg-nas -a -o <nas_server_hostname or ipaddress> -s <nas share name> <NAS_datastore_name>To unmount NAS/NFS share on esxi:esxcfg-nas -d <NAS_datastore_name>Other options available in ESXi are:~ # esxcfg-nas –helpesxcfg-nas […]