2.2.2 Installing the commands used to acquire MIB values (for an OS other than HP-UX (IPF))
SNMP Agent uses OS commands to acquire some of the provided MIB values.
Install these commands before you install SNMP Agent. After you have installed SNMP Agent, make sure that these commands have been installed on the target machine. If the commands have not been installed, SNMP Agent will not be able to acquire MIB values or will return invalid MIB values.
To determine whether the commands have been installed, use the snmpcmdchk command.
- Example:
-
The following example shows the results when running in Solaris 10.
#/opt/CM2/ESA/bin/snmpcmdchk /etc/prtconf installed. /usr/bin/sar installed. /etc/swap installed. /usr/bin/pagesize installed. /usr/bin/mpstat Not installed.
The following table lists the commands used by SNMP Agent to acquire MIB values for each OS.s
OS |
Command used to acquire MIB values |
Command usage |
---|---|---|
Solaris |
/usr/bin/sar |
sar 5 1 sar -r 5 sar -d 5 sar -d 300 1 |
/usr/bin/pagesize |
pagesize |
|
/usr/bin/mpstat |
mpstat 300 2 |
|
/usr/sbin/prtconf |
prtconf |
|
/usr/sbin/swap |
swap -s |
|
AIX#1 |
/usr/bin/iostat |
iostat -d |
/usr/sbin/lsdev |
lsdev -Cc memory |
|
/usr/sbin/lsattr |
lsattr -E |
|
/usr/sbin/lsps |
lsps -a |
|
/usr/bin/ps |
ps -e ps ug |
|
/usr/bin/uptime |
uptime |
|
/usr/bin/vmstat |
vmstat -f vmstat -s |
|
/usr/sbin/sar |
sar -P ALL 300 1 sar -d 300 1 |
|
/usr/bin/svmon |
svmon -G |
|
Linux#2 |
/usr/bin/vmstat |
vmstat |
/bin/ps |
ps -e |
|
/usr/bin/uptime |
uptime |
|
/usr/bin/free |
free |
|
/usr/bin/mpstat |
mpstat -P ALL 300 1 mpstat 300 1 |