Tuesday, June 29, 2010

Monitoring NetApp

Below are some basic OID's you should be monitoring on your Netapp Filers and always better to enable the snmptrap on it so you are aware of the system generated threshold . Use these OID's to create datasource on zenoss and you can generate graphs out of these. I will writing more on how you can trouble shoot issue's on a SAN environment in my next article next month.

CacheAge : 1.3.6.1.4.1.789.1.2.2.23.0
cifsops : 1.3.6.1.4.1.789.1.7.3.1.1.1.0
cifsopsHigh : 1.3.6.1.4.1.789.1.2.2.7.0
cifsopsLow : 1.3.6.1.4.1.789.1.2.2.8.0
cpuBusyTimePerCent : 1.3.6.1.4.1.789.1.2.1.3.0
diskFailedCount : 1.3.6.1.4.1.789.1.6.4.7.0
envOverTemperature : 1.3.6.1.4.1.789.1.2.4.1.0
failedFanCount : 1.3.6.1.4.1.789.1.2.4.2.0
failedPowerSupply : 1.3.6.1.4.1.789.1.2.4.4.0
fcHighops : 1.3.6.1.4.1.789.1.17.13.0
fcopslow : 1.3.6.1.4.1.789.1.17.14.0
fcpHighReadBytes : 1.3.6.1.4.1.789.1.17.4.0
fcpHighWriteBytes : 1.3.6.1.4.1.789.1.17.6.0
fcpLowReadBytes : 1.3.6.1.4.1.789.1.17.3.0
fcpLowWriteBytes : 1.3.6.1.4.1.789.1.17.5.0
lunHighErrors : 1.3.6.1.4.1.789.1.17.15.2.1.15.1
lunHighOps : 1.3.6.1.4.1.789.1.17.15.2.1.9.1
lunHighOtherOps : 1.3.6.1.4.1.789.1.17.15.2.1.26.1
lunHighReadBytes : 1.3.6.1.4.1.789.1.17.15.2.1.11.1
lunHighReadOps : 1.3.6.1.4.1.789.1.17.15.2.1.22.1
lunHighWriteBytes : 1.3.6.1.4.1.789.1.17.15.2.1.13.1
lunHighWriteOps : 1.3.6.1.4.1.789.1.17.15.2.1.24.1
lunLowErrors : 1.3.6.1.4.1.789.1.17.15.2.1.16.1
lunLowOps : 1.3.6.1.4.1.789.1.17.15.2.1.10.1
lunLowOtherOps : 1.3.6.1.4.1.789.1.17.15.2.1.27.1
lunLowReadBytes : 1.3.6.1.4.1.789.1.17.15.2.1.12.1
lunLowReadOps : 1.3.6.1.4.1.789.1.17.15.2.1.23.1
lunLowWriteBytes : 1.3.6.1.4.1.789.1.17.15.2.1.14.1
lunLowWriteOps : 1.3.6.1.4.1.789.1.17.15.2.1.25.1
miscHighDiskReadBytes : 1.3.6.1.4.1.789.1.2.2.15.0
miscLowDiskReadBytes : 1.3.6.1.4.1.789.1.2.2.16.0
nfsops : 1.3.6.1.4.1.789.1.2.2.1.0
nfsopsHigh : 1.3.6.1.4.1.789.1.2.2.5.0
nfsopsLow : 1.3.6.1.4.1.789.1.2.2.6.0
sysUpTime : 1.3.6.1.2.1.1.3.0

NetApp Storage Commonly Used Commands

NetApp Storage Commonly Used Commands

Below are the list of commands that will be mostly used and will be helpful when managing or monitoring or troubleshooting a Netapp filer.

