smtctl - multithreading, emstat -v - emulated cpu instructions, vmstat -v (tail -5 for buffers issues) performance stats, lvmo -a lvm tunables, svmon -P pid, ioo -FL (compares tunabled values, defaults and current), vmo -F -a (shows all, including restricted tunables)
AIX
filemon -o to outfile, use -O detailed,all for all levels, -d requires trcon to start. i.e. filemon -d -T 5242880 -O detailed,all -o fmon.out
AIX
lsattr -E -l sys0 -a maxuproc, Maximum processors per user
AIX
trcstop to stop filemon
SP
Commands to multiple TSM Servers TSM1,TSM3:
AIX
mksysb example “/usr/bin/mksysb -i -X /opt/redback/uda1-pcc-dcp.mksysb.08022011”
AIX
date +%m = Decimal month, date +%M =Decimal minute, date +%h = character month, date +%H = decimal hour, date +%d = decimal day, date +%D = date
UNIX
simple loop example, while sleep 5 , do , lspath , done
SP
TSM server 6.n startup . /home/tsminst2/sqllib/db2profile, cd /home/tsminst2/, /opt/tivoli/tsm/server/bin/dsmserv -q -u tsminst2 -i /home/tsminst2 & (For TSM1 use user “tsm1”)
oslevel -r -g 6100-07, to list filesets greater than 6100-07. oslevel -r -l 6100-07 to list filesets less than 6100-07
UNIX
(set user id) and sgid (set group id) are the equivalent of adopted authority in i5OS. Are represented as an “s” in the executable part. e.g. chmod u+s
UNIX
When a directory has the sgid mode enabled, any files or directories created in it will inherit the group id of the directory.
UNIX
Sticky bit is displayed in a long directory listing in the place of the executable flag as “t” for other users (the last character), with the same meaning for upper and lower case as for suid and sgid. If set for a directory, it permits only the owning user or the superuser (root) to delete or unlink a file.
UNIX
nmon -f -s 30 -c 2880 -m /backupdb
AIX
mount -v cdrfs -o ro /dev/cd0 /mnt
AIX
User last login, lsuser , /etc/security/lastlog, last -1 ,
chroot aix, /etc/ftpaccess.ctl and puseronly:test123 (below) readwrite:/home/test123, restart ftp subservers stopsrc -t ‘ftp’ and startsrc -t ‘ftp’ . GUI to work /usr/samples/tcpip/anon.users.ftp
SP
”tdpsqlc query tsm *” query all backup objects
AIX
if 0042-027 NIM machine has no “Mstate” attribute, run a check NIM client operation first and that will create a Mstate value. Then you can reset and deallocate NIM resources from the NIM client machine.
SP
TSM “show version” command to examine objects and their states.
AIX
”cat filename | chpassword” , for batch password changes. File format is username:password
AIX
/etc/security/lastlog is last login. /etc/security/failedlogin, who /etc/security/failedlogin and /usr/sbin/acct/fwtmp < /etc/security/failedlogin, to read failed logins.
”mkfs -V jfs2 /dev/lvname” format a logical volume for reuse
AIX
startsrc -s sendmail -a “-bd -q30m” Send mail start if stuck
DB
Oracle connectivity export ORACLE_SID, sqlplus / as sysdba. Tna and listerner config files are in $ORACLE_HOME/network/admin
DB
Oracle recovery ,startup mount; RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE; (Specify second most recent redo log fullpath) ALTER DATABASE OPEN RESETLOGS;
DB
Oracle commands select name from v$datafile; (Database Files) select group#, member from v$logfile; (redo logs)
UNIX
if [ ${STATUS} != ‘prepared’ ] example using != for characters
UNIX
ssh-keygen -t rsa, to generate rsa key pair
SP
Windows command line TSM restore. Use drive letters, instead of UNC filespace names
SP
TDP SQL restore from differential. First restore FULL with log without Recovery option and replace checked. Then restored the difffull with the log and without replace and with recovery checked.
AIX
Add VLAN’s to SEA, create new Virtual IO adapter (l-lan) on VIO servers. chdev -dev entX -attr virt_adapters=entY,entZ (where entX is the SEA and entY is the adapter that was already part of the SEA and entZ is the new virtual adapter)
UNIX
ksh hints use ”?” For a single level wildcard for ls. Use ”/” to search for previous entry in vi mode.
SP
TSM Client version SQL select node_name from NODES where CLIENT_VERSION=‘6’ and CLIENT_RELEASE=‘1’ and CLIENT_LEVEL=‘3’
IBMi
MIMIX v6 FILE exclusions, Make sure COOPDB is *NO and TYPE is FILE and OBJATR is ‘PF-DTA’. Then LODDGFE will ignore excluded files correctly.
AIX
pwdadm -c user This will remove the ADMCHG flag without need to vi the file directly.
AIX
Performance HMC wide, lparstat, app displays the the availble CPU’s in the shared processor pool. Need “Allow performance information collection” checked in the LPAR profile to see app.
AIX
Additional processor pools can be capped by the maximum CPU setting and CPU’s can be reserved (but not allocated to a particular LPAR) for uncapped CPU pool ultilization. The maximum setting must include allocated CPU and the reserved CPU.
AIX
OS processor folding, 5.3 onwards can consolidate threads to use less VCPU’s. Processor folding can be disabled: #schedo –o vpm_xvcpus=-1
AIX
chvg -t 2 vgname, to change a VG to factor 2 (This means that the PP size per PV doubles, but the MAX PV’s decreases by half)
AIX
export TERM=vt100 to have the more command output stay on the screen.
SP
dsmc incr /fs (filesystem without trailing slash will update incremental information)
SP
dsmc incr -subdir=yes /fs/dir/ (directory will not update incremental information and will re backup data)
STG
svcinfo and svctask -? List all commands SVC CLI
LIN
date -s “MM/DD/YYYY hh:mm” set time and hwclock —systohc hardware clock sync
UNIX
Redirect stderr output to a file “command 2> outfile.txt”
UNIX
cp -pR is best for recursive copy
AIX
DLPAR remove device, do not delete device from configuration profile first. Have to changed to desired or not required in configuration profile first and then DLPAR will work. Then delete from configuration profile.
SP
TDPSQLC with MSSQL native authentication /SQLAUTHentication=SQLUserid /SQLUser=sa /SQLPassword=password
/usr/lpp/Atape/instAtape -a ,will unconfigure all devices that have alternate pathing set to No,and will reconfigure all devices, setting alternate pathing to Yes.
AIX
entstat: 0909-003 Unable to connect to device ent4, errno = 19, means that SEA has failed over to other VIO
AIX
NIM SPOT checks, nim -o check aix61tl3sp3_spot and nim -o lppchk -a show_progress=yes aix61tl3sp3_spot
AIX
NFS stopping state, startsrc -s portmap
AIX
move logical volume to another volume group, create new log volume and format “logform /dev/loglv04”, change filesystem attributes pointing to new lv and log lv “chfs -a dev=/dev/poolsqlmetalv -a log=/dev/loglv04 /poolsqlmeta” and then “fsck -p “
AIX
smit install_latest, Install latest software
UNIX
ldd to see dynamically linked objects required for binaries
AIX
NPIV commands, “lsmap -npiv -all” to list vfchosts (which are created by a Virtual Fiber Client server mapping in the HMC). vfcmap -vadapter vfchostn -fcp fcsn (mapping the virtual NPIV adapter to a physical HBA port). Create the Client Virtual adapter first, Using the first WWPN.
AIX
”redefinevg -d hdiskn rootvg” to sync PV information to the ODM
AIX
”lqueryvg -Atp hdiskn” shows VGDA information on physical volumes
AIX
splitvg will create a new snapshot vg from a mirrored vg, joinvg will recreate the mirror.
fslvname usually indicates a logical volume that is part of a snapshot vg
SP
dsmadmc -commadelimited, for comma delimted output
AIX
bootlist -m normal -o, display bootlist
DB
bin/uv -admin -stop Universe stop .uvhome will show environment
AIX
chfs -a mount=true /filesystem
UNIX
If a filesystem is locked, try fuser -u /dev/lvname
AIX
ifconfig -ld down IP interfaces, ifconfig -lu up IP interfaces
AIX
errlog is VIO version of errpt
AIX
Changing VIO SEA priority, chdev -dev entn -attr ha_mode=standby to make backup. chdev -dev entn -attr ha_mode=auto to set back to revert to primary or auto failover status
AIX
change paging space, chps -s nn hd6 (add PP’s), chps -d nn hd6 (substract PP’s), lsps -a (Detailed list of paging space and logical volumes)
AIX
when copying /etc/users and groups, must recreate user and group pconsole. Experienced issue when installing new TL level on AIX 6.1
AIX
For X11 forwarding to work on AIX, X11 filesets must be installed, including x11.dt and xauth which is included in X11 config fileset (AIX 6.1)
AIX
lsattr -Rl devicename -a attributename will list all viable attribute settings.
AIX
chdev -l ‘smc1’ -a alt_pathing=‘yes’, MPIO tape library. Control path.
SP
append waitt=0 against checkin libv TSM commands to negate tape load request.
AIX
diag, Task selection, used for tape scsi resets.
AIX
chpath -l hdisk1 -p scsi0 -s disable, chpath example
UNIX
find +mtime and +ctime modified time and creation time.
AIX
rpcinfo -p for RPC info and nfso -a for NFS tunables. NFS v3 is TCP, and NFS v2 is UDP.
AIX
netstat -i for MTU
AIX
smit nim_mac_op, Perform NIM client tasks from NIM server.
nim -o showres lpp_source1, Show contents of a NIM resource.
AIX
nim -o update -a packages=all -a source=/dev/cd0 lpp_source1, update NIM resource
AIX
nim -o update -a packages=“bos.games 5.2.0.0 bos.terminfo” -a source=/dev/cd0 lpp_source1, Single fileset update
AIX
nim -o update -a recover=yes -a source=/dev/cd0 lpp_source1, recover missing SIMAGES from OS installed CD
AIX
/usr/lib/instl/lppmgr -d /export/lpp_source/directory -uxV, check for superseded and duplicate filesets
AIX
lsnim simages(“support images”) lpp_source flag denotes that it is OS installable
AIX
nim -o allocate -a lpp_source=LPPRESOURCE_NAME MACHINE, Allocate nim resource example to a machine
AIX
lsnim -O MACHINE will list valid operations
AIX
nim -o check NIMRESOURCE, Check NIM resource
AIX
lslpp -w /usr/sbin/binaryname, shows what fileset is attached to the binary
AIX
lslpp -d, dependent filesets
AIX
lppchk -v -m 3, shows detailed information about required filesets
AIX
nim -o showlog -a full_log=yes -a log_type=nimerr ULT4-TAS-DCP, NIM error log for a particular NIM object
AIX
smit lsmksysb, list contents of mksysb. restore -T will also do this
AIX
smit lsbackvg, list contents of savevg
AIX
smit restmksysb, restore mksysb files
AIX
smit restsavevg, restore savevg files
AIX
loopmount -i /spare/Image_110710_1447.iso -o “-V cdrfs -o ro” -m /mnt, mount an iso image
AIX
chpv -h y hdisk3, to create hotspare disk in volume group.
AIX
smit nim_mac_op,select “cust” and specify fileset(s), to install filesets to a machine. Must allocate an lpp_source resource first.
AIX
After mksysb restore, smit chgsys and change the maximum number of processes per user 4096
AIX
After “Restorevg” underlying mount point permissions are not properly retained.
SP
”restart restore” will restart a restartable TSM restore session from the BA client
AIX
”lsmcode -d ” display microcode
SP
syscat.tables and syscat.columns for TSM SQL
SP
pwdadm -f NOCHECK , circumvent password restrictions in /etc/security/user
PC
Excel YMD to DMY, format number fields to custom yymmdd and then use the “Data” Text to Columns tool to convert.
AIX
redefinevg -d hdisk0 rootvg, re-associate a physical volume to volume group. Then synclvodm -v old_rootvg, to rebuild the logical volumes. This was done after varyonvg had failed.
AIX
chpv -Cc , the disk no longer has an old vgda or boot image
AIX
readvgda , physical volume data area information
AIX
lspv -free , unmapped VIOS disks
AIX
sysdumpdev -l, system dump information
AIX
enq -AWs, list of AIX printers
IBMi
WRKTIMZON, i5OS time zone detail
UNIX
who -r, runlevel AIX
AIX
/var/adm/cron/log, cron logs
AIX
multibos, same OS level. -s setup, -S shell
AIX
lslpp -S O optional filesets and lslpp -S A lists filesets with installation.
IBMi
CPF2469 unmonitored by QSRSLCP2, to resolve BRMS issue clear the SAVACTMSGQ message queue.
COBOL
mflicense, cd /opt/microfocus/mflmf, lmfgetpv (Info), mflm_cmd (input licence) use ”/ number” as function keys
AIX
lshwres -r virtualio —rsubtype fc —level lpar -m , List all virtual IO for a managed system.
AIX
telinit q to examine the /etc/inittab
AIX
vtmenu, from HMC for console from hmc shell. mkvterm -m -p . To close console rmvterm -m -p
IBMi
CHGSRVA PTFGRPLVL(0001), V6R1 single PTF view
LIN
dmidecode, linux hardware information
IBMi
WRKRDBDIRE, *ALWLOWER apprears just to require *USRID (User ID only)
SP
select sum(backup_mb)+ sum(archive_mb)+ sum(spacemg_mb) as PRIMARY_MB from auditocc, total occupancy for TSM servers
VXFS
vxdisk rm , remove veritas disk
VXFS
vxdg destroy , remove disk group
VXFS
vxdg -T 140 init , add disk to diskgroup using vxvm 5.0 compatible private region.
del group {VMFULL}\TSM\VMFULL\* -ina -pick, select FULLVM VCB backups to delete
AIX
/usr/bin/ioscli -> /usr/ios/cli/ioscli, use VIOS commands in oem_setup_env
UNIX
rpm -qpR gnupg-1.4.11-2.aix5.1.ppc.rpm, see rpm dependencies before install
SLR
devfsadm, scan for new Solaris devices
UNIX
Unix file owners, can change permissions of file.
AIX
lvmstat -v datavg -e, start lvmstat volume group collection. Replace the -l for logical volume
AIX
lvmstat -v datavg -d, stop lvmstat volume group collection Replace the -l for logical volume
AIX
lvmstat -v datavg -c 5, list top 5 logical volumes in the volume group
AIX
AIX checksum on a file, cksum.
AIX
change “sa” in /etc/bootptab to NIM server alternate IP and refresh -s inetd, after nim resource allocation and before bos install via NIM. (depreciated process)
AIX
Create a new entry in /etc/hosts, Have to define new interfaces for VLAN IP address via Manage Machines -> Manage Network Install Interfaces -> master -> select “VLAN IP hostname”
AIX
lsnim -l master, shows interfaces and other nim information
AIX
crfs -v jfs2 -g'' -a size=‘78G’ -m’/filesystem’ -A’yes’ -p’rw’, easy way to create a jfs2 filesystem
VXFS
/usr/lib/vxvm/bin/vxdiskunsetup, to remove disk from vxvm
SLR
uadmin 2 0, go to Solaris domain console OK prompt
SLR
zfs get all
VXFS
vxdisksetup -i format=cdsdisk, add disk to vxvm control
lssyscfg -r lpar -m 9406-570-SN651F45C -F name,rmc_ipaddr, IP addresses of DLPAR systems
UNIX
du -a /var | sort -n -r | head -n 20, top 10 files sorted
SLR
zfs mount, list mounted zfs directories
AIX
errclear 0, to clear AIX errpt log
AIX
route get , determine what AIX interface is being used for a route
UNIX
unshare :/directory to remove exported nfs filesystem
UNIX
share, list nfs exported filesystems
UNIX
ps awxl, show nice values
AIX
export LDR_CNTRL=MAXDATA=0xD0000000@DSA, resolve AIX memory errors with 64bit to 32bit rsync transfer
UNIX
xargs -n2 Reads output from the previous command and will process the output as two arguments (seperated by spaces).
AIX
ssh pam enablement, Usepam=Yes in sshd_config. chsec -f /etc/security/login.cfg -s usw -a auth_type=PAM_AUTH. Add sshd entries in /etc/pam.conf file for auth, account, password and session
AIX
Change login length, chdev −l sys0 −a max_logname=18, to see new value “getconf LOGIN_NAME_MAX”
SP
select NODE_NAME,REG_TIME from NODES where REG_TIME LIKE ‘%2011-12%’, When TSM nodes were registered.
STG
Brocade Zone admin, Create a new alias in Alias Tab and assign a member WWPN from the left pane -> Create a new zone in the zone tab and assign members from the left pane -> In the Zone admin tab, add left pane inactive zones (black) into the right pane. -> Save and Enable config to complete
AIX
alt_disk_copy is an AIX 5.3 replacement for alt_disk_install
SP
UNIX
UNIX
egrep ’|’ , grep multiple patterns
AIX
usrck -y , run this against users after manually copying AIX /etc security files. May also have to run pwdck and grpck to reconcile any password and group issues.
SP
MSSQL TDP restore to a different database name. In the Restore Databases tab, Check the required databases and logs, right click on the selected database backup and select “Restore Into” type a new Database name. Then right click on the selected database backup and select “relocate” and browse to a different directory.
AIX
reboot, AIX immediate reboot
AIX
Validate AIX installation, instfix -i |grep AIX. If a <OS_TL> level reported not all filesets were found, then instfix -ivk <OS_TL> |grep not|grep : ,will report the relevant filesets
AIX
lssyscfg -r sys -F name,state , Server names from HMC
AIX
lssyscfg -r prof -m -F lpar_name,desired_procs,desired_proc_units,desired_mem , List HMC profile information
AIX
lshwres -r proc -m —level lpar -F lpar_name,curr_procs,curr_proc_units , List HMC LPAR processor information
AIX
lshwres -r mem -m —level lpar -F lpar_name,curr_mem , List HMC LPAR memory information
AIX
lshmc -V , HMC information
AIX
AIX 5.3 and before AIX 6.1 TL4. Cannot dynamically grow rootvg.
AIX
swapon </dev/paginglv> and swapoff </dev/paginglv>, is used for activating page files in AIX
SP
dsmc restore -fromnode=cougar \\cougar\d$\projx\* d:\projx\, restore from TSM node cougar
AIX
TMOUT=10800, Unix shell time out ksh.
LIN
authconfig —test, Linux RH5 to show authenication configuration
LIN
chage -l , Linux Redhat show password policy
LIN
pam_cracklib.so, Linux password complexity module
SP
brtools -V, shows brtools version
SP
/usr/tivoli/tsm/tdp_r3/ora64/backint -p /oracle/DBI/102_64/dbs/initDBI.utl -f inquire, backint ID information.
SLR
cat /etc/release, Solaris version
SP
restore /cfptmp/ftpdirector/ /u114/ -subdir=yes -inactive, restore directory to another location.
SLR
share -F nfs -o ro /tsmbackup, Solaris nfs share
SLR
flarcreate -n CFPPROD -U “content_architectures=sun4u,sun4v” -c /tsmbackup/CFPPROD.flar, create flar system archive outside of the root disk.
SP
dsmc q backup /*/filename* -inactive, search for backup files in dsmc client
SLR
showdomainstatus –a, list Solaris domains in console
SLR
/etc/defaultrouter, add an IP address and reboot for default Solaris route.
SP
<INSTANCE_HOME>/sqllib/db2nodes.cfg, has to be changed to a new host name if imaging a TSM server from another system. Also db2set -g DB2SYSTEM= and db2set -all to check the changes, must be signed on as TSM instance user first.
AIX
Rename a Volume group, exportvg and then importvg using a different name
AIX
smit nimadm, NIM alt disk migration (must be rsh capable)
AIX
mtu_bypass, enN attribute in AIX 6 - 7 for persistent IP large send.
AIX
chlv -e’x’ , change a logical volumes inter disk POLICY to maximum. To distribute PP’s across as many physical volumes as possible.
AIX
AIX ssh permission denied issue, check the /etc/pam.conf file for the ssh entries.
AIX
lspath -l hdisk57 -F “connection parent path_status path_id status” -H, for full lspath output
AIX
lsof -i: to determine running process on a socket
UNIX
ps -t pts/ display all processes on that terminal
UNIX
ps v shows memory and cpu stats for process
UNIX
jobs -l shows jobs submitted in the session
UNIX
ps -eo pid,pgid,tty,status,args to see the process group id
DB
exp / file=/u0/app/oracle/admin/l012band/dpdump/test.dat log=/u0/app/oracle/admin/l012band/dpdump/test.log full=yes, to export oracle database to a particular file.
UNIX
ulimit -f unlimited, ulimit -d unlimited, to remediate “cp: Requested a write of 4096 bytes, but wrote only 3584.”
SLR
Solaris top equivalent is prstat
AIX
VIOS NIM restore, smit nim_mkres -> Manage Control Objects -> Define a Management Object -> vios -> management source = , Identity via lssyscfg -r lpar -m -F name,lpar_type,lpar_id|grep vioserver
AIX
HMC and server call home serviceability requires that “Manager Customer Information” is populated in the HMC, especially customer number
UNIX
ls -la | tee , to have screen output and pipe to a file simultaneously
STG
host_list, XIV CLI list hosts WWPN
STG
host_connectivity_list, XIV CLI host to fc port relationship
STG
fc_port_list, XIV CLI lists the fc ports
UNIX
script <file.out>, all screen output is copied to this file. Type exit to stop the copying of output.
AIX
truss -fp , debug a process id.
UNIX
find /directory -name ‘*.nmon’ -mtime +75 -exec rm -f {} \\; find command working in crontab
IBMi
Call QSYS/QLZARCAPI, systemi CPU LPAR information
AIX
iptrace -i -s -b /outfile.trace, can be started and stopped by startsrc and stopsrc
Each node of every io group of in storwize cluster has to be zoned to the external storage, for storwize storage virtualization
STG
At least two ports of every node in the storwize cluster needs to be zoned to the external storage, for storwize storage virtualization. (Not enough redundancy errors will appear in the event log)
SCALE
Discover each linux multiplath host bus one at a time, using echo ”- - -” > /sys/class/scsi_host//scan, when using scsi3 reserved disks for spectrum scale.
PPC
ppc64_cpu —smt=on and ppc64_cpu —smt=off, toggle Linux Power SMT on or off and lscpu will validate
AUTO
AIX puppet client installation requires a .rpmmacros file created with ”%_tmppath /tmp”
CLD
powervc-config general ifconfig —set —interface <interface_number>, to change powervc network configuration.
MS
Computer Configuration /Windows Settings / Security Setting /Network List Manager Policies, Win2012 change network type
LIN
Make a change to /etc/lvm/lvm.conf and has fixed the RH 7.2 duplicate PV issue.
LIN
setenforce 0, to set selinux to permissive mode.
SCALE
wbinfo -u, Spectrum Scale linux winbind user information
SCALE
Spectrum Scale mmuserauth information, installed the Windows 2012 R2 NIS and password sync. The USER_NAME AD user (nas) had UNIX attributes on with a UID (10003) and GID (10001) within the UNIXMAP_DOMAINS range. Set the Primary group in Windows Users Membership to nas-users (10001)
SCALE
mmcrfs <local_filesystem> -F -B 64k, create local filesystem on local disk for Spectrum Scale AFM cache system E.g. mmcrfs afm1 -F disks -B 64k
mmlinkfileset <local_filesystem_device> -J <newmountpoint_withinTheLocalfilesystemDevice>, Link new filesystem to new local mount point within the new device. E.g mmlinkfileset /dev/afm1 cache -J /gpfs/afm1/nas
SCALE
mmchconfig cesSharedRoot=<newmountpoint_withinTheLocalfilesystemDevice>, Have the protocols (SMB or NFS) have this a root directory. E.g. mmchconfig cesSharedRoot=/gpfs/afm1/nas
CLD
Add linux user to powervc filtergroup, usermod -a -G powervc-filter
Install gpfs.license.std, to install spectrum scale via the spectrumscale toolkit.
SCALE
/usr/lpp/mmfs/4.2.3.0/installer/spectrumscale install, to use the spectrum scale toolkit
SCALE
install sssd ypbind openldap-clients rpms for spectrum scale protocols
SCALE
/usr/lpp/mmfs/4.2.3.0/installer/spectrumscale deploy, to install spectrum scale protocols
SCALE
ctdb status, NAS cluster status
SCALE
smbstatus, samba connection status
SCALE
mmces address add —ces-ip , add additional IP addresses to the cluster
SCALE
mmhealth node show, show spectrum scale node issues
SCALE
mmces address add —ces-ip , add additional IP addresses to the cluster
SCALE
mmces address policy even-coverage, mmces address move —rebalance, these commands will balance multiple IP addresses across the cluster
SCALE
mmperfmon config, configures the /opt/IBM/zimon/ZIMonSensors.cfg
SCALE
mmcessmblsconfig, list samba configuration
LIN
Linux winbind lookups, add “winbind” to the shadow,group and passwd sections of the /etc/nsswitch.conf file
LIN
Linux winbind authentication, authconfig —enablewinbindauth —update
LIN
mount -t cifs //// /<local_path> -o username=,domain=,vers=3\.0,uid=<AD_uidnumber>,gid=<AD_gidnumber> , For Spectrum Scale cifs linux clients
STG
chiogrp -feature raid -size 80 io_grp0, increase storwize raid memory if additional mdisks cannot be created.
AIX
cfgmgr -i , this is used when a device is stating it needs a fileset. E.g. device.fcp.changer
SCALE
dsmmigfs enablefailover, on all Spectrum Scale nodes in a cluster.
SP
dsmc set password -type=vm <virtualcenter_fqdn> <“vcenteruser_in_quotes”> <“vcenterpassword_in_quotes”> -optfile=<datamover_optfile> -asnode=, Spectrum Protect VE post installation. Note double quotes around vcenter user and password
SCALE
/usr/lpp/mmfs/bin/net ads lookup -S , Spectrum Scale net ads lookup
SCALE
mmdiag —config, show spectrum scale configuration options
| parallel —will-cite -j . Linux parallel binary from the fedora epel-release repository to run multiple processes for tasks like rsync.
UNIX
rsync can use {} as input, E.g cat list.txt | rsync -av {} user@server:/directory/
LIN
lsscsi -LH —transport, Linux Fiber channel adapter information
AIX
AIX NIM “if1” interface attributes modification example (<NIM_network hostname MAC_address>) /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a if1=“ent-Network17 cyclone E41F134FB342” master
AIX
nim_master_recover -i <interface_name> -S, to recover NIM master “if1” interface
AIX
nfso -po portcheck=0, to fix the 0611 Nim install issue.
AIX
Discover non IBM tape library devices on AIX, smit devices -> Tivoli Storage Manager Devices
STG
V7000 IP replication, configure Ethernet Ports with dedicated IP addresses and enable “Remote Copy” only. Do not share remote copy and management ethernet ports.
AUTO
ansible-doc -l, list ansible modules
SCALE
When mmuserauth is used on a Spectrum Scale node, copy /etc/krb5.keytab to the other nodes to avoid SMB issues
SCALE
To solve spectrum scale client connectivity issues between clustered nodes, add both the nodes and IP addresses into CES groups.
SCALE
Spectrum Scale samba requires a fully qualified domain name for the Netbios name in /etc/hosts, also prefers to have the first entry.
SCALE
/opt/tivoli/tsm/client/hsm/multiserver/bin/dsmreconcileGPFS.pl </spectrum_scale_filesystem>, space management reconciliation.
SCALE
mmadquery list uid —user —domain , Spectrum scale list all uids
SCALE
mmcheckquota -a, schedule to update quota report information
GIT
git clone -v https://github.com//.git <local_directory>, clone a github repository for local git use.
GIT
mkdir ~/git-shell-commands, for git shell and commands
GIT
git config user.email <email_address>, required by atom editor for git synchronization
GIT
git config user.name , required by atom editor for git synchronization
AUTO
ansible-playbooks —list-tasks <playbook_name>, to list and test all tasks in the playbook
AUTO
ansible-playbooks <playbook_name> —extra-vars “var1= var2=”, have variables run in the command
AUTO
Change ownership for Satellite dhcp provisioning, chown -R root:foreman-proxy /etc/dhcp
When using a Satellite VMWare “<Datacenter/template_name”>, you must create a custom user provisioning template and make sure that the VM being used for the template will try and boot from PXE first (Go into BIOS and change boot order) then clone VM to template
AUTO
If having puppet “Could not retrieve catalog” errors on Satellite 6 server, remove from satellite server from any host groups
AUTO
awk ’/^ *admin_password:/ { print $2 }’ > /etc/foreman-installer/scenarios.d/satellite-answers.yaml, to retrieve original satellite admin password
AUTO
The Satellite hammer credentials are now in ~/.hammer/cli.modules.d/foreman.yml. Also the initial password was placed here.
AUTO
For successful VMWare provisioning, only have one “Activation Key” with no subscriptions. A provisioned VM should automatically report to subscribed physical host.
AUTO
If having any satellite puppet agent openscap issues, do not add any “openscap” puppet classes to your “host group”. Especially if no openscap policies have been defined
Use “use_proxy = on” and populate “http_proxy = http://:” in the /etc/wgetrc file to have wget use a proxy server
LIN
apachectl configtest, to test the httpd.conf settings
LIN
”Allowoverrides All” in httpd.conf, allows the use of .htaccess files in apache.
SCALE
Use (MISC_ATTRIBUTES LIKE ‘%M%’ AND MISC_ATTRIBUTES NOT LIKE ‘%V%’) spectrum scale policy syntax for HSM pre-migrated files. Pre-migrated files still exist in the Spectrum Scale filesystem
SCALE
Use (MISC_ATTRIBUTES LIKE ‘%V%’) spectrum scale policy syntax for HSM migrated files, Migrated files are only stubs in the Spectrum Scale filesystem
SCALE
mmattr -d </path/file_name>, will display Spectrum Scale attributes of a file
LIN
rename .conf files in /etc/httpd/conf.d with a suffix other than .conf to remove any conflicting apache configuration with any other webservice. E.g. ssl.conf to ssl.conf.notused
docker container ls -a, list all docker containers
DOCKER
docker run —name portainer -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer, create portainer container and persistent data volume and then “http://:9000” for docker GUI management
DOCKER
docker container start , start docker container
DOCKER
create a directory and then create a docker-compose.yaml in the directory to create and manage containers via docker-compose.
DOCKER
In the docker-compose.yaml directory, “docker-compose up -d” to create or start container in the background and “docker-compose down” to stop the container
DOCKER
docker exec -it <container_name> /bin/bash, run commands in a docker container. use “exit” command to exit the container session.
DOCKER
docker run —name registry -d -p 5000:5000 -v registry_data:/var/lib/registry registry:2, install local docker registry
DOCKER
pip install docker-py, to allow docker-compose to use local registry images
MSSQL
Move-ClusterResource -Name “Cluster Name” -Group “Cluster Group”, if the Cluster Name is accidentaly moved into a role in the Windows Failover cluster Manager
LIN
Apache 2.4.25 onwards can have issues with reverse proxy traffic, the HttpProtocolOptions directive affects this behaviour
DOCKER
docker network create ansible —subnet 192.168.20.0/29 —gateway 192.168.20.1, create a custom docker bridge network using a specific subnet. E.g. ansible. The example subnet and gateway used are non routable to the docker host.
LIN
Disable IPv6 on Centos7, have “ipv6.disable=1” as the first argument in the GRUB_CMDLINE_LINUX line in /etc/default/grub. Then “grub2-mkconfig -o /boot/grub2/grub.cfg” to recreate boot configuration
VMWARE
vmkfstools -J getuuid “/vmfs/volumes/<datastore_name>/<disk_file>.vmdk”, to determine disk ID
AIX
lshwres -m -r virtualio —rsubtype eth —level lpar —filter lpar_ids=, list virtual LAN slots on IVM (VIOS) server
AIX
chhwres -m -p -o a -r virtualio —rsubtype eth -s -a “ieee_virtual_eth=1,port_vlan_id=20,\“addl_vlan_ids=25,30\“,is_trunk=1,trunk_priority=1” -d 5, add virtual LAN adapter to IVM (VIOS) server with PVID 20 and VLAN’s 25 and 30
MS
Set-ClusterQuorum -NodeAndFileShareMajority ”\\\”, Create Windows file share witness for MS Cluster.
MS
Parse spaces in Powershell environment example. ‘cp \\server\Department` Folder\automation\*.* C:\temp\‘
MS
setspn -L \ or , to list existing SPN associations made via the setspn command
MS
Add line “registry=http://registry.npmjs.org/” in %USERPROFILE%\.atom\.apmrc for Windows Atom to install packages and updates successfully using cntlm local proxy service
AIX
netstat -Aan, rmsock tcpcb, to find what process id is using a socket on AIX
LIN
ls -ld /proc/, to find the start date and time of a process that had started before the current date
LIN
pvresize, to resize a scsi device that has been allocated as a physical volume in LVM
AIX
lvmo -v -a, to display blocked IO count for a volume group and can compare against the global value
AIX
lvmo –v -o pv_pbuf_count=2048, if the blocked IO count is high and has increased
MS
quser; mstsc /shadow: /control, quser will list users and RDP session ID’s and then use the mstsc command to shadow or control a RDP session
MS
Get-ADGroup -Filter {Name -like “something*”} | select Name, PS example of filtering of a feild using a wildcard value and then selecting a feild.
UNIX
awk ‘$1 !~ /[0-9]/’, awk listing 1st column with no numbers.
EXCH
Get-MailboxDatabase -Status | select Name,DatabaseSize ,Get Exchange Mail Database sizes
vdo growLogical —name=<vdo_volume_name> —vdoLogicalSize=200G, to increase the logical size of a vdo volume.
LIN
xfs_growfs /<mount_point>, to resize an xfs volume. This also needs to done when the vdoLogicalSize has been increased to an underlying vdo volume.
AIX
lsnim -Fl <object_name>, this displays detailed information about a nim object. E.g. last error on a NIM machine.
AIX
alt_rootvg_op -X old_rootvg, cleans up the old_rootvg volume group
MS
Boot from WinPE media. Then diskpart, list volume, select volume , assign letter=S to assign the Windows System volume a letter. From command line bcdboot C:\Windows /s S: to copy a boot environment to the system volume and reboot.
AIX
smit mkvirprt, to create device printers, e.g. Lexmark
AIX
dump -H -X32_64 </path/binary>, see AIX binary headers with libary information
AIX
ar -tv </path/library.a>, list objects in library archive file
VMWARE
esxcfg-vmknic -l, List vmkernel IP Address
VMWARE
esxcli network ip neighbor list, Arp table list
VMWARE
esxcli network nic list, Physical NIC list
VMWARE
esxcli network ip interface list, list vmkernel network details
VMWARE
esxcli network nic get -n , vmnic device details
VMWARE
esxcli network nic up -n vmnic, Bring down physical device
VMWARE
esxcli network nic down -n vmnic, Bring up physical device
VMWARE
esxcli software vib list | more, list drivers and software
VMWARE
esxtop; then n, for network statistics
VMWARE
vmkping -I vmk, vmkernel ping
OS10
configure terminal; interface ethernet ; no switchport trunk allowed vlan , remove VLANs from an interface
OS10
configure terminal; interface range ethernet ; switchport trunk allowed vlan ; add VLANs from to interfaces
OS10
system “sudo -i passwd linuxadmin”, change linuxadmin switch user password
OS10
terminal length 24, no pause output
OS10
terminal length 0, pause output
OS10
show inventory, switch information.
OS10
show inventory media, show physical switch port tranceivers, cables etc.
OS10
write memory to save configuration
OS10
show diff running-configuration startup-configuration, compare running to startup configuration.
MS
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 -> Multi-String Value -> BackConnectionHostNames, value data , This is to be used for PowerBI NTLM authentication
LIN
openssl s_client -connect :443 -tls1_1, establish TLS version support for a particular server
LIN
nmap —script ssl-enum-ciphers -p 443 , list supported TLS versions for a particular server
smit nim_alt_clone, forks of into a background process. On NIM server lsnim -l <client_machine> to monitor status. On NIM client monitor the /var/adm/ras/nim.alt_disk_install log for installation information.
DOCKER
cd <Dockerfile_directory>, docker build -t /: . Build docker image
DOCKER
docker run -d -p <listen_port>: —name /:
LIN
yum —showduplicates list , list all available versions of a particular yum package
SCALE
mmnetverify ping -N all, test Spectrum Scale connectivity to all nodes in a cluster
MS
dism /online /get-packages /format:table, list windows packages and updates
LIN
ad_enable_gc = False in /etc/sssd/sssd.conf, AD groups were working after this setting
LIN
needs-restarting -r , for RH7 or yum needs-restarting, RH8 (can be installed via yum-utils package)
LIN
nmap -v -sn -n 192.168.1.0/24 -oG - | awk ‘/Status: Down/{print $2}’ , port scan subnet for free IP addresses
LIN
grubby —set-default=/boot/vmlinuz-4.18.0-348.20.1.el8_5.x86_64 , RH8 set default kernel
LIN
grubby —default-kernel , RH* list default kernel
LIN
yum list extras —disablerepo=”*” —enablerepo= , List addtional packages installed outside of a repository
LIN
repoquery -q —whatrequires , List packages dependant of a particular package
LIN
yum deplist , list the dependencies of a particular package.
LIN
cat /proc/meminfo , reference Hugetlb for Oracle Database memory usage
LIN
yum swap libvirt-python python2-libvirt , this will replace libvirt-python with python2-libvirt
SCALE
mmchdisk start -d , start a NSD disk that is in a down state
for i in pulp_resource_manager pulp_workers pulp_celerybeat; do service $i restart; done , restart RH Satellite 6.n Pulp services when Content view update is stuck
AUTO
foreman-rake katello:reindex, foreman-maintain service restart , Restart RH Satellite 6.n service
AUTO
systemctl restart virt-who.service , on RH Satellite server to resolve issues with virtual guest subscriptions.
MS
dir env: , Show PowerShell variables
AWS
$Env:AWS_CA_BUNDLE=“DRIVE:\\CAFILE” , AWS SSO Variable to allow AWS CLI access through proxy servers.
SCALE
mmgetstate -Las , Spectrum Scale cluster and quorum status