Tuesday, June 24, 2014

 

aix password reset

passwd username

 most likely will need to do this also.
chsec -f /etc/security/lastlog -a "unsuccessful_login_count=0" -s teamadmin

http://www.gilandre.net/cgi-bin/wiki.cgi/AIXUnlockAccount

Friday, August 30, 2013

 

splunk forwarder

http://answers.splunk.com/answers/50082/how-do-i-configure-a-splunk-forwarder-on-linux

Monday, July 29, 2013

 

vmware template- networking for redhat

One of the good things about VMware is that you can create an OS template. That's a complete pre-configured VM that you can use to create other machines from. However, you can get into a little bit of trouble with CentOS/Red Hat, in particular with networking. When creating a template, you first build a VM, install an OS, configure it the way you like it and then convert it into a template. When you convert a CentOS/Red Hat VM into a template it will keep the virtual NIC MAC address of the original VM you created it from. As such, when you build other VM's from this template, they will have incorrect MAC addresses for their virtual NIC's. Here's how to make sure this doesn't happen.

Make sure the template is correct

The last steps before converting the VM into a template should be:
1. Edit any ifcfg-ethX files, in /etc/sysconfig/netwrok-scripts/, that you may have and delete the MAC address lines, i.e. HWADDR=XX:XX:XX:XX:XX:XX
2. Edit /etc/udev/rules.d/70-persistent-net.rules and delete any lines that have a MAC address in them.
Example:
 # PCI device 0x8086:0x1076 (e1000)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:0c:07:75:dd", ATTR{type}=="1", NAME="eth0"
 
 # PCI device 0x8086:0x103a (e100)
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:a6:35:9c:be", ATTR{type}=="1", NAME="eth1"
NOTE: Don't worry, this will be automatically re-populated when you start the new VM.
3. Shutdown the VM and convert into a template immediately.
NOTE: If you have to reboot for any reason before converting this VM into a template, you will have to repeat step 2.

Thursday, June 20, 2013

 

updating ip after cloning rhel 6 image

1. Go to /etc/udev/rules.d/
2. Open 70-persistent-net.rules with your favorite editor (I prefer "nano")
     There should be two devices listed starting with "SUBSYSTEM" (the same machine before cloning had only one)
3. Comment out the first line starting with "SUBSYSTEM" (a "#" will comment it out)
4. Go to the end of the second line (uncommented one) starting with "SUBSYSTEM" and change "eth1" to "eth0"
     Record the new MAC Address of the entry
5. Go to /etc/sysconfig/networking/devices
6. Open ifcfg-eth0 with your favorite editor
7. Change "HWADDR" to the new MAC Address you recorded
8. Change the IP while you're in here
9. Reboot the box, if ifcfg-eth0 is set to come up on boot, the vNIC should be working now.


Saturday, June 15, 2013

 

generate self sign key and cert

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX
You can add -nodes if you don't want to protect your private key with a passphrase.

Friday, June 14, 2013

 

aix volume management

Device Commands
lsdevThe "lsdev -Cc disk" command can be used to display the what disks are recognized by the system. This will display disks whether they have been initialized as PVs or not.
rmdevRemove a device from the system configuration. This is done to remove the device configuration when a faulty disk is replaced, or if a disk is moved to another system.
cfgmgrRe-scan the system for devices that were not available at system start up. This can be done to recognize hot pluggable drives that were added after the system was up, or can be used to recognize devices such as external tape or disk drives that were not powered on when the system was booted up.
Physical Volume Commands
pvcreateInitialize a disk as a Physical Volume. This must be done prior to adding a disk to a volume group.
lspvDisplay the Physical Volumes on a system. When given a PV name as a parameter, it gives detailed information about that PV.
Volume Group Commands
lsvgList information about logical volumes. When given with parameters, it lists all volume groups on the system. When given parameters, it can give detailed information about a particular VG, including information about what logical volumes are in that volume group.
chvgChange volume group characteristics.
mkvgCreate a volume group.
extendvgAdd PVs to a volume group.
reducevgRemove unused PVs from a volume group. If logical volumes currently reside on the PV in question, the "migratepv" command can be used to move the LV onto another disk in the VG provided there is enough space to do so.
exportvgRemove knowledge of a volume group from the Kernel. This can be used on removable disks such as optical disks or Iomega Jaz drives prior to removing the drive from a system, or can be used when moving a disk or disks from one system to another. The data in the VG is left intact.
importvgRe-initializes kernel knowledge of a volume group that had been previously exported. The data on the VG is left intact, and becomes accessible once it has been imported. The existing logical volume names are used unless they conflict with logical volumes currently in use on the system.
mirrorvgCreates mirror volumes for all volumes in a volume group.
unmirrorvgRemoves a mirror from each volume in a volume group.
Logical Volume Commands
lslvLists information about logical volumes. A logical volume name must be specified. In order to list information about all logical volumes, you would need to use "lsvg" to list all volume groups, and then use "lsvg -l <vgname>" on each volume group. You could then use "lslv <lvname>" to list the detailed information about each logical volume found.
mklvCreate a logical volume.
rmlvDelete a logical volume.
extendlvIncrease the size of a logical volume.
chlvChange the characteristics of a logical volume.
mklvcopyMirror a logical volume. This allows for RAID-1 in software. 
rmlvcopyRemoves a mirror copy of a logical volume.
File System Commands
crfsCreate a file system. This command can be used to create a file system on an existing logical volume, or it can be used as an all in one command to create both a logical volume and file system at once.
chfsChange file system characteristics. This can be used to increase the size of a file system.
rmfsRemove a filesystem, its associated logical volume, and its entry in /etc/filesystems.
Paging Space Commands
lspsLists information about paging space volumes.

Friday, March 15, 2013

 

disable uac


If you would like to disable UAC for other administrator accounts, please do below:

1.    Click Start, type gpedit.msc and press Enter.

2.    Expand Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options.

3.    Double-click “User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode” on the right pane.

4.    Choose “Elevate without prompting” and click OK.

This page is powered by Blogger. Isn't yours?