sysconfig -a : shows hardware configuration with more verbose information
sysconfig -d : shows information of the disk attached to the filer
version : shows the netapp Ontap OS version.
uptime : shows the filer uptime
dns info : this shows the dns resolvers, the no of hits and misses and other info
nis info : this shows the nis domain name, yp servers etc.
rdfile : read contents of text files/.
wrfile : Creates/Overwrites a file.
aggr status : Shows the aggregate status.
aggr status -r : Shows the raid configuration, reconstruction information of the disks in filer
aggr show_space : Shows the disk usage of the aggreate, WAFL reserve, overheads etc.
vol status : Shows the volume information
vol status -s : Displays the spare disks on the filer
vol status -f : Displays the failed disks on the filer
vol status -r : Shows the raid configuration, reconstruction information of the disks
df -h : Displays volume disk usage
df -i : Shows the inode counts of all the volumes
df -Ah : Shows "df" information of the aggregate
license : Displays/add/removes license on a netapp filer
maxfiles : Displays and adds more inodes to a volume
aggr create : Creates aggregate
vol create : Creates volume in an aggregate
vol offline : Offlines a volume
vol online : Onlines a volume
vol destroy : Destroys and removes an volume
vol size [+|-] : Resize a volume in netapp filer
vol options : Displays/Changes volume options in a netapp filer
qtree create : Creates qtree
qtree status : Displays the status of qtrees
quota on : Enables quota on a netapp filer
quota off : Disables quota
quota resize : Resizes quota
quota report : Reports the quota and usage
snap list : Displays all snapshots on a volume
snap create : Create snapshot
snap sched : Schedule snapshot creation
snap reserve : Display/set snapshot reserve space in volume
/etc/exports : File that manages the NFS exports
rdfile /etc/exports : Read the NFS exports file
wrfile /etc/exports : Write to NFS exports file
exportfs -a : Exports all the filesystems listed in /etc/exports
cifs setup : Setup cifs
cifs shares : Create/displays cifs shares
cifs access : Changes access of cifs shares
lun create : Creates iscsi or fcp luns on a netapp filer
lun map : Maps lun to an igroup
lun show : Show all the luns on a filer
igroup create : Creates netapp igroup
lun stats : Show lun I/O statistics
disk show : Shows all the disk on the filer
disk zero spares : Zeros the spare disks
disk_fw_update : Upgrades the disk firmware on all disks
options : Display/Set options on netapp filer
options nfs : Display/Set NFS options
options timed : Display/Set NTP options on netapp.
options autosupport : Display/Set autosupport options
options cifs : Display/Set cifs options
options tcp : Display/Set TCP options
options net : Display/Set network options
ndmpcopy : Initiates ndmpcopy
ndmpd status : Displays status of ndmpd
ndmpd killall : Terminates all the ndmpd processes.
ifconfig : Displays/Sets IP address on a network/vif interface
vif create : Creates a VIF (bonding/trunking/teaming)
vif status : Displays status of a vif
netstat : Displays network statistics
sysstat -us 1 : begins a 1 second sample of the filer's current utilization (crtl - c to end)
nfsstat : Shows nfs statistics
nfsstat -l : Displays nfs stats per client
nfs_hist : Displays nfs historgram
statit : beings/ends a performance workload sampling [-b starts / -e ends]
stats : Displays stats for every counter on netapp. Read stats man page for more info
ifstat : Displays Network interface stats
qtree stats : displays I/O stats of qtree
environment : display environment status on shelves and chassis of the filer
storage show : Shows storage component details
snapmirror intialize : Initialize a snapmirror relation
snapmirror update : Manually Update snapmirror relation
snapmirror resync : Resyns a broken snapmirror
snapmirror quiesce : Quiesces a snapmirror bond
snapmirror break : Breakes a snapmirror relation
snapmirror abort : Abort a running snapmirror
snapmirror status : Shows snapmirror status
lock status -h : Displays locks held by filer
sm_mon : Manage the locks
storage download shelf : Installs the shelf firmware
software get : Download the Netapp OS software
software install : Installs OS
download : Updates the installed OS
cf status : Displays cluster status
cf takeover : Takes over the cluster partner
cf giveback : Gives back control to the cluster partner
reboot : Reboots a filer

Saturday, June 12, 2010

VMware Database Purging

Below are Kb for VMware Database Purging

For VirtualCenter 2.x -- Link

For vCenter Server 4.x --Link

Monday, June 7, 2010

Structuring Ideas

Our communication should be consistent with our ideas. Our ideas should be congruent with our thought process. Thought process is an unstructured mechanism through which thoughts flash across your mind in no particular order. Being the master of your mind, you should be able to structure them in a manner that does not confuse the person who is reading or listening to you.

A situation where you are talking to a person about what you like on your breakfast table and talking about the idly and suddenly jump to another discussion about how your dog chased a thief the other night. "I like idly sambar for break fast and i am amazed at the way how the little idiot chased the thief across our garden that night" Ideas should be congruent, communication depends a lot on how you put one idea after the other with out missing the previous idea.

I always suggest speakers or writers to follow the clouding method to put the ideas across. At the center of the group of clouds you are creating is your core idea or thought. From that cloud, you create another cloud which is the priority one among the different ideas, then cloud two then cloud 3 and so on. in each cloud again will have some smaller clouds which could be further ideas on the smaller cloud. This was you will end up with a mind map of what you want to talk about and what are the points which come after each one important issue. This helps you not only structure the ideas but also give completeness to the whole issue.

People follow various methods like bullet points on the issues or asterisks to create a structure but a pictorial representation in the mind of the points which you would like to talk would make retrieval of ideas easier than the bullet points. Our mind identifies patterns and pictures easily than notes. If you have seven points to talk about in an idea, you imagine a heptagonal cloud bone and you are sure that you have 7 points to talk about in this issue. This keeps you away from the tension of putting the points by heart.

Structure gives identity and recall to ideas and thus makes your presentation or speech easy to recall and remember.