Sunday, September 28, 2008
Marimba Query Builder
Monday, April 7, 2008
Printer Configuration Solaris
Eg:
/etc/printers.conf ::
<Printer-name>:\
:bsdaddr=<server-name>,<Printer-Destination>,Solaris:
To start the service use /etc/init.d/lp start
This starts the lpsched process. (For solaris 10 use svcadm enable print/server)
Saturday, March 22, 2008
NIS
/var/yp generally.
Makefile to decide such settings.
/usr/ccs/bin/make <map-name>
/usr/ccs/bin/yppush -v <map-name> #to push maps on desired yp servers.
Friday, March 21, 2008
RHN Registration.
rhnreg_ks command used to register non-interactively by using option ahead of command.
eg:
rhnreg_ks --profile=<FQDN> --username=<rhn-user> --password=<rhn-password> --email=<mail for guy who is registering>.
Note Before any RHN registeration use command:
rpm --import /usr/share/rhn/RPM-GPG-KEY.
FlexLM License Documentation
lmgrd -c <license_file_name> : To start the License.
lmdown -c <license_file_name> : Stop the Licenses.
lmreread -c <license_file_name> : To reread the License file and update running licenses as required without the need to shutdown the daemon.
lmstat -c <license_file_name> : To see the status of the running License.
PS: It is recommended to run Licenses from a user who doesnt has admin priviledges due to security concerns.
Thursday, March 20, 2008
Cron Configuration
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
Tuesday, March 18, 2008
HPUX problems.
Solution: Set variable SHLIB_PATH <path for shared lib folder>.
Monday, March 17, 2008
Veritas Netbackup Unix
/usr/openv/
Services file :
/etc/init.d/netbackup
Administration Console Binary:
/usr/openv/netbackup/bin/jnbSA
TLD Status: Media being handled by the robots/Tape Library.
Catalog:
DB which stores all the information about all the media and its contents.
Without Catalog Netbackup installation is as gud as new and cant recover anything from the media no matter how old or how new.
Shutdown Procedure:
service netbackup stop
If netbackup process still available on ps command:
/usr/openv/netbackup/bin/bp.kill_all
The above given command helps in killing remainder bp processes gracefully.
If it still doesnt works all hail to kill -9 [:)].
Note: Kill -9 makes netbackup service unstable. Hence advisable to reboot the machine once kill -9 is used.
Media Information (CLI):
bpmedialist
Change Media Expiry List(CLI):
bpexpdate -m <media-id> -d expdate
Sunday, March 16, 2008
Netapp How To
- Creation:
vol create <name> <aggr> size
enter the volume path in /vol/rootvol/etc/exports file (normal nfs format)
exportfs -a - Resize Volume:
vol size <name> +/- size
- Creation:
qtree create <absolute-path-to-tree>
exports changes
exportfs -a
assign quota for qtree by changing /rootvol/etc/quotas file.
quota off <volume-name>
quota on <volume-name> - Checking Netapp usage for particular qtree (Performance):
qtree stats
- Creation:
mkdir folder in desired volume
assign quota for user by changing /rootvol/etc/quotas file.
quota off <volume-name>
quota on <volume-name> - Resize quota allocated:
change quotas file
quota resize <volume-name>
Note: quota off/on also works but not recommended as requires a lot more processing than resize. Off/on to be done only during creation/deletion.
- Creation:
cifs shares -add <name> <absolute-path-to-share> - Deletion:
cifs shares -delete <name> - Access Maniputation to CIFS:
cifs access <share-name> <user-name> rwx
cifs access -delete <share-name> <user-name> - Terminating all cifs sessions:
cifs terminate
- sysconfig -r
- sysconfig -a
- fcstat device_map
- fcstat link_stat
- Reserving size for Snapshots of a volume:
snap reserve <volume-name> <percentage>
Do Remember that snapshots may end up taking more space than reserved for them. - Number and Scheduling for Snapshots:
snap sched <volume-name> #week-#day-#hourly - Creation of a new snapshot:
snap create <volume-name> <snapname> - Deleting a snapshot
snap delete <volume-name> <snapname>
- Status for Snapmirror:
snapmirror status - Snapmirroring Data from one Netapp to another:
options snapmirror.access host=hostname,hostname (This options needs to be set on the source filer to give access to the destination to get data).
snapmirror initialize -S <source filer:vol/qtree path> <destination volname/absolute qtree path>
eg: napp2> snapmirror initialize -S napp1:vol1 volume1
The above command will snapmirror vol1 of napp1 to volume1 of napp2
One thing to remember: the destination volume needs to restricted before the snapmirror is initialized.
napp2> snapmirror initialize -S napp1:/vol/vol1/qtree1 /vol/volume1/qtree2 - Updating the snapmirror:
Almost same command as initialize
snapmirror update -S <source filer:vol/qtree path> <destination > - Breaking the snapmirror:
breaking a snapmirror is necessory to make the the destination data writable with full control. breaking in done on destination filer.
snapmirror quiesce <destination data path>
snapmirror break <destination data path> - Releasing snapmirrors:
Releasing of snapmirrors is important as snapshots take space and keep on growing as the data on the volume keeps on changing. This needs to be done both on source and destination filers & both have different ways of getting done.
source: snapmirror release vol/qtree dest:vol/qtree
Destination: a mere deletion of the snapmirror snapshot will do.
remember once the snapmirrors have been release the snapmirror cant be resumed.
sysstat <update-time-in-seconds>
System Failure Troubleshooting:-
partner: Command given on the node which has taken over to get data of bad node.
options autosupport.doit "messages(normally the case id)": to generate the autosupport.
HPUX Remote Execution Errors
eg:
rsh hpux ls
stty: unknown error
abc 123 abc.123
rsh hpux
#ls
abc 123 abc.123
The issue between the 2 is that stty works only for interactive login.
So having stty commands in ur profile files (.cshrc/.profile/.login etc) without a interactive login check creates an issue.
Hence keeping a check to see if the login is interactive or not helps.
eg for csh login:
if ( $?prompt ) then
stty erase "^H"
stty intr "^C"
stty kill "^X"
endif
As we can see the if statement helps the check that stty commands are executed only when the login is interactive.
Friday, March 7, 2008
VNC Clipboard Transfers.
Thursday, February 7, 2008
Friday, February 1, 2008
Monday, January 28, 2008
PATH setup command
Put this in ur cshrc. After that u just need to given path ab_path_to_be_added and that path will get added automatically.
Tuesday, January 15, 2008
Solaris Patch Mgt.
patchadd -M (directory_name) (patch-name) for installing multiple patchs
patchrm (patch_name) for removing the patch
patchrm -R (dirctory and patchname ) for removing patch
Tuesday, January 8, 2008
SSH without interruptions
Configuration: Client Side (bangvst3a12l)
Here are the steps you need to do on the computer that acts as the SSH client:
1) Generate your SSH encryption key pair for the b_v3infra account. Press the Enter key each time you are prompted for a password to be associated with the keys. (Do not enter a password.)
[b_v3infra@bangvst3a12l b_v3infra]# ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key
(/b_v3infra/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in
/b_v3infra/.ssh/id_dsa.
Your public key has been saved in
/b_v3infra/.ssh/id_dsa.pub.
The key fingerprint is:
1e:73:59:96:25:93:3f:8b:50:39:81:9e:e3:4a:a8:aa
b_v3infra@bangvst3a12l
[b_v3infra@bangvst3a12l b_v3infra]#
2) These keyfiles are stored in the .ssh subdirectory of your home directory. View the contents of that directory. The file named id_dsa is your private key, and id_dsa.pub is the public key that you will be sharing with your target server. Versions other than RedHat/Fedora may use different filenames, use the SSH man pages to verify this.
[b_v3infra@bangvst3a12l b_v3infra]# cd ~/.ssh
[b_v3infra@bangvst3a12l b_v3infra]# ls
id_dsa id_dsa.pub known_hosts
[b_v3infra@bangvst3a12l .ssh]#
3) Copy only the public key to the home directory of the account to which you will be sending the file.
[b_v3infra@bangvst3a12l .ssh]# scp id_dsa.pub b_v3infra@vistacmsdev:public-key.tmp
Now, on to the server side of the operation.
Configuration - Server Side (vistacmsdev/RHN Server)
Here are the steps you need to do on the computer that will act as the SSH server.
1) Log into vistacmsdev as user b_v3infra. Create an .ssh subdirectory in your home directory and then go to it with cd.
[b_v3infra@vistacmsdev b_v3infra]# ls
public-key.tmp
[b_v3infra@vistacmsdev b_v3infra]# mkdir .ssh
[b_v3infra@vistacmsdev b_v3infra]# chmod 700 .ssh
[b_v3infra@vistacmsdev b_v3infra]# cd .ssh
2) Append the public-key.tmp file to the end of the authorized_keys file using the >> append redirector with the cat command. The authorized_keys file contains a listing of all the public keys from machines that are allowed to connect to your Vistacmsdev account without a password. Versions other than RedHat/Fedora may use different filenames, use the SSH man pages to verify this.
[b_v3infra@vistacmsdev .ssh]# cat ~/public-key.tmp >> authorized_keys
[b_v3infra@vistacmsdev .ssh]# rm ~/public-key.tmp
From now on you can use ssh and scp as user b_v3infra from server bangvst3a12l to vistacmsdev without being prompted for a password.
If it still doesn’t works check for the following thing:
· .ssh folder of the user has 700 permissions.
· .ssh/authorized_keys file should have 600 permissions.
If the above 2 condition are not met the ssh session will automatically go from Mode 3 to Mode 5 in which it will start asking for passwords."LI" error on boot
This error comes when the boot loader (LILO) is unable to find the Linux installation.
Check the harddrive boot sequence for this.