Smarts IP: What is the "support" option used for in the sm_snmp -d <IP ADDRESS> command?
search cancel

Smarts IP: What is the "support" option used for in the sm_snmp -d <IP ADDRESS> command?

book

Article ID: 327658

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

What is the "support" option used for in the sm_snmp -d <IP ADDRESS> command?



The "support" option for the sm_snmp -d command is used to find out whether or not an agent at residing on the IP address supports particular SNMP version. The following sections present two examples of the command syntax and usage requirements to check an agent for SNMP v1 and v2c support.

Checking for SNMP v1 agent support
To check whether an SNMP agent running at <ip address> supports SNMP v1, use the sm_snmp -d command and the support option with no preceding arguments (default condition). The following shows the command syntax and usage example:

Command Syntax
./sm_snmp -d <ip address> support

Usage Example
<BASEDIR>/IP/smarts/bin/sm_snmp -d 10.1.1.1 support
SNMP version v1 is SUPPORTED by agent at 10.1.1.1, port 161

Checking for SNMP v2c agent support
To check whether an SNMP agent running at <ip address> supports SNMP v2c, use the sm_snmp -d command and the --snmp=2c argument preceding the support option. The following shows the command syntax and usage example:

Command Syntax
./sm_snmp -d <ipaddress> --snmp=2c support

Usage Example
<BASEDIR>/IP/smarts/bin/sm_snmp -d 10.1.1.1 --snmp=2c support
SNMP version v2c is SUPPORTED by agent at 10.1.1.1, port 161



Additional Information

For complete usage information on the sm_snmp command, use the --help argument as in the following:

<BASEDIR>/IP/smarts/bin/sm_snmp --help
Usage: sm_snmp [options...] <command>
Commands:
get <oid> ... Get request.
next <oid> ... Get-Next request.
bulk <nonRep> <maxRep> <oid> ...
Get-Bulk request.
walk [<style>] [<root>] Traverse MIB, starting at <root> oid;
default <root> is MIB-II (.1.3.6.1.2.1).
Style is "snap", "mimic", "IPwalk" or "legacy". Default
is "legacy". The <style> is used as the default
file extension, with ".walk" for a "legacy" style.
set <varbind> ... Set request.
inform <agent> <oid> <generic> <specific> <uptime> <varbind> ...
Inform request.
trap <agent> <oid> <generic> <specific> <uptime> <varbind> ...
Send a trap.
trapd Receive traps.
support Test agent capabilities.