Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Several OIDs in the request #72

@kostya-php

Description

@kostya-php

Hello!

There is bash script:

#!/bin/sh

HOST=$1
SERIAL=$2
CHANNEL=$3
PORT=$4
VLAN=$5
COMMUNITY=$6

snmpset -v2c -c $COMMUNITY $HOST \
1.3.6.1.4.1.35265.1.22.3.4.1.20.1.8.$SERIAL i 4 \
1.3.6.1.4.1.35265.1.22.3.4.1.3.1.8.$SERIAL u $CHANNEL \
1.3.6.1.4.1.35265.1.22.3.4.1.4.1.8.$SERIAL u $PORT

sleep 1

snmpset -v2c -c ${COMMUNITY} ${HOST} \
1.3.6.1.4.1.35265.1.22.3.4.1.43.1.8.${SERIAL} u 1 \
1.3.6.1.4.1.35265.1.22.3.14.1.4.1.8.${SERIAL}.1 i 1 \
1.3.6.1.4.1.35265.1.22.3.14.1.5.1.8.${SERIAL}.1 i ${VLAN}

These OIDs must be a single request. Can I make such a request using snmp-native?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions