Monitoring Performance by Using a Secure Shell

The system that you want to monitor by using a secure shell must be running a secure shell daemon. Make sure the monitored user has permission to log on multiple times.

  1. On the Real-Time Monitoring tab, in the Monitor group, click System. The Data Source wizard opens.
  2. Click the Select from predefined Data Sources option button.
  3. Click Next. The System selection page opens.
  4. Expand the Miscellaneous folder and click Secure Shell.
  5. Click Next.

    The Connection parameters page opens.

  6. In the Hostname text box, specify the host that you want to monitor.
  7. Click Next. The Attributes Configuration page opens.
  8. Define the following monitoring specific attributes:
    • Username – The user to be used when logging on to a remote system by using a secure shell.
    • Password – The user's password.
    • Command(x) – The preconfigured package allows for retrieving up to five performance measures by using secure shell as the following table shows:
      Attribute Type Value
      Command1 string ps -ef | egrep -c \”.*\”
      Command1.Active boolean true
      Command1.Column number 1
      Command2 string mpstat | head -n 2 | tail -1
      Command2.Active boolean true
      Command2.Column number 13
  9. Click OK. The Select displayed measures page opens.
  10. Check the check boxes for those measures that you want to include in the initial monitor view and then click Finish.
A connection to the specified host is established, and an initial view that contains the measures you selected is displayed.

Example Command2

This example works for a SunOs system. The following command is sent to the server.
mpstat | head -n 2 | tail -1
This command returns a one-line response in the following format.
0 0 0 0 228 25 106 1 0 0 0 219 0 0 0 99

The attribute Command2.Column specifies which column to pass on to Performance Explorer for keeping track of the performance counter. In this case, it is column 13, which is the percentage of user time on a SunOs system.

Command2.Active specifies only whether this measure must be collected.

Example Command1

The following command is sent to the server.
ps -ef | egrep -c \".*\"
This command counts the number of processes running on a SunOs system and could return a one-line response in the following format.
87

Therefore, one line is returned with exactly one column.

The attribute Command1.Column specifies the column to forward to Performance Explorer. In this case, it is column 1.

Command1.Active specifies only whether this measure must be collected.