Blame perl/AnyData_SNMP/README
|
Packit |
fcad23 |
The AnyData::SNMP module is really an augmentation to Jeff Zucker's
|
|
Packit |
fcad23 |
excellent perl AnyData and DBD::AnyData modules. It is designed to
|
|
Packit |
fcad23 |
allow the infamous perl DBI module to translate SQL commands directly
|
|
Packit |
fcad23 |
into network SNMP requests and to manipulate the data in perl
|
|
Packit |
fcad23 |
afterward. See the perl DBI documentation for further details, as
|
|
Packit |
fcad23 |
well as the AnyData documentation.
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
The netsh command then implements a standard shell around the sql to
|
|
Packit |
fcad23 |
SNMP mapping, such that commands like the following are possible:
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
netsh -c public localhost 'select ifIndex, ifDescr, ifType from ifTable'
|
|
Packit |
fcad23 |
netsh -c public localhost 'update ifTable set ifAdminStatus = 2 where ifType = 6'
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
Without a command to run, netsh puts you into an interactive shell
|
|
Packit |
fcad23 |
where the commands can be typed at a command prompt.
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
See the INSTALL file for the necessary prerequisites. Note that this
|
|
Packit |
fcad23 |
currently makes use of a patched copy of the DBD::AnyData module.
|
|
Packit |
fcad23 |
This will be fixed in future versions of both this module and the
|
|
Packit |
fcad23 |
DBD::AnyData module as the authors worth toward a common
|
|
Packit |
fcad23 |
infrastructure.
